Is xmlns="" a valid xml namespace? -
Is "empty" a valid value for XML namespace? If yes, what does this mean?
I have the following XML code, but I'm not sure which place's name is related to the location Field1
and Field2
element
& lt; Soapenv: envelope xmlns: soap = "http://schemas.xmlsoap.org/soap/envelope/" & gt; & Lt; Soapenv: header / & gt; & Lt; Soaps: Body & gt; & Lt; Root xmlns = "uri" & gt; & Lt; Field 1 xmlns = "" & gt; 147079737 & lt; / Field 1 & gt; & Lt; Field 2xmlns = "" & gt; POL & lt; / Field2 & gt; & Lt; / Root & gt; & Lt; / Soap: body & gt; & Lt; / Soapenv: envelope & gt;
Yes, that's valid. Specifically says:
The attribute value may be empty in the default namespace declaration.
Quoted from the comment:
P> It's legal, and it's global There is a way to bring an element in the name space.
Comments
Post a Comment