google / civics_cdf_validator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support default namespaces

flibbertigibbet opened this issue · comments

Currently, validation fails if a default namespace is defined in the XML document.

When a namespace is defined, find fails to locate elements in the document, as element searches must include the namespace prefix.

Support default namespaces that are defined, for example, by including xmlns="http://www.votegis.com/schema/NISTV50.xsd" on the ElectionReport element.

Can you provide an example of an XML document which fails to validate because of this issue? And can you provide an example scenario in which an XML document must have a default namespace defined?