On Wednesday, September 24, 2003, at 01:21 pm, Alex Greg wrote:


Hi all,


Could someone enlighten me as to whether it is possible to have an XML Schema validator as part of an AxKit pipeline?



Essentially, I have a process to transform OpenOffice documents into XML. These XML documents then need to be validated against a schema before they are finally published as HTML.



Additionally, is anyone aware of a command-line tool I can use to validate an XML file against a schema?




Latest (CVS?) XML::LibXML supports schema and relaxng. The latter being a much more sensible solution :)


It should be trivial to implement some form of schema validation stage on top of this,
try looking at the LibXSLT processor for a basic example, though all you'd need to do
is return the dom you've been passed in, or call die if you don't like the look of things.



Mike.



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to