File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Xerces, Oracle or Sun TR2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Xerces, Oracle or Sun TR2" Watch "Xerces, Oracle or Sun TR2" New topic
Author

Xerces, Oracle or Sun TR2

Jay X Brown
Ranch Hand

Joined: Jan 26, 2001
Posts: 51
Which parser is recommended for basic e-com application handling user registration and sign-in and passing on such information to partner sites?
Would appreciate an answer?
Yes'm, I showr woooould!
Jay
Jay X Brown
Ranch Hand

Joined: Jan 26, 2001
Posts: 51
Or none of the above.
Brett McLaughlin says (http://www.javaworld.com/javaworld/jw-11-2000/jw-1110-validation3_p.html)
The key to the entire schemaParser class is being able to (no surprise here) actually parse an XML schema. Many XML parsers, such as Apache Xerces, currently offer options for schema validation; however, you do not want to use those facilities. In fact, you don't want the XML schema to be handled as a schema at all. That is because all parsers, at least in their current versions, use vendor-specific structures for handling XML schemas. The result is nonportable code, the enemy of any Java programmer.
Instead, the schemaParser class can rely on the fact that an XML schema document is actually an XML document as well. It conforms to XML's well-formedness rules and, therefore, can be treated as any other XML document. Therefore, the schema parser can read in the XML schema as an XML document and operate on it as it would any other document with which it works. That is exactly what the parseschema() method does.
----
What say the gurus of JavaRanch?
Jay
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
I would think, that in the presence of an XML document and a corresponding XML Schema, one should parse the schema with the validation turned off, and the XML document with the validation turned on.

------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java�2 Platform.


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Xerces, Oracle or Sun TR2