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 bu...@apache.org on 2001/03/20 19:26:43 UTC
[Bug 1051] Changed - Validation not being done by parser
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1051
*** shadow/1051 Tue Mar 20 08:57:54 2001
--- shadow/1051.tmp.20807 Tue Mar 20 10:26:43 2001
***************
*** 2,11 ****
| Validation not being done by parser |
+----------------------------------------------------------------------------+
| Bug #: 1051 Product: Xerces-J |
! | Status: NEW Version: 1.2.3 |
! | Resolution: Platform: PC |
! | Severity: Normal OS/Version: |
! | Priority: Component: DOM |
+----------------------------------------------------------------------------+
| Assigned To: xerces-j-dev@xml.apache.org |
| Reported By: czanelli@c-bridge.com |
--- 2,11 ----
| Validation not being done by parser |
+----------------------------------------------------------------------------+
| Bug #: 1051 Product: Xerces-J |
! | Status: RESOLVED Version: 1.2.3 |
! | Resolution: INVALID Platform: PC |
! | Severity: Normal OS/Version: All |
! | Priority: High Component: DOM |
+----------------------------------------------------------------------------+
| Assigned To: xerces-j-dev@xml.apache.org |
| Reported By: czanelli@c-bridge.com |
***************
*** 34,37 ****
I'm using Xerces 1.2.3.
Is this the proper way to activate validation? Or is this a bug?
! -Chris
--- 34,40 ----
I'm using Xerces 1.2.3.
Is this the proper way to activate validation? Or is this a bug?
! -Chris
!
! ------- Additional Comments From elena@apache.org 2001-03-20 10:26 -------
! Read FAQ! http://xml.apache.org/xerces-j/faq-general.html#faq-6
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
Re: [Bug 1051] Changed - Validation not being done by parser
Posted by Joeseph Zeldin <jo...@togetherlab.com>.
Hello,
And how to call XERCES to validate XML by XSD Schema? Or am I dummy? I
tried to it in the same way, but was really confused.
bao> I'm using Xerces 1.2.3.
bao> Is this the proper way to activate validation? Or is this a bug?
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setValidating (true);
factory.setNamespaceAware(true);
factory.setAttribute ("http://apache.org/xml/features/allow-java-encodings", Boolean.TRUE);
factory.setAttribute ("http://apache.org/xml/features/validation/schema", Boolean.TRUE);
// factory.setAttribute ("http://apache.org/xml/features/validation/schema-full-checking", Boolean.TRUE);
DocumentBuilder domParser = factory.newDocumentBuilder ();
domParser.parse (xmlFileName);
--
Best regards,
Joeseph mailto:joe@togetherlab.com
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org