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

RE: Namespace problem

  • To: <pradeepbhat@s...>
  • Subject: RE: Namespace problem
  • From: "Manos Batsis" <m.batsis@b...>
  • Date: Wed, 5 Jun 2002 15:00:01 +0300
  • Cc: <xml-dev@l...>
  • Thread-index: AcIMhyRr9balWKNLSI282qNWngU2kQAABaDw
  • Thread-topic: Namespace problem

duplicate namespace problem

Ah, at last a simple,  non philosophical, xml-development question.

> -----Original Message-----
> From: pradeep bhat [mailto:pradeepbhat@s...] 

> Namespaces was introduced to distinguish duplicate attributes 
> and elements.
> We associate URI with elements and attributes to distinguish duplicate
> elements and attributes.
> 
> I have an element <Name> under <Customer>  and <product> in 
> the same xml
> file.The problem here is that I receive the file from my 
> business partner.We
> have decided to use namespace to distinguish duplicate elements and
> attributes.

If the hierarchical structure means that the <Name> under <Customer> is
the customer name, then your partner should probably change it in
<customerName> and the one below <Product> in <productName>. That will
serve  as self-describing markup. Namespaces where introduced to resolve
conflicts between same nodeNames in different vocabularies when
different XML files are merged etc. Your problem is wrong design as far
as I understand.


>  The way to distinguish between the 2 <name> tags is with 2
> different URI. 

See above.

>Does this mean we have to agree upon the URI 
> for Customer and
> product tags??
> I want to know whether this means that the 2 URI are fixed(they do not
> change unless we both agree for  a change)?

There is no standard procedure for the above, only best practices
(unless you have a formal agreement with your partner). Besides, you
don't need it.

Cheers, 

Manos

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.