• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to choose XML API?

 
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone have any guidlines for choosing XML DOM APIs? There are so many! Xerces, Xalan, JXML to name a few.

I need to read in a DOM, manipulate it and write it out. Which one would be best?
Thanks,
Siegfried
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since Java 1.4, the standard library has contained all you need to read in a DOM, modify it and write it out. I know of no good reason to use one of the other toolkits if your Java is current.
Bill
 
Siegfried Heintze
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What names do I look for in the API Documentation for the standard DOM? Will it do XPath and XSLT too?

Thanks,
Siegfried
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The important packages to look for in the JavaDocs are:

org.w3c.dom - for the Node, Element and related interfaces - pay particular attention to the table in the Node interface docs.
javax.xml.parsers - and packages close to it in the package list such as javax.xml.transformers
see also
javax.xml.xpath and javax.xml.validation

with a little browsing around you will find all you need. Sun has a nice tutorial, search for "sun xml tutorial"
[ August 18, 2006: Message edited by: William Brogden ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic