AW: Re: [xml] problem reading attributes in XML with DTD



You aren't getting anything because you are reading the DTD (still part 
of tree). The DTD is the first child of your doc. Use 
xmlDocGetRootElement to get your root.
xmlNodePtr root = xmlDocGetRootElement(doc);

ARGH!
I was too lazy to lookup the function name, so I did it by accessing the children member.
Thanks a lot.



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