This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes Genereate XML file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Genereate XML file" Watch "Genereate XML file" New topic
Author

Genereate XML file

suhasini dharmisetty
Greenhorn

Joined: Oct 07, 2008
Posts: 19
Hi,
I created xml file using java.
i crated like this:
<element><name>sa</name><age>2</age></element>
but i want to create like this:
<element version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="16c62a3e46b34eb7a935c8389ce6e2ab.xsd">
</element>

if anybody know please reply me.
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1


You can use JAXB you can generate XML files.

Cheers,
Raj.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Genereate XML file