This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Creating an Xml File from an Schema. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Creating an Xml File from an Schema." Watch "Creating an Xml File from an Schema." New topic
Author

Creating an Xml File from an Schema.

Arulanand Dayalan
Ranch Hand

Joined: Aug 10, 2005
Posts: 124
Hi All,

I have a text file which contains the data seperated by Delimiters. This needs to be converted to xml file. I also have the schema based on which the xml file needs to be created. I was searching for long time, but still i cant find a approach to do this. Can any one suggest how to proceed to accomplish this.

Thanks in Advance.

Regards,
Arul.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Something like this. As for the schema, just write your code to output XML that conforms to it. Serializers don't generally validate the XML they are serializing.
Arulanand Dayalan
Ranch Hand

Joined: Aug 10, 2005
Posts: 124
Thanks for the quick response. Will work based on this.

Regards,
Arul.
 
 
subject: Creating an Xml File from an Schema.
 
Similar Threads
Does Xerces validate xml files with schema(xsd)
Doubt in WSDL import element
XMLSchema and DTD
Converting a DTO object to an XML File
Generic XML parsing