Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML validation and parsing using xslt

 
Suja Mudunuri
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to XML and Related Technologies forum
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • 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
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • 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).
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic