Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Benjamin Howarth 305 posts 771 karma points c-trib
    Aug 23, 2010 @ 15:03
    Benjamin Howarth
    0

    GetXmlNodeByXPath in .NET

    Hi all,

    Am trying to call umbraco.library.GetXmlNodeByXPath("//descendant::Blog") in an XSLT extension that I'm debugging in Visual Studio. However, GetXmlNodeByXPath refuses to work for any XPath expression I've tried.

    1. I'm not using $currentPage :-)
    2. I'm not using umbraco.library or any other extension methods inside the XPath expression.

    I've tried the following:

    • "*//Blog";
    • "Blog";
    • "//Blog";
    • "*//descendant::Blog";
    • "//descendant::Blog"

    And it constantly returns all the XML from the <root id="-1"> node downwards - the entire contents of the umbraco.config file.

    Any thoughts?

    Ta,

    Benjamin

  • Benjamin Howarth 305 posts 771 karma points c-trib
    Aug 23, 2010 @ 17:58
    Benjamin Howarth
    0

    Edit: It's fixed now :-) although I don't know what I did to fix it...

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies