Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Classes for converting a flat file to XML

140778Nov 14 2004 — edited Nov 14 2004
I've been asked to convert text in a flat file to an XML document. The XML document must conform to an XML schema. Currenlty, there is no requirement to store the resulting xml in the database.

Therefore my approach will be:
1. parse the flat file and store the contents in an array (the flat file and target xml is fairly simple in structure)
2. Transfer the contents of the array to the xml structure
3. validate the xml against the schema

I'm new to Java. Therefore, what classes should I be using to assist in step 2. Obvoiusly, I dont want to have to write my own implementation from scratch (i.e. a method to build an element, method to escape reserved characters etc).

Could you please suggest classes that cover both DOM and SAX API's.

I'm working with a 9.2.0.4 database and XDK.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 12 2004
Added on Nov 14 2004
1 comment
547 views