Copied to clipboard

Flag this post as spam?

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


  • Mike Poole 53 posts 165 karma points
    Jan 26, 2018 @ 08:33
    Mike Poole
    0

    Using XPath on error in umbracoSettings.config

    I have a page "Error" under my root node in Umbraco

    How do I find out the XPath value for this page/node to be able to use on the

    It works find if I have the Id (<error>1513</error>) but when I try <error>//Error</error> it does not work

    What would be the correct syntax for the page? Is there a quick way to find out that the XPath syntax for the page is?

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Jan 26, 2018 @ 22:38
    Dennis Aaen
    0

    Hi Mike,

    If your document type is called Error then you will need to do it like this:

    <error>//error</error>
    

    Because in the XML document where the content is saved all elements will start with lowercase

    I have just tried with a document type called Error and it works for me when I doing the above.

    Try to do the same and see if it works for you too.

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft