Re: [xml] Newbie question



--- Gustavo Amador Rios <garios mexico com> wrote:
Just for reference here is a snippet:
documentoXML = xmlNewDoc((const xmlChar *)XML_HEADER);

rootXML = xmlNewDocNode(documentoXML, NULL,REG_ELEM_DISPOSITIVOS, NULL);     

use xmlNewChild((xmlNodePtr)documentoXML,NULL,REG_ELEM_DISPOSITIVOS, NULL)
instead.   xmlNewDocNode() doesn't add the node as a child the document node.




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