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:
http://www.java2s.com/Code/Java/XML/MakeupandwriteanXMLdocumentusingDOM.htm

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?

Thanks,
Ashok.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.