Adding GdomeElement




Hello

I have to add new node to existing gdome tree (created from xml using
gdome_xml_from_document). Currently I do it as follows:

...
doc = gdome_n_ownerDocument (perentnode, &exc);
new = gdome_Document_createElement (doc, tagName, &exc);
gdome_n_appendChild (parentnode, new, &exc);
...

The gdome_Document_createElement returns (GdomeDOMNode *): It it correct
to cast it to (GdomeNode *) in current context?

Lauris Kaplinski




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]