abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: Restricted Characters
Date Fri, 12 Oct 2007 17:19:56 GMT
The problem is the fact that &ldquo; is not a known entity in XML.  To
use that character, you need to include a proper entity decl or, better
yet, use the numeric character reference instead.

We probably need to provide some way of handling unknown entities in the
api.

- James

Chris Gambrell wrote:
> I have been getting WstxParsingException for a &ldquo; so I was glad to see
> the ParserOptions setFilterRestrictedCharacters.  However, I set this and am
> still getting the same exceptions.
> If I also setFilterRestrictedCharacterReplacement(' ') I no longer get the
> WstxParsingExcption but instead get the following:
> 
> Exception in thread "main" java.lang.NoSuchMethodError:
> java.lang.Character.isValidCodePoint(I)Z
> 
> at org.apache.abdera.util.XmlRestrictedCharReader.<init>(
> XmlRestrictedCharReader.java:126)
> 
> at org.apache.abdera.util.XmlRestrictedCharReader.<init>(
> XmlRestrictedCharReader.java:90)
> 
> at org.apache.abdera.parser.stax.util.FOMXmlRestrictedCharReader.<init>(
> FOMXmlRestrictedCharReader.java:71)
> 
> at org.apache.abdera.parser.stax.util.FOMXmlRestrictedCharReader.<init>(
> FOMXmlRestrictedCharReader.java:65)
> 
> at org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:109)
>  ...
> 
> What am I missing?
> 
> Thanks,
> Chris
> 

Mime
View raw message