• 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

XML validation and parsing using xslt

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am new to XML. I need to know how to validate an xml file using DTD and Transform the validated XML to another XML using XSLT
read the Transformed xml using a java file, using xml and ejb, display results in jsp.
Can any body help me please, I have to prepare for some important meeting and also should show how to do it. I read Sun J2ee book it talks about SAX parser I could not get much from it. Can any body give me a sample XML, DTD and slt. I need it ASAP.

Thak You.
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to XML and Related Technologies forum
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A quick googling revealed plenty of nice tutorials. For example, this might be suitable for your needs. Sun's JAXP tutorial includes a nice chapter on XSL transformations.

Furthermore, you really should bookmark Elliotte Rusty Harold's Processing XML with Java and the Java Developer's Almanac.
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I forgot one very useful resource: the vast amount of XML tutorials from IBM developerworks.

Oh, and you can turn on DTD validation by calling the setValidating(true) method on the factory you're using to create the parser instance (DocumentBuilderFactory if you're using DOM, SAXParserFactory if you're using SAX).
 
reply
    Bookmark Topic Watch Topic
  • New Topic