Reading value of element from CDATA

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi All,

I would like to get the value of admin which is inside CDATA, but I am unable to read the element using Xpath.<br/>
Please let me know any suggestions

<?xml version = "1.0" encoding = "UTF-8"?><br/>
<result final = "true" transaction-id="84WO" xmlns=" http://cp.com/rules/client http://cp.com/rules/client <br/>
<client id = "CustName><br/>
<quoteback><br/>
</client><br/>
<report format = "CP XML <br/>
<![CDATA[<?xml version="1.0" encoding = "UTF-8" standalone = "yes"?><br/>
<personal_auto xmlns = " http://cp.com/rules/client http://cp.com/rules/client <br/>
<admin>User1</admin><br/>
<report>Good</report><br/>
</personal_auto><br/>
]]></report> <br/>
</result>

Thanks in advance

View the full article
 
Back
Top