0

How can I read a xml element, something like:

<content:encoded><![CDATA[<blockquote><p>some data here ]]<content:encoded>

I want to read the above xml node in C#, but when I use...

"content:encoded" 

.. as the xpath runtime error come:

  IXmlNode node = parent.SelectSingleNode("content:encoded");

How should I write the xpath for above xml?

Matt Tester
  • 4,663
  • 4
  • 29
  • 32
Riyal MHH
  • 1
  • 1

1 Answers1

1

Add a namespace declaration on the top of the module/class.

Cylian
  • 10,970
  • 4
  • 42
  • 55