• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question on Java Application Design  RSS feed

 
Aymen Benhmida
Greenhorn
Posts: 12
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,

i developed a utility jar which converts a proprietary XML file into an Excel file and vice verse. When i begun the development i was using a version 1.2 of that XML but now i'm told to make it compatible with the version 1.1.
the difference between both version is that one have different spelling for some tag or attributes and have some extra tags that the other don't have(and for which the utility was developed in the first place)
I used the sax parser for reading and DOM for writing data of the XML file.
also used the Jexcel API for Excel file.

Now i have to do some modification which i want it to have as little impact as possible on what we have now.

can anybody advise me on how to handle the desing for this utility to make it as generic as possible and if there's any design patterns which i can implement?

thank you
 
Wim Vanni
Ranch Hand
Posts: 96
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would go for additional XSLT step(s) to go from XML 1.2 to 1.1 or vice versa.

Wim
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For which you can use javax.xml.transform.Transformer:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!