I like jdom:
SAXBuilder parser = new SAXBuilder();
Document docConfig = parser.build("config.xml");
Element elConfig = docConfig.getRootElement();
String host = elConfig.getChildText("host");
More Related Contents:
- org.xml.sax.SAXParseException: Content is not allowed in prolog
- JAXB: How to ignore namespace during unmarshalling XML document?
- What Java XML library do you recommend (to replace dom4j)? [closed]
- Parsing XML with REGEX in Java
- How to add image in a TextView text?
- removing invalid XML characters from a string in java
- How to get the selected index of a RadioGroup in Android
- JAVA SAX parser split calls to characters()
- XML Document to String
- JAXB :Need Namespace Prefix to all the elements
- InflateException: Binary XML file line #1: Error inflating class caused by OutOfMemoryError
- How to stop parsing xml document with SAX at any time?
- What is the shortest way to pretty print a org.w3c.dom.Document to stdout?
- HTML/XML Parser for Java [closed]
- How to convert XML to JSON using only Jackson?
- Java API to parse XSD schema file [closed]
- StAX XML formatting in Java
- How to activate “Share” button in android app?
- XML syntax validation in Java [closed]
- How do I get a button to open another activity?
- How to get the attribute value of an xml node using java
- Dynamic tag names with JAXB
- How to ZXING Barcode Scanner not full screen only half screen
- CollapsingToolbarLayout doesn’t recognize scroll fling
- How is using OnClickListener interface different via XML and Java code? [duplicate]
- Why chose XML over properties files for Log4J configuration?
- How to update XML using XPath and Java
- Convert Java Date into XML Date Format (and vice versa)
- Unity3D and Android Studio Integration
- Sending XPath a variable from Java