We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Creating XML Files

da4thrza
da4thrza asked
on
Medium Priority
195 Views
Last Modified: 2010-03-31
Hi,

I need to create an XML file based on the input of a data file. While reading the data file, i would like to create elements in my output XML file. This is not a problem... but the problem i am having is how to ensure that the elements are being created according to the sequence defined in the schema file. I have no way of knowing which order the elements should appear in. I am looking for a solution can can sort my output XML to conform with the sequence definition of the schema file.

Thansk!
Comment
Watch Question

Commented:
Try some third party tools. Castor is the best.

http://www.castor.org

What kind of file is the data file?

________
radarsh

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
if you use javabeans you can just use a bean.
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010
Commented:
sorry meant xmlbeans :)

http://xmlbeans.apache.org/
Leo EikelmanDirector, IT and Business Development
Commented:
The easiest way of doing this is to use XMLBeans.

Refer to this link.  It is pretty straight forward

http://www.onjava.com/pub/a/onjava/2004/07/28/XMLBeans.html
Leo EikelmanDirector, IT and Business Development

Commented:
that's fine with me

Leo
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.