Sign In/My Account | View Cart  
advertisement

Article:
 XML Namespaces Don't Need URIs
Subject: That won't work
Date: 2005-04-27 08:31:06
From: EdSaltelli
Response to: That won't work

"For example, why not use a regular attribute on the root element to identify the "type" of the document, but without needing to propagate that attribute down to the child elements like a namespace. That would allow disambiguation while eliminating the scoping issues."


This is possible today with the proper Schema definitions and attributes. By defining only one top level element and using setting the schema attribute elementFormDefault='unqualified'. All other elements would be defined w/in the scope of the global element; the default serialization of your XML document would not require all of the namespace prefixes on the elements.


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Sponsored By: