You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by Fabien Guinet <fa...@inovatel.com> on 2001/03/30 10:44:11 UTC

P-014 parsing error ...

I am distressed to bore you with my mistake but it is for me blocking. Here
it is therefore:

     [java] org.xml.sax.SAXParseException: org.apache.crimson.parser/P-014
eacute
     [java]     at
org.apache.crimson.parser.Parser2.fatal(Parser2.java:3030)
     [java]     at
org.apache.crimson.parser.Parser2.fatal(Parser2.java:3024)
     [java]     at
org.apache.crimson.parser.Parser2.expandEntityInContent(Parser2.java:2384)
     [java]     at
org.apache.crimson.parser.Parser2.maybeReferenceInContent(Parser2.java:2293)
     [java]     at
org.apache.crimson.parser.Parser2.content(Parser2.java:1749)
     [java]     at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1461)
     [java]     at
org.apache.crimson.parser.Parser2.content(Parser2.java:1695)
     [java]     at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1461)
     [java]     at
org.apache.crimson.parser.Parser2.content(Parser2.java:1695)
     [java]     at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1461)
     [java]     at
org.apache.crimson.parser.Parser2.content(Parser2.java:1695)
     [java]     at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1461)
     [java]     at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
     [java]     at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
     [java]     at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
     [java]     at
org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:1
73)
     [java]     at
javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:62)

     [java]      Column number : -1
     [java]      Line number   : 17
     [java]      Public ID     : null
     [java]      System ID     : null

On the following XML file :

<?xml version='1.0'?>
<Envelope>
  <header>
  </header>
  <body>
    <parameters>
      <NbLines>215</NbLines>
      <id>123902</id>
      <lastname>BxxxxxxxD</lastname>
      <firstname>Jean-Etienne</firstname>
      <email>jebxxxxxx@xxxx.com</email>
      <company>xxxxxx</company>
      <id>123903</id>
      <lastname>PxxxxxxxxxxT</lastname>
      <firstname>Nicolas</firstname>
      <email>NPxxxxxxxT@xxx.fr</email>
      <company>SQL Ing&eacute;nierie</company>
      <id>123904</id>
      <lastname>JxxxxxE</lastname>

It seems to be the "&" which cause the parsing error. How could we set the
parser more permissive ?

Thank you for your response ...

Fabien


Re: P-014 parsing error ...

Posted by Edwin Goei <Ed...@sun.com>.
> Fabien Guinet wrote:
> 
> I am distressed to bore you with my mistake but it is for me blocking.

XML unlike HTML does not define "eacute" predefined as an entity so you
must define it in your DTD yourself.  As for the P-014 error code,
current versions of crimson print text messages instead of error codes. 
You can build it by checking out the latest from CVS or the pre-built
version may also have the fix in it.

-Edwin

> Here it is therefore:
> 
>      [java] org.xml.sax.SAXParseException:
> org.apache.crimson.parser/P-014 eacute
>      [java]     at
> org.apache.crimson.parser.Parser2.fatal(Parser2.java:3030)
>      [java]     at
> org.apache.crimson.parser.Parser2.fatal(Parser2.java:3024)
>      [java]     at
> org.apache.crimson.parser.Parser2.expandEntityInContent(Parser2.java:2384)
>      [java]     at
> org.apache.crimson.parser.Parser2.maybeReferenceInContent(Parser2.java:2293)
>      [java]     at
> org.apache.crimson.parser.Parser2.content(Parser2.java:1749)
>      [java]     at
> org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1461)
>      [java]     at
> org.apache.crimson.parser.Parser2.content(Parser2.java:1695)
>      [java]     at
> org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1461)
>      [java]     at
> org.apache.crimson.parser.Parser2.content(Parser2.java:1695)
>      [java]     at
> org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1461)
>      [java]     at
> org.apache.crimson.parser.Parser2.content(Parser2.java:1695)
>      [java]     at
> org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1461)
>      [java]     at
> org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
>      [java]     at
> org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
>      [java]     at
> org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
>      [java]     at
> org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:173)
>      [java]     at
> javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:62)
> 
>      [java]      Column number : -1
>      [java]      Line number   : 17
>      [java]      Public ID     : null
>      [java]      System ID     : null
> 
> On the following XML file :
> 
> <?xml version='1.0'?>
> <Envelope>
>   <header>
>   </header>
>   <body>
>     <parameters>
>       <NbLines>215</NbLines>
>       <id>123902</id>
>       <lastname>BxxxxxxxD</lastname>
>       <firstname>Jean-Etienne</firstname>
>       <email>jebxxxxxx@xxxx.com</email>
>       <company>xxxxxx</company>
>       <id>123903</id>
>       <lastname>PxxxxxxxxxxT</lastname>
>       <firstname>Nicolas</firstname>
>       <email>NPxxxxxxxT@xxx.fr</email>
>       <company>SQL Ing&eacute;nierie</company>
>       <id>123904</id>
>       <lastname>JxxxxxE</lastname>
> 
> It seems to be the "&" which cause the parsing error. How could we set
> the parser more permissive ?
> 
> Thank you for your response ...
> 
> Fabien

---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org