Skip to content
Advertisement

Tag: xmlnode

How to get the attribute value of an xml node using java

I have an xml which looks like this: Here I want to retrieve the value of “source type” where type is an attribute. I tried the following, which didn’t work: This also didn’t work: Answer Since your question is more generic so try to implement it with XML Parsers available in Java .If you need it in specific to parsers,

Advertisement