This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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