1) Make sure you're building that DOM using the namespace-aware calls
(createElementNS, createAttributeNS). I'm not sure, but you may also have
to make sure you're explicitly creating the namespace declaration
attributes. Old "level 1" non-namespace-aware DOM trees are rarely
supported by modern namespace-aware code.

2) Remember that namespaces aren't automatically associated with shemas;
you need to provide a hint to tell the parser where to find the schema file
you want to validate against, either in the document or via the APIs. (A
namespace is just a namespace; it doesn't necessarily point at anything. It
*may* be the same as the schema URI, but that is not assumed.)

______________________________________
"... Three things see no end: A loop with exit code done wrong,
A semaphore untested, And the change that comes along. ..."
  -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish
(http://www.ovff.org/pegasus/songs/threes-rev-11.html)

Reply via email to