The below xpath condition will give both the card numbers as output. How can I modify this to get the first cardnumber alone. xml attached
/*/*/*/*/*/*[local-name()='cardNO']
Try with /*/*/*/*/*/*[local-name()='cardNO'][1]
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.