You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Harry Sheng <ha...@ss8networks.com> on 2000/11/14 17:55:55 UTC
Schema Validation, Namespace support & XPath access
Hi, group
I am trying to use Xalan-J-20-D01 in my project.
I want to use schema validation, namespace, and
xpath in my project.
I tried the sample ApplyXPath.java in Xalan20.
It works well by default. But if I add a new line
"dfactory.setValidating(true)"
to ApplyXPath.java to enable the validation (I do
not know it is DTD or schema validation), I get
errors, but the XPath access works fine.
If I add one more line
"dfactory.setNamespaceAware(true)"
to ApplyXPath.java, I get no parsing error, but
I can not get the expected output.
This same problem exists for xalan12 and xerces113.
If I do need to use schema, namespace and xpath
in one project, how shold I use the xml packages?
Is there anyone can give me an example ?
Thanks in advance.
harry