Register    Login
 
 
Knowledge baseJava
 
 
 
 
Java - DOM Minimize
Simple Java DOM XML Example
Unfortunately DOM XML documents in Java have a reputation for being hard to create. This simply isn't true. The construction process is very wordy though, but if you have a cheat sheet (like this tutorial), then they really aren't so bad. I'm going to show you a base example that does everything that most documents need to do. It has a root element. The root contains another element that is its child. The root contains a comment too. The child element has a name-value attribute. The child also contains some arbitrary text. If you have ever written a simple web page you will find this very similar in format. XML documents are very human friendly. Here is the simple XML Document we'll create. You can base extremely complex documents off of this base example.
Print  
 
 
 
 
 
 
 
Home|Company|Products|Contact|Forum|Downloads|Knowledge base|Shop
Copyright (c) 2010 FRENT IT Terms Of Use Privacy Statement March 12, 2010