ActNode->name displays "Action"
ActNode->children->content displays "Create"
The text "Create" is a "children element" of the element "Action".
;)

-----Mensaje original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de Ahmad Jalil Qarshi
Enviado el: martes, 12 de junio de 2007 10:17
Para: [email protected]
Asunto: [xml] Obtaining Content of a Node problem


Hi,

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">
    <RequestMessage>
        <Header>
            <RequestID>001</RequestID>
                <Action>Create</Action>          
        </Header>
        <Body>
            <CustomerID>321</CustomerID> 
        </Body>
</RequestMessage>

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.

Regards,

Ahmad Jalil Qarshi 


_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to