[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug xml/43138] New: XML Parsing error: "not a name start character: "U+

From: emmanuel at engelhart dot org
Subject: [Bug xml/43138] New: XML Parsing error: "not a name start character: "U+26"
Date: 22 Feb 2010 10:39:17 -0000

gcj (Ubuntu 4.4.1-5ubuntu2) 4.4.1

My sample code may be downloaded here as Test.java:

and looks like that:
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.helpers.DefaultHandler;

public class Test {

    public static void main(String argv[]) {

        try {

            SAXParserFactory factory = SAXParserFactory.newInstance();
            SAXParser saxParser = factory.newSAXParser();

            DefaultHandler handler = new DefaultHandler() {};
            saxParser.parse("test.xml", handler);

        } catch (Exception e) {

I compile it like following:
gcj -o test --main=Test Test.java

My XML file "test.xml" may be downloaded here:

By running the the binary I get the following error:
$ ./test
org.xml.sax.SAXParseException: not a name start character: "U+26"
   at gnu.xml.stream.SAXParser.parse(libgcj.so.10)
   at javax.xml.parsers.SAXParser.parse(libgcj.so.10)
   at javax.xml.parsers.SAXParser.parse(libgcj.so.10)
   at Test.main(test)
Caused by: javax.xml.stream.XMLStreamException: not a name start
character: "U+26"
   at gnu.xml.stream.XMLParser.error(libgcj.so.10)
   at gnu.xml.stream.XMLParser.readNmtoken(libgcj.so.10)
   at gnu.xml.stream.XMLParser.readNmtoken(libgcj.so.10)
   at gnu.xml.stream.XMLParser.readCharData(libgcj.so.10)
   at gnu.xml.stream.XMLParser.next(libgcj.so.10)
   at gnu.xml.stream.SAXParser.parse(libgcj.so.10)
   ...3 more

Although the XML is valid.

This "bug" impacts the Mediawiki mwdumper SW.

The related bug (with more details) is available here:

           Summary: XML Parsing error: "not a name start character: "U+26"
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: xml
        AssignedTo: dog at gnu dot org
        ReportedBy: emmanuel at engelhart dot org


reply via email to

[Prev in Thread] Current Thread [Next in Thread]