XML XPathDocument

Hi,

I am getting some XML in from a web service in asp.net page.

The XML is in a string which I am loading into an xPathDocument.

To begin with I strip out the CDATA section usnig a REPLACE function call.
The resulting string will not work in an xPathDocument (I cannot navigate to anynodes) If however I take the floowing root element out of the string it does! It would seem to have something to do woth the namespaces - does anyone have any ideas??

<CTFschedule xmlns='http://www.govtalk.gov.uk/taxation/CTF' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.govtalk.gov.uk/taxation/CTF CTFschedule-v1-2.xsd'>
LVL 1
bwh1teAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mrwebdevCommented:
Look here, maybe this can help your situation, Good Luck!
http://www.experts-exchange.com/Web/Q_21190189.html

Let me know, Thanks!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bwh1teAuthor Commented:
Thanks for taking the time (I was hoping to only award you 100 for your effort but I could only give the whole lot)
The link you show is using the creatObject (associated with classic asp not asp.net)

Apparently the xPathDocument does not accept namespaces???????? This was why it was failing!

0
mrwebdevCommented:
Thank you very much!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.