You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xerces.apache.org by Scott Okupski <Sc...@WallStreetSystems.com> on 2000/02/07 19:07:05 UTC

Error Running Samples Using Schema

I can run the samples (IteratorView and TreeWalker) without problem when
using the supplied data file "personal.xml". However, If I try to run the
samples using "personal-schema.xml", my system hangs at the command prompt
with the following output: http://apache.org/xml/properties/dom-node

I'm running Xerces-1_0_1 on NT. Are there any known problems running the
samples using schema versus DTD?

Thanks for any help,
Scott Okupski
Wall Street Systems


Re: Error Running Samples Using Schema

Posted by Andy Clark <an...@apache.org>.
Scott Okupski wrote:
> I can run the samples (IteratorView and TreeWalker) without problem when
> using the supplied data file "personal.xml". However, If I try to run the
> samples using "personal-schema.xml", my system hangs at the command prompt
> with the following output: http://apache.org/xml/properties/dom-node

First, the property is "http://xml.org/sax/properties/dom-node".
Second, we don't support this property. Through a defect in the
documentation, this property never showed up in the 1.0.1 docs.
The next release should solve this documentation problem. 

However, this SAX2 property is only to be used by SAX parsers
that are traversing a DOM tree in order to produce callbacks to
the SAX handlers. Perhaps we should consider adding a
parser(Document) method to the SAXParser. But it seems kind of
overkill to have a parser when an instance of the DOM Level 2
traversal APIs could address this problem.

-- 
Andy Clark * IBM, JTC - Silicon Valley * andyc@apache.org