Hi, everyone.

Pierpaolo Fumagalli wrote:
> One easy hack is to set the "namespace" feature to true...
> It solved that in my environment...

Thank you!
But I'm still unhappy...

Hacked parser still access www.w3.org, when I feed UTF-16 input.
# try utf-16le.xml & utf-16be.xml in samples.zip.

And hacked parser can't parse some UTF-8 input which can be 
parsed by normal SAXParser.
# try diary.xhtml (written in Japanese) in samples.zip 
---
        Ryosuke Nanba
public class HackedParser extends org.apache.xerces.parsers.SAXParser {
        public HackedParser() {
                super();
                try{
                        
this.setFeature("http://xml.org/sax/features/namespaces", true);
                }catch(Exception e){
                        e.printStackTrace();
                }
        }
}

<<attachment: samples.zip>>



Reply via email to