Please read refer to the DOM standard and the Xerces API documents and look
at the samples.  Xerces implements the standard DOM API, which includes a
createElement() method on the document class.

> -----Original Message-----
> From: Hugo Kotsubo [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, December 04, 2003 3:02 PM
> To: [EMAIL PROTECTED]
> Subject: how to create a DOMElement
> 
> 
> Hi
> 
> I'm trying to create a DOM tree with on-the-fly data.
> But there's no way to create a DOMNode of type DOMElement with "new" 
> operator..
> 
> I tried to create a dummy document with a single tag, parse 
> it and get 
> the root node
> with doc->getDocumentElement(), where doc is a DOMDocument object.
> After that, I tried to use the cloneNode() method, but after that I 
> can't modify the name of the
> clone node (there's no setName-like function)
> 
> So, how can I create the DOM tree?

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

Reply via email to