How Do I write an XML file using Java?

Hello there!! to everyone reading my post.

I have this project I need to do, and I have no clue where to start, I was wondering if you guys could help me out.

I need to know how to write an XML file using a Java Program, but without using a Third party library.... just using java native APIs.

I will probably take the values to construct the file from a form.

I will certainly appreciate if you could post some sample code for me.

Thank you very much in advance..

[501 byte] By [BCE_Josea] at [2007-11-26 12:19:51]
# 1
http://java.sun.com/xml/tutorial_intro.html
hunter9000a at 2007-7-7 15:09:06 > top of Java-index,Archived Forums,Socket Programming...
# 2
Thank you sir. I will check that tutorial out.and..... then I will Probably ask about my further doubts.PD: Can I use Netbeans to develop this Tutorial ?
BCE_Josea at 2007-7-7 15:09:06 > top of Java-index,Archived Forums,Socket Programming...
# 3
The tutorial is already developed, just read it. I don't understand your question.
zadoka at 2007-7-7 15:09:06 > top of Java-index,Archived Forums,Socket Programming...
# 4
Hello Sir, I meant if I could use NetBeans IDE to test the examples shown in the Tutorial?thanks,
BCE_Josea at 2007-7-7 15:09:06 > top of Java-index,Archived Forums,Socket Programming...
# 5
Yes, but make sure you do not get too depended on an IDE or a specific IDE.
zadoka at 2007-7-7 15:09:06 > top of Java-index,Archived Forums,Socket Programming...
# 6
All right, Thank you for all the great advice !God Bless you.
BCE_Josea at 2007-7-7 15:09:06 > top of Java-index,Archived Forums,Socket Programming...
# 7

Hello there!,

I have some doubts about the Tutorial I am currently reading. correct me If I'm wrong, but the section "Write a simple XML file" teaches you how to do so using a text editor. I need to create my XML file from a running Java Program written by myself, that takes the values to build it from some variables.

If I'm totally wrong about what I'm saying, could you please point me to where I can find the information of how to do what I'm asking for, inside the tutorial.

Thank you very much,...

sincerely.

BCE_Josea at 2007-7-7 15:09:06 > top of Java-index,Archived Forums,Socket Programming...
# 8
Well, then you are going to need to know how to write out a file: http://java.sun.com/docs/books/tutorial/essential/io/index.htmlHere is a link to the full tutorial: http://java.sun.com/docs/books/tutorial/index.htmlHint: searching it can be very helpful
zadoka at 2007-7-7 15:09:06 > top of Java-index,Archived Forums,Socket Programming...