[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Element equivalence under XML Namespaces
Thank you all for your responses, they were very instructive and have satisfied me that: > <?xml version="1.0"?> > <doc xmlns="http://foo.com/foo"> > <foo:elem xmlns:foo="http://foo.com/foo"> > </elem> > </doc> cannot correctly be interpreted as a well-formed XML document because element equivalence (with respect to opening and closing tags) is determined lexically rather than semantically. Succinct answers to that effect are: Per Michael Kay: > No, it's not. Well-formedness is defined in the XML specification, > and this doesn't know anything about namespaces; tags must therefore > match lexically rather than semantically Per Paul Spencer: > Definitely not well formed. Ignore namespaces for the moment - they > came along after the XML specification itself. From an XML point of > view, the colon is just a name character like any other. Now the > name in the end tag is different from the name in the start tag. Thanks again for being so helpful, Matt [Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|