Thursday, 15 May 2014

How to get xml tag value using attribute value in java -



How to get xml tag value using attribute value in java -

how xml tag value using attribute value in java?

the format of xml is:

<str name="total requests made datasource">0</str> <str name="total rows fetched">0</str>

say eg: need tag value 0 using total requests made datasource value.

find element using xpath:

//str[@name='total requests made datasource']

once found element(s), extract text content.

java xml

No comments:

Post a Comment