Re: [xml] Obtaining Content of a Node problem

ActNode->name displays "Action"
ActNode->children->content displays "Create"
The text "Create" is a "children element" of the element "Action".
-----Mensaje original-----
De: xml-bounces gnome org [mailto:xml-bounces gnome org]En nombre de Ahmad Jalil Qarshi
Enviado el: martes, 12 de junio de 2007 10:17
Para: xml gnome org
Asunto: [xml] Obtaining Content of a Node problem


I am using LibXML2 library in code to parse the XML document. My XML document look like below:

<?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE RequestMessage SYSTEM "RequestMessage.dtd">

I have to get the content of <Action> Node i.e "Create" in this case. I am doing like below:

xmlNodePtr ActNode = root_node->children->children->children;

ActNode displays "name" as "Action", but "content" parameter is empty.
Kindly help me to resolve this problem.

Thanks in anticipation.


Ahmad Jalil Qarshi

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