|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Namespace problem
Title: RE: Namespace problem Depends if you believe in namespaces or not. Changing name under customer to customerName is not too much different from using a namespace. Except that using a namespace gives (IMHO) better modularization abilities and gives a nice handle for extra semantics (duck and wait for the syntax vs semantics argument to start again). Think of the URI as part of the element name. {http://mycompany.com/customers}:Name is a "different" element from {http://yourcompany.com/customers}:Name, even if they are to be handled in the same way. It makes sense to put it in a common namespace, not least because it potentially helps resolving version identification. You do not *have to* agree on the URI - if you each supply a schema for the documents and you use youyr business partner's schema to validate messages from him, then your XML validation will work anyway. Assuming that the elements should have the same meaning, this would not be a good approach. So yes, agree on a URI, and only change it in future versions of the schema (by mutual consent) if there is a structural change to objects in that namespace. If agreeing on a URI is a stumbling block, then you have more serious issues to resolve before the partnership succeeds. John -----Original Message-----
Hi All, Namespaces was introduced to distinguish duplicate attributes and elements.
I have an element <Name> under <Customer> and <product> in the same xml
Please help me. Thanks in advance.
DISCLAIMER The information contained and transmitted by this e-mail is proprietary to
-----------------------------------------------------------------
The list archives are at http://lists.xml.org/archives/xml-dev/ To subscribe or unsubscribe from this list use the subscription
The information transmitted by this e-mail message is intended solely for the use of the person to whom or entity to which it is addressed. The message may contain information that is privileged and confidential. Disclosure, dissemination, distribution, review, retransmission to, other use of or taking any action in reliance upon this information by anyone other than the intended recipient is prohibited. If you are not the intended recipient, please do not disseminate, distribute or copy this communication, by e-mail or otherwise. Instead, please notify us immediately by return e-mail (including the original message with your reply) and then delete and discard all copies of the message. Although we have taken precautions to minimize the risk of transmitting viruses we nevertheless advise you to carry out your own virus checks on any attachment to this message. We accept no liability for any loss or damage caused by viruses.
|
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
|
|||||||||

Cart








