permaculture playing cards*
The moose likes XML and Related Technologies and the fly likes Need to convert one xml into different dtd xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Need to convert one xml into different dtd xml" Watch "Need to convert one xml into different dtd xml" New topic
Author

Need to convert one xml into different dtd xml

Isha Saini
Greenhorn

Joined: Jul 05, 2013
Posts: 3
Hi,

I have a requirement, where, I have a dtd xml, and want to convert that xml file into different xml file with different dtd. Please suggest, how it can be achieved?
For e.g.
convert

<item name="test">
<prop name="prop1" derived="prop2">
</item>

to

<entity name="test">
<property name="prop1">
<property name="prop2">
</entity>

Both xmls have different dtds, How may I achieve this? Is there any tool, I may use to ease my work. Please help.

Regards,
Isha Saini
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39544
    
  27
The usual way to transform XML into some other XML would be to use XSLT (XSL Transformations). That either XML conforms to some DTD really doesn't figure into it.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to convert one xml into different dtd xml
 
Similar Threads
property file: value of one property needs to be dependant on the value of another property.
Enhanced java.util.Properties Implementation
passing parameters
Combinig 2 struts properties using AND Operator
Persisting a class to two tables with Hibernate