XML XPathDocument

Posted on 2004-11-09
Last Modified: 2008-02-26

I am getting some XML in from a web service in 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='' xmlns:xsi='' xsi:schemaLocation=' CTFschedule-v1-2.xsd'>
Question by:bwh1te
    LVL 6

    Accepted Solution

    Look here, maybe this can help your situation, Good Luck!

    Let me know, Thanks!
    LVL 1

    Author Comment

    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

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

    LVL 6

    Expert Comment

    Thank you very much!

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
    Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
    This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
    This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now