Re: [jats-list] validating NLM using python, any tips?

Subject: Re: [jats-list] validating NLM using python, any tips?
From: Matteo Gamboz <gamboz@xxxxxxxxxxxxxxxxx>
Date: Thu, 28 Nov 2013 17:59:52 +0100
On Thu, Nov 28, 2013 at 04:55:11PM +0000, Ian Mulvany wrote:
...
> If I can't get it to work in python, should I consider an alternative
> route, what would you suggest?

This is an alternative I use on a linux box:

# requires libxml3
schema_valid = os.system("xmllint  --noout --relaxng %s	\"%s\"" % (jats_rngschema, xml_filename))
if schema_valid != 0:
    self._warn("Warning: not JATS-valid\n")

hope it helps
m

Current Thread