[XML-SIG] DOM test failures
Fred L. Drake, Jr.
fdrake@acm.org
Fri, 14 Dec 2001 12:41:37 -0500
Rich Salz writes:
> Someone COULD use DOM Level 1 API to create a namespace-correct DOM
> e = createElement("foo:elt", ...)
> e.createAttribute("xmlns:foo", "http://example.com")
> but that seems highly unlikely. I'd follow Fred's suggestion and raise
> an error if trying to create something with a colon in the name,
> otherwise fall through to the Level2 routines with EMPTY_NAMESPACE.
Huh? I thought my suggestion was to raise NamespaceErr if someone
tried to create a node using a *NS method with '' for the namespace
URI.
Creating a node with a colon in the name must be allowed for the
level 1 methods.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Zope Corporation