Home » Core Java » xml » JDOM

JDOM

Create XML File in Java using JDOM parser example

In this tutorial we are going to see how to create an XML File in Java using JDOM parser. If you’ve read the previous tutorial on JDOM parser about modifying an XML File you might have a very clear aspect on what this tutorial is all about. Basically we are going to create a root Element and some new child ...

Read More »

Modify XML File in Java using JDOM parser example

In the previous tutorial we show how to read an XML File using JDOM parser. In this tutorial we are going to see how to modify the contents of an XML File.                     This is the XML File we are going to use for the demonstration. testFile.xml: <?xml version="1.0" encoding="UTF-8" standalone="no"?><company> ...

Read More »

Read XML File in Java using JDOM parser example

In this example we are going to see how to parse an XML File using JDOM. JDOM is a Java representation of an XML. It’s a very easy to use tool and it has a straightforward API. It’s an alternative to DOM and SAX and it integrates equally well with both of them. JDOM is an external library and you ...

Read More »