Copied to clipboard

Flag this post as spam?

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


  • keilo 563 posts 1018 karma points
    Jun 29, 2012 @ 07:36
    keilo
    0

    XPATH selector only returns a single element

    Hi Alec

    Came across this package. I have to say its very usefull, thank you for contributing!

    I have one issue, when i use a XPATH to get multiple elements from an external URL, it only returns the first element.

    If I use Chrome XPATH extension, with the same XPATH, it returns all the items that match the criteria.

    For example: 

     <umbraco:Macro xpathQuery="//td[contains(@class, 'cHidden')]" URL="..." 

    Alias="Html2xml_withxpquery" runat="server"></umbraco:Macro>

     

    where the URL contains lots of TD tags with class set to cHidden.

    The macro returns only the first matching TD tag.

     

    Is there any solution to this? Would be greatly appreciated.

    Also is it using XPATH version 1 or 2?

    many thanks in advance!

  • 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