set your classpath =.;c:\xerces\xercesImpl.jar;c:\xerces\xmlParserAPIs.jar;c:\yourworkfolder then put the sample files SAXParserDemo.java in the c:\yourworkfolder, then comple the *.java files(javac SAXParserDemo.java) ,then run the class files(java SAXParserDemo)
check your SAXParserDemo.java, it may be package in ch03 then you must put the cho3\SAXParserDemo.java in your work folder then at c:\yourworkfolder\> java cho3.SAXParserDemogood luck!
xercesImpl.jar
xmlParserAPIs.jar
in your classpath then you can use the parser
then put the sample files SAXParserDemo.java in the c:\yourworkfolder, then comple the *.java files(javac SAXParserDemo.java) ,then run the class files(java SAXParserDemo)
then you must put the cho3\SAXParserDemo.java in your work folder
then at c:\yourworkfolder\> java cho3.SAXParserDemogood luck!
c:\mywork\SAXParserDemo.java:37:不能解析符号
符号:类Attributes
位置:包in sax
import org.xml.sax.Attributes;