DOM support in Saxon

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

DOM support in Saxon

B V N Prashant
hi,
Does saxon support DOM API? How to validate an xml source against a
DTD,does saxon provide any API for this.

bye
prashant


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
saxon-help mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: DOM support in Saxon

Michael Kay
> Does saxon support DOM API?

You can supply a JAXP DOMSource as input to a transformation or query, if
that's what you mean. There's some further information about DOM support at
http://www.saxonica.com/documentation/sourcedocs/thirdparty.html

> How to validate an xml source against a
> DTD,does saxon provide any API for this.

This is controlled using the XML parser rather than using Saxon itself. From
the command line, you can request DTD validation of source documents using
the -v flag. From the JAXP API, you can supply the source in the form of a
SAXSource containing an XMLReader whose properties have been set to request
validation.

If you have more specific questions, don't hesitate to ask.

Michael Kay




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
saxon-help mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help
Loading...