Ignoreing xmlns in XML document

M

Maziar Aflatoun

Hi,

I have this XML file that I need to parse.

<property>
<name>some name</name>
<value>some value</value>
</property>

<report xmlns="http://schemas.site.com/test/test/">
<reportElementList>
<reportElement>
....
....
</reportElement>
</reportElementList>

My application works fine when I use doc.SelectNodes for 'property'.
However, for 'report' it fails because of the xmlns=.... Is there a way to
instruct the XMLDocument to ignore namespaces?

BTW, I have no control over the XML file that I get :(

Thanks
Maz.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top