Hi, If you parse a file with elements / attrs in multiple namespaces and do not edit the tree then you are fine. The problem comes when you manually edit the tree. You can create an element in a namespace without a prefix. DOMWriter will not create a binding for you so if you wrote the file out and read it back in again it would be different. There is a method called normalizeDocument in DOM level 3 that will create the bindings for you. This should be called prior to writing out the DOM Document. Unfortunately this is not much help to you as it is not yet implemented. It is on my todo list as I require it. I hope to have it implemented this week.
I hope this answers you question. Gareth On Fri, 20 Sep 2002, Bagepalli, Kiran wrote: > Essentially my question was does DOMBuilder write out nodes with namespace > URI. > Thanks > Kiran > > -----Original Message----- > From: Bagepalli, Kiran > Sent: Friday, September 20, 2002 2:11 PM > To: '[EMAIL PROTECTED]' > Subject: RE: Writing namespace information > > > My question was more regarding the DOMWriter. If I want to write a XML > document as > <BookSeller xmlns="http://www.BookRetailers.org" > xmlns:sr="http://www.repository.org" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.BookRetailers.org > BookSeller.xsd > http://www.repository.org > SchemaRepository.xsd"> > > Does the DOMWriter not write information that I am using two schema files > here. How do I signal this information > to the DOMDocument. Does the DOMDocument record only the default namespace. > > Kiran > > -----Original Message----- > From: Gareth Reakes [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 20, 2002 1:05 AM > To: '[EMAIL PROTECTED]' > Subject: Re: Writing namespace information > > > Hi, > if you are talking about creating a instance DOM then the Document > itself is in only 1 namespace. This does not mean that elements/attrs > inside of it cannot be in a different namespace. > > Gareth > > > On Thu, 19 Sep 2002, Bagepalli, Kiran wrote: > > > Is there a way I could specify that my document comes from multiple > > namespaces. There seems to be only one namespace parameter. > > > > Thanks > > Kiran > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- Gareth Reakes, Head of Product Development DecisionSoft Ltd. http://www.decisionsoft.com Office: +44 (0) 1865 203192 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]