[XML-SIG] xml-schema parsing using minidom.

Thomas B. Passin tpassin@home.com
Mon, 3 Dec 2001 19:48:21 -0500


I wrote -
> >
> 
> In minidom.py, class DomImplementation, the following code appears in my
> copy:
> 
>         prefix, localname = _nssplit(qualifiedName)
>         if prefix == "xml" \
>            and namespaceURI != "http://www.w3.org/XML/1998/namespace":
>             raise xml.dom.NamespaceErr("illegal use of 'xml' prefix")
>         if prefix and not namespaceURI:
>             raise xml.dom.NamespaceErr(
>                 "illegal use of prefix without namespaces")
> 
> This explicitly checks for the right xml: namespace uri and raises an
> exception if it isn't found.  The minidom parser() method...

I meant, of course, minidom.parse().  Sorry for the type.

Tom P