Hi,

If I understand you correctly, one way to create a DOMElement is to create
a DOMDocument and use its doc->createElement() member. See  file
xerces_c/samples/CreateDOMDocument/CreateDOMDocument.cpp

Regards,

Jeroen.

> 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?
>
> tks
> Hugo
>
>
> ---------------------------------------------------------------------
> 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