• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

free Java toolfor generating dynamic XML?

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
Is there any free Java tool for generating dynamic XML or any good way to do so? Let say I have a static XML template, I want to insert some dynamic content into the template so to get a dynamic XML file.
Thanks and Regards
Waldle
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing that I am aware of, but it isn't very difficult to do it yourself.
Simply read the XML file into a stream, use SAX/DOM or StringTokenizer based algorithm to search and replace dynamic content and voila! you have the dynamic XML.
Perhaps a more detailed description of your problem can help me give you a better suggestion
------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java�2 Platform.
IBM Certified Developer - XML and Related Technologies, V1.
 
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to look at general-purpose templating frameworks such as WebMacro which many people are using to generate XML, HTML and many other formats in just the way you describe.
 
Waldle Cai
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks guys!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!