Answers ( 1 )

  1. 2017-01-01 16:01

    The following XPath will return innerNode elements where name attribute has duplicate in sibling innerNode elements :

    //innerNode[
        @name = following-sibling::innerNode/@name
            or
        @name = preceding-sibling::innerNode/@name
    ]
    

    demo

◀ Go back