• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

XML Parser

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
I am new in working on websphere:rolleyes:
How can I create XML files from a predefined DTD? Do I need anything such as SAX,JaXP,JAXB Xceres kind of thing?
What is the XML parser I can use to parse XML documents? What is the default parser used in websphere?

Thanks

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use Altova XML Spy to generate xml from DTD.

DOM or SAX could be use to parse the xml in java, but they are used in different scenarios.

When to use DOM parser :

- Manipulate the document
- Traverse the document back and forth
- Small XML files
Drawbacks of DOM parser :
- Consumes lot of memory

When to use SAX parser :

- No structural modification
- Huge XML files

By default websphere uses xerces parser.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic