How to get the attribute value of an xml node using java
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, update your code here what you have tried yet <?xml version=”1.0″ encoding=”UTF-8″?> <ep> <source type=”xml”>TEST</source> <source type=”text”></source> </ep> DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance(); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); … Read more