XML, XPath in .net

Feb 16 2010 1:27 AM
Im using vb.net, 2005, and Xpath queries (doc.selectnode("//LINE")) is not working on the following xml document... pls urgent help is required.

<?xml version="1.0"?>
<!--This is a host terminal response-->
<RESPONSE xmlns="x-schema:C:\FP\SWDIR\Content\emulation-schema.xml">
  <LINE INDEX="1">
    <![CDATA[  SOME DATA]]><CARRIAGE_RETURN />
  </LINE>
  <LINE INDEX="2">
    <![CDATA[---------------------------------------------------------------]]><CARRIAGE_RETURN />
  </LINE>
  <LINE INDEX="3">
    <![CDATA[ SOME DATA]]><CARRIAGE_RETURN />
  </LINE>
  <LINE INDEX="4">
    <![CDATA[  SOME DATA]]><CARRIAGE_RETURN />
</LINE>
  <LINE INDEX="5">
    <![CDATA[---------------------------------------------------------------]]><CARRIAGE_RETURN />
  </LINE>
  <LINE INDEX="6">
    <![CDATA[ SOME DATA]]><CARRIAGE_RETURN />
  </LINE>
  <LINE INDEX="7">
    <![CDATA[---------------------------------------------------------------]]><CARRIAGE_RETURN />
  </LINE>
  <LINE INDEX="8">
    <![CDATA[CLASSES]]><CARRIAGE_RETURN />
  </LINE>
  <LINE INDEX="9">
    <![CDATA[ SOME DATA  ]]><CARRIAGE_RETURN />
  </LINE>
  <LINE INDEX="10">
    <SOM />
  </LINE>
</RESPONSE>

Answers (3)