wood burning stoves 2.0*
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
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: 41108
    
  45
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 - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to convert one xml into different dtd xml
 
Similar Threads
passing parameters
Persisting a class to two tables with Hibernate
Combinig 2 struts properties using AND Operator
Enhanced java.util.Properties Implementation
property file: value of one property needs to be dependant on the value of another property.