There are of course a lot of good solutions based on what you need. If it is just configuration, you should have a look at Jakarta commons-configuration and commons-digester.
You could always use the standard JDK method of getting a document :
import java.io.File; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; [...] File file = new File("some/path"); DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document document = db.parse(file);
Related Posts:
- In Java, how do I parse XML as a String instead of a file?
- How do I save a String to a text file using Java?
- “Content is not allowed in prolog” when parsing perfectly valid XML on GAE
- Rename a file using Java
- The system cannot find the file specified in java
- Converting JSON to XML in Java
- align text center with android
- javax.xml.bind.UnmarshalException: unexpected element (uri:””, local:”Group”)
- org.xml.sax.SAXParseException: Content is not allowed in prolog
- Java can’t find file when running through Eclipse
- HTTP Status 500 Error instantiating servlet class
- Invalid escape sequence (valid ones are \b \t \n \f \r \” \’ \\ )
- How to read and write XML files?
- Cannot resolve symbol ‘button’ -Android Studio
- Java FileOutputStream Create File if not exists
- Downloading a file from spring controllers
- Error: The processing instruction target matching “[xX][mM][lL]” is not allowed
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- How to set menu to Toolbar in Android
- How to read file from relative path in Java project? java.io.File cannot find the path specified
- How can I get the count of line in a file in an efficient way?
- Http status 401 This request requires HTTP authentication (). in tomcat 6
- Android Studio 2.2.3: Gradle project sync failed. Basic functionality (e.g. editting, debugging) will not work properly
- How can I catch all the exceptions that will be thrown through reading and writing a file?
- Java split string to array [duplicate]
- Reason for”Exception in thread “AWT-EventQueue-0″ java.lang.NullPointerException”
- NoSuchElementException with Java.Util.Scanner
- ‘Java’ is not recognized as an internal or external command
- Running JAR file on Windows
- What are all the escape characters?
- Java “Error occurred during initialization of VM” fix?
- Postfix Calculator Java
- How to create a sub array from another array in Java?
- “Missing return statement” within if / for / while
- A JNI error has occurred, please check your installation and try again in Eclipse x86 Windows 8.1
- Round a double to 2 decimal places
- com.atomikos.icatch.SysException: Error in init: Log already in use? tmlog in ./
- @ converted to %40 in HTTPPost request
- Global variables in Java
- Java implementation for Min-Max Heap?
- How can I convert a long to int in Java?
- Java Method Stubs
- What’s the purpose of META-INF?
- JVM Crash – “EXCEPTION_ACCESS_VIOLATION”
- How to connect to FTP over TLS/SSL (FTPS) server in Java
- How to check type of variable in Java?
- Spring boot – Request method ‘POST’ not supported. Tried everything
- Convert .class to .java
- What does Scanner input = new Scanner(System.in) actually mean?
- Enhanced FOR loops in C++
- How can I create an Array of ArrayLists?
- Create a List of primitive int?
- Compiling error: Return type for the method is missing
- Range of valid character for a base 64 encoding
- How to parse JSON boolean value?
- How to create an 2D ArrayList in java?
- Insert Dimensions to complete Expression/ReferenceType
- Unable to locate tools.jar
- Possible lossy conversion from double to float, given float values?
- how to fix EXE4J_JAVA_HOME, No JVM could be found on your system error?
- Error: ‘else’ without ‘if’
- How to create a custom exception type in Java?
- Extending from two classes
- Web server failed to start. Port 8080 was already in use. Spring Boot microserviceWeb server failed to start. Port 8080 was already in use. Spring Boot microservice
- Could not resolve placeholder in string value
- All inclusive Charset to avoid “java.nio.charset.MalformedInputException: Input length = 1”?
- javac error: Class names are only accepted if annotation processing is explicitly requested
- JOptionPane YES NO OPTION
- How to check if a String is numeric in Java
- How to get today’s Date?
- Creating a random string with A-Z and 0-9 in Java
- java.lang.ArithmeticException: / by zero
- How to create JSON Object using String?
- How to repaint a JPanel after have drawn on it?
- Why doesn’t RecyclerView have onItemClickListener()?
- Inverse Logistic Function / Reverse Sigmoid Function
- How can I check if a single character appears in a string?
- Java Error – Illegal Modifier for Parameter – Only final Permitted
- E/AndroidRuntime﹕ FATAL EXCEPTION: main
- Big Oh for (n log n)
- Invalid initial heap size. Could not create the Java virtual machine
- implicit super constructor object() is undefined. must explicitly invoke another constructor
- How to convert a String into an ArrayList?
- Making a deep copy of a LinkedList in java
- Java Fraction Calculator
- How to convert a date to milliseconds
- Eclipse IDE – Error: Build path specifies execution environment Java SE 1.7
- How do I join two lists in Java?
- How to insert multiple tabs string in java?
- Java methods getting euclidean distance
- Setting background color for a JFrame
- Does java have “get line”?
- User Input not working with keyboard.nextLine() and String (Java)
- javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake during web service communicaiton
- Generate UML Class Diagram from Java Project
- how to convert .java file to a .class file
- Java FileWriter with append mode
- The import org.junit cannot be resolved
- Wrong project is being run in Eclipse
- Multidimensional Arrays lengths in Java