Hello All,

I need to create a simple xml document using DOM(I am not specific on using only DOM. It can be SAX also).

I tried putting to use a sample from this link:

In the link above, the line: Document doc = parser.newDocument(); resuts in a null value. Almost all examples show similar coding, but the problem remains the same. Could any one pull me out of the hole?


use another tutorial...

There is a lot of excellent documentation included with Apache Xerces for example. And the documentation that you can get for the JDK is also extremely complete.