[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Element equivalence under XML Namespaces

  • From: Matthew Van Gundy <matt-xmldev@s...>
  • To: xml-dev@l...
  • Date: Thu, 17 Jan 2008 14:22:48 -0800

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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.