This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
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
Joined: Jan 26, 2001
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