Skip to main content

XML help needed!

2 replies [Last post]
emesol0
Offline
Joined: 2007-08-23
Points: 0

Hi all people here..I'm new to Java and I'm writing a program which reads data from an XML file and create a new XML file but with different tags name, in other words I'm converting the file to work with another DTD. I'm using ordinary IO and Strings; but I think there are many classes in Java which deals with XML files more easily. I'd be very happy if someone helps me with this stuff...what are the name of these classes..or what shall I do?

thx all!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
oleksiys
Offline
Joined: 2006-01-25
Points: 0

I think you can use XSLT for this task.
Please take a look here [1] for a sample.

[1] http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/xslt/4_trans...

emesol0
Offline
Joined: 2007-08-23
Points: 0

Thx alot. I realy found that XSLT link useful, But I had had already started that task with ordinary IO. I finished it and it works fine now, but my question is..is that considered lame or not professional to do that task using io and strings ?