Re: [xml] Obtaining Content of a Node problem
- From: "GORKA VELEZ" <gvelez fagorautomation es>
- To: "Ahmad Jalil Qarshi" <ahmad jalil qarshi gmail com>, <xml gnome org>
- Subject: Re: [xml] Obtaining Content of a Node problem
- Date: Tue, 12 Jun 2007 10:22:58 +0200
ActNode->name displays "Action"
ActNode->children->content displays "Create"
The
text "Create" is a "children element" of the element
"Action".
;)
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]