byron wrote:
> I am using the lxml.etree library to validate an xml instance file
> with a specified schema that contains the data types of each element.
> This is some of the internals of a function that extracts the
> elements:
>
> schema_doc = etree.parse(schema_fn)
> schema = e
On May 21, 8:27 pm, MRAB wrote:
> byron wrote:
>
> [snip]
>
> > Thanks. Yes i tried something like this, but I think I overwrite `c`
> > when i wrote it, as in:
>
> > if len(c) > 0:
> > c = fin_node(c, name)
> > if c is not None:
> > return c
>
> FYI, doing that won
byron wrote:
[snip]
Thanks. Yes i tried something like this, but I think I overwrite `c`
when i wrote it, as in:
if len(c) > 0:
c = fin_node(c, name)
if c is not None:
return c
FYI, doing that won't actually matter in this case; 'c' will still be
bound to the n
On May 21, 6:57 pm, MRAB wrote:
> byron wrote:
> > I am using the lxml.etree library to validate an xml instance file
> > with a specified schema that contains the data types of each element.
> > This is some of the internals of a function that extracts the
> > elements:
>
> > schema_doc =
byron wrote:
I am using the lxml.etree library to validate an xml instance file
with a specified schema that contains the data types of each element.
This is some of the internals of a function that extracts the
elements:
schema_doc = etree.parse(schema_fn)
schema = etree.XMLSche
I am using the lxml.etree library to validate an xml instance file
with a specified schema that contains the data types of each element.
This is some of the internals of a function that extracts the
elements:
schema_doc = etree.parse(schema_fn)
schema = etree.XMLSchema(schema_doc)