Podobne

[ Pobierz całość w formacie PDF ]

at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:346)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:286)
at Echo10.main(Echo10.java:62)
http://java.sun.com/xml/jaxp-1.1/docs/tutorial/sax/work/Echo10-06.html [8/22/2001 12:53:24 PM]
http://java.sun.com/xml/jaxp-1.1/docs/tutorial/sax/work/Echo10-07.html
Running Echo10 ../samples/slideSample07.xml
LOCATOR
SYS ID: file:/java/pubs/dev/xml/docs/tutorial/sax/work/../samples/slideSample07.xml
START DOCUMENT
ELEMENT:
ATTR: title "WonderWidget Slide Show"
ATTR: date "Date of publication"
ATTR: author "Yours Truly"
>
PROCESS:
ELEMENT:
ATTR: type "all"
>
ELEMENT:
CHARS: Wake up to
CHARS: WonderWidgets
CHARS: !
END_ELM:
END_ELM:
ELEMENT:
ATTR: type "all"
>
** Parsing error, line 28, uri
file:/java/pubs/dev/xml/docs/tutorial/sax/work/../samples/slideSample07.xml
Element "slide" does not allow "item" here.
org.xml.sax.SAXParseException: Element "slide" does not allow "item" here.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3013)
at
org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(ValidatingParser.java:349)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1303)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:346)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:286)
at Echo10.main(Echo10.java:62)
http://java.sun.com/xml/jaxp-1.1/docs/tutorial/sax/work/Echo10-07.html [8/22/2001 12:53:27 PM]
http://java.sun.com/xml/jaxp-1.1/docs/tutorial/bin/compile
#!/bin/csh
echo Compiling $*
if ("$?JAXP" == "0") set JAXP="" # If not defined, define it.
if ("$JAXP" == "") then
# JAXP was not defined or has no value
echo Using JAXP bundles installed as standard extensions.
javac $*
else
echo Using JAXP variable to access bundles at $JAXP
set CP = .:${JAXP}/jaxp.jar:${JAXP}/crimson.jar:${JAXP}/xalan.jar
javac -classpath $CP $*
endif
http://java.sun.com/xml/jaxp-1.1/docs/tutorial/bin/compile [8/22/2001 12:53:28 PM]
http://java.sun.com/xml/jaxp-1.1/docs/tutorial/bin/run
#!/bin/csh
echo Running $*
if (! $?JAXP) then
# Using JAXP bundles installed as standard extensions.
set CP = "."
else
# Using JAXP variable to access bundles at $JAXP
set CP = ".:${JAXP}/jaxp.jar:${JAXP}/crimson.jar:${JAXP}/xalan.jar"
endif
java -classpath $CP $*
http://java.sun.com/xml/jaxp-1.1/docs/tutorial/bin/run [8/22/2001 12:53:28 PM]
http://java.sun.com/xml/jaxp-1.1/docs/tutorial/bin/compile.bat
echo Compiling %*%
if "%JAXP%" == "" goto DEFAULT
echo Using JAXP variable to access bundles at %JAXP%
set CP=.;%JAXP%\jaxp.jar;%JAXP%\crimson.jar;%JAXP%\xalan.jar
javac -classpath %CP% %*%
goto EXIT
:DEFAULT
echo Using JAXP bundles installed as standard extensions.
javac %*%
:EXIT
http://java.sun.com/xml/jaxp-1.1/docs/tutorial/bin/compile.bat [8/22/2001 12:53:29 PM]
http://java.sun.com/xml/jaxp-1.1/docs/tutorial/bin/run.bat
echo Running %1%.java
if "%JAXP%" == "" goto DEFAULT
echo Using JAXP variable to access bundles at %JAXP%
set CP=.;%JAXP%\jaxp.jar;%JAXP%\crimson.jar;%JAXP%\xalan.jar
goto RUN
:DEFAULT
echo Using JAXP bundles installed as standard extensions.
set CP="."
:RUN
java -classpath %CP% %*%
http://java.sun.com/xml/jaxp-1.1/docs/tutorial/bin/run.bat [8/22/2001 12:53:30 PM]
http://java.sun.com/xml/jaxp-1.1/docs/tutorial/sax/work/Echo01.java
/*
* @(#)Echo01.java 1.5 99/02/09
*
* Copyright (c) 1998 Sun Microsystems, Inc. All Rights Reserved.
*
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii) Licensee does not utilize the software in a manner
* which is disparaging to Sun.
*
* This software is provided "AS IS," without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
* This software is not designed or intended for use in on-line control of
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
* the design, construction, operation or maintenance of any nuclear
* facility. Licensee represents and warrants that it will not use or
* redistribute the Software for such purposes.
*/
import java.io.*;
import org.xml.sax.*; [ Pobierz całość w formacie PDF ]




Powered by MyScript