RE: multiple attributes

2003-01-31 Thread Peter Vanopulos
Thanks Vasanth :) -Original Message- From: Soosai, Lourdhu Vasanth [mailto:[EMAIL PROTECTED] Sent: Thursday, 30 January 2003 9:46 PM To: '[EMAIL PROTECTED]' Subject: RE: multiple attributes use serializer. public static String getXmlString(Documen

RE: multiple attributes

2003-01-30 Thread Jan Les
ser.asDOMSerializer(); domSer.serialize(document); String result = outputStream.toString(); -Original Message- From: Peter Vanopulos [mailto:[EMAIL PROTECTED] Sent: Thursday, 30 January 2003 7:43 PM To: [EMAIL PROTECTED] Subject: RE: multiple attributes Hi Group, Quick question... What is the b

RE: multiple attributes

2003-01-30 Thread Soosai, Lourdhu Vasanth
Vanopulos [mailto:[EMAIL PROTECTED] Sent: Thursday, January 30, 2003 4:13 AM To: [EMAIL PROTECTED] Subject: RE: multiple attributes Hi Group, Quick question... What is the best way to go from a Document to a String. Thanks - To u

RE: multiple attributes

2003-01-30 Thread Peter Vanopulos
Hi Group, Quick question... What is the best way to go from a Document to a String. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: multiple attributes

2003-01-29 Thread Elena Litani
Peter Vanopulos wrote: > ===> I can not see a setAttribute() method that accepts a NamedNodeMap > as a parameter. Can you please post by example code. I never said that such method exists. See Joe's reply on this subject. > You can add attributes directly > to the org.w3c.dom.NamedNodeMap (which

RE: multiple attributes

2003-01-29 Thread Joseph Kesselman
>===> I can not see a setAttribute() method that accepts a NamedNodeMap > as a parameter. Can you please post by example code. That isn't a standard DOM operation. You're asking for a nonportable custom enhancement, and one that isn't really needed since it's extremely easy to write your own rou

RE: multiple attributes

2003-01-29 Thread Peter Vanopulos
Hi Elena, I fail to see what is "this problem" you are referring to.. While this is true that W3C DOM does not provide setAttributes() method on Element/Node interfaces, there are several ways how you can add attributes to an element using the DOM. ===> I can not see a setAttribute() method that

Re: multiple attributes

2003-01-28 Thread Elena Litani
Peter Vanopulos wrote: > > However I can not write multiple attributes to an element... > ===> JDom impl has something similar to what you are describing. I would > of thought that this problem had been encountered before and work around > existed... I fail to see what is &quo

RE: multiple attributes

2003-01-28 Thread Voytenko, Dimitry
Hi Peter, ===> JDom impl has something similar to what you are describing. I would of thought that this problem had been encountered before and work around existed... I'm afraid there's none. It's not really a problem and since, it's not covered by DOM specification it would make applications Xer

RE: multiple attributes

2003-01-28 Thread Peter Vanopulos
> Using xerces-j I can read in multiple attributes from an element by It's not Xerces, but rather DOM specification making use of the getAttributes() method that returns into a NodeList. This should be org.w3c.dom.NamedNodeMap, isn't it? ==> Sorry, NamedNodeMap is wha

RE: multiple attributes

2003-01-28 Thread Voytenko, Dimitry
Hi Peter, > Using xerces-j I can read in multiple attributes from an element by It's not Xerces, but rather DOM specification > making use of the getAttributes() method that returns into a NodeList. This should be org.w3c.dom.NamedNodeMap, isn't it? > However I can not write

multiple attributes

2003-01-28 Thread Peter Vanopulos
Hi All, Using xerces-j I can read in multiple attributes from an element by making use of the getAttributes() method that returns into a NodeList. However I can not write multiple attributes to an element... Can someone please explain how to do this or provide a small code example. Thanks and