mrglavas 2005/03/15 13:13:37 Modified: java/docs faq-xs.xml Log: Fixing a bug in the code snippet that shows how to access PSVI with SAX. The XMLReader is castable to PSVIProvider not the JAXP SAXParser. Revision Changes Path 1.15 +3 -2 xml-xerces/java/docs/faq-xs.xml Index: faq-xs.xml =================================================================== RCS file: /home/cvs/xml-xerces/java/docs/faq-xs.xml,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- faq-xs.xml 9 Mar 2004 23:21:06 -0000 1.14 +++ faq-xs.xml 15 Mar 2005 21:13:37 -0000 1.15 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='UTF-8'?> <!-- - * Copyright 2002-2004 The Apache Software Foundation. + * Copyright 2002-2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -197,7 +197,8 @@ SAXParserFactory factory = SAXParserFactory.newInstance(); SAXParser parser = factory.newSAXParser(); -PSVIProvider psviProvider = (PSVIProvider)parser;</source> +XMLReader reader = parser.getXMLReader(); +PSVIProvider psviProvider = (PSVIProvider)reader;</source> </a> </faq> <faq title="Parsing and analyzing an XML schema">
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]