Answers to How to find a duplicate attribute value in xml using XPATH ( 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

Leave a reply to - How to find a duplicate attribute value in xml using XPATH

◀ Go back