Hi everyone,

I found Xerces-J's non-validating parser(default configration of
org.apache.xerces.parsers.SAXParser) try to establish network 
connection on some cases.

#  Version number of Xerces-J: 1.0.2 and 1.0.0 
#  Version number of JDK: 1.2.2 

following cases cause network connection.

 <html xmlns="http://www.w3.org/1999/xhtml">
   ...
 </html>

 <x:html xmlns="http://horobi.com/" xmlns:x="http://www.w3.org/1999/xhtml">
   ...
 </x:html>

following cases parsed silently.

 <x:html xmlns:x="http://www.w3.org/1999/xhtml">
   ...
 </x:html>

 <x:html xmlns:x="http://www.w3.org/1999/xhtml" xmlns="http://horobi.com/">
   ...
 </x:html>

 <html foo="bar" xmlns="http://www.w3.org/1999/xhtml">
   ...
 </html>

Maybe, only when the first attribute of the root element is "xmlns",
parser access URL of it's value (to read schema entity?).

Is it right behavior ? or BUG?
# I don't know much about XML Schema...
---
        NANBA Ryosuke

Reply via email to