You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by h e n r i k <he...@xl-studio.se> on 2000/10/18 09:58:49 UTC
Validating node
Is there any way of finding out which nodes/datatypes
are "valid" in the DOM tree, based on Schema or DTD?
IBM's Xeena does this - i'we heard...
/ h e n r i k
Re: Validating node
Posted by Elena Litani <hl...@jtcsv.com>.
Hi, henrik,
You mean RevalidatingDOMParser(org.apache.xerces.parsers.*)..? It is no
longer supported.
h e n r i k wrote:
> Is there any way of finding out which nodes/datatypes
> are "valid" in the DOM tree, based on Schema or DTD?
>
> IBM's Xeena does this - i'we heard...
>
> / h e n r i k
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
Re: Validating node
Posted by Elena Litani <hl...@jtcsv.com>.
oops, i answered for Revalidating parser msg.. :)
As for validation, did you try to turn on Validation on DOMParser?
You might want to set "http://xml.org/sax/features/namespaces" feature to
turn on the schema support. Smth like:
DOMParser parser = new DOMParser();
parser.setFeature( "http://xml.org/sax/features/validation", true);
Document document = parser.parse(uri);
Look at samples: DOMCount or Writer and see how it is done.
h e n r i k wrote:
> Is there any way of finding out which nodes/datatypes
> are "valid" in the DOM tree, based on Schema or DTD?
>
> IBM's Xeena does this - i'we heard...
>
> / h e n r i k
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org