As far as documentation, this book has some good examples:  

   Ch. 4 of "XML and Java" 2nd ed, Maruyama, Tamura, Uramoto and others

The examples use createElementNS to create an element with a namespace, and
then once you have the element, the elements setAttributeNS method to set an
attribute with a namespace.

  
 

-----Original Message-----
From: Mark Brucks [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 1:32 PM
To: [EMAIL PROTECTED]
Subject: createAttributeNS question


The archive is unavailable, so I don't know if this has been discussed 
before.

Can someone tell me the difference between the 2-arg and 3-arg versions 
of CoreDocumentImpl.createAttributeNS and createElementNS, and how the 
values for the arguments affect what is created when a namespace is 
declared.  I'm creating a document from scratch (using createDocument, 
createAttributeNS and createElementNS).  I'm getting what appears to be 
inconsistent results (some elements but not all get "xmlns" namespace 
attributes, or some attributes get spurious namespace prefixes).

If there is more current documentation, can someone point me to it.  Thanks

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to