[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]