DOMDocument *d = parser->parseURI("test.xml");
DOMElement *eleNew = d->createElementNS(X("http://foo"), X("lala"));
d->replaceChild(eleNew, d->getDocumentElement());
Gareth
On Mon, 24 Nov 2003, Milan Tomic wrote:
>
> > I was just doing that lol. You wont believe the number of times
> > this has irritated me in the past. And now I find I have just
> > made it all
> > up ;). Ah well. Thanks for pointing that out Erik.
>
> Please, could someone provide some example?
>
> Thank you.
>
> I've tried this:
>
> newElem->replaceChild(newElem, theDOM->getDocumentElement());
>
> but failed. :(
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
Gareth Reakes, Head of Product Development +44-1865-203192
DecisionSoft Limited http://www.decisionsoft.com
XML Development and Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]