Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Senior Member straight_up's Avatar
    Join Date
    Dec 2003
    Location
    Pennsylvania/Arizona
    Posts
    601
    Member #
    4309
    I'm using C# / .NET / Visual Studio right now, and trying to grab nodes from an XML document with XPath.
    Problem!
    The namespace of this XML file is preventing any XPath queries. Deleting the namespace and any elements with the rd: prefix "works" but that's not an option.

    Does anyone know how to use XPath with namespaced XML?
    I am Alan Hogan (@alanhogan on Twitter). I like PHP, UI/UX design, and OS X.

  2.  

  3. #2
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    I don't suppose the good ol' prefixing elements with rd: in the XPath expression works? I mean, it's supposed to, but I'm guessing you already tried that :-)

  4. #3
    Senior Member straight_up's Avatar
    Join Date
    Dec 2003
    Location
    Pennsylvania/Arizona
    Posts
    601
    Member #
    4309
    Quote Originally Posted by Shadowfiend
    I don't suppose the good ol' prefixing elements with rd: in the XPath expression works? I mean, it's supposed to, but I'm guessing you already tried that :-)
    Nope, I didn't. Thanks a bunch.
    I am Alan Hogan (@alanhogan on Twitter). I like PHP, UI/UX design, and OS X.

  5. #4
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    w00t! Fixed it without intending to! :-)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:50 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com