Hi ,
My XML contains a node (I have given it below) which contains an xml text that is 'Please complete the "Enquiry Type" field' , as given below. And I am using a coldfusion function XMLSearch to search for an XML document Object. And I am using an XPath language (/langtexts/langtext[originaltext='Please complete the "Enquiry Type" field']) also, as given below. But the problem is I am getting an EMPTY ARRAY while serching the nodes using this function.
It would be much helpful and appreciated , if any one can solve this isuue.
Here is the code that I used:
<cfset XMLString = '<?xml version="1.0" encoding="UTF-8"?><langtexts><langtext langtextid="946" lang="JP"><originaltext>Please complete the &quot;Enquiry Type" field</originaltext><content>()を完成してください;問い合わせのタイプ(分野)</content></langtext></langtexts>'>
<cfset ParsedXML = xmlParse(XMLString)>
<cfset SearchResult = xmlSearch(ParsedXML, "/langtexts/langtext[originaltext='Please complete the &quot;Enquiry Type" field']")>
<cfdump var = "#SearchResult#">