I have the following issue, i want to retrieve all anchors from a richtext field using a xpath query, problem is that when i retrieve the document, the innercontent of a field has esaceped xml, is there a way to get the "raw" xml so i can apply a xpath query on it?
Retrieve unescaped data from Document Field
I have the following issue, i want to retrieve all anchors from a richtext field using a xpath query, problem is that when i retrieve the document, the innercontent of a field has esaceped xml, is there a way to get the "raw" xml so i can apply a xpath query on it?
Can't you just get the string value and use the HTMLAgilitypack for that?
Load content in HtmlDocument and use the following xpath
htmlDocument.DocumentNode.SelectNodes(
"//a[@href]");
Super, did not know what happened but at first it did not work, but now its magically working :)
HtmlAgilitypack is magic :)
is working on a reply...