xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Sebastien Brissaud <sebastien AT inovo.be>
- To: <xom-interest AT lists.ibiblio.org>
- Subject: RE: [XOM-interest] 0x25?
- Date: Tue, 1 Apr 2003 13:35:47 +0200
Hi,
Correct me if I'm wrong, but I think than:
First, in Verifier.checkURI(String) there is a test if the current
character is '%' to verify if it's the begin of an encoding character.
But Verifier.isURLCharacter(char) return false when the character is
'%', so the test is never perform. Verifier.isURLCharacter(char) should
allow '%' as a valid URL character.
Second, due to Windows filepath, the Builder.build(File) method should
prefix the absolute path of the file with '/':
String absolute = in.getAbsolutePath();
StringBuffer url = new StringBuffer("file://");
+ if(absolute.charAt(0) != '/') {
+ url.append('/');
+ }
FYI, my config is Win2k, jdk.1.3.1_07, Xalan 2.4.1, Xerces 2.4.0 and XOM
1.0d10
Sebastien
> -----Original Message-----
> From: xom-interest-bounces AT lists.ibiblio.org
[mailto:xom-interest-bounces AT lists.ibiblio.org] On
> Behalf Of luca passani
> Sent: Thursday, March 27, 2003 4:48 PM
> To: xom-interest AT lists.ibiblio.org
> Subject: [XOM-interest] 0x25?
>
>
> Anyone who knows what this means?
>
> the XML file is the one at:
> http://wurfl.sourceforge.net/wurfl.xml
>
> thank you
>
> luca
>
>
> nu.xom.MalformedURIException: URIs cannot contain 0x25
> at nu.xom.Verifier.checkURI(Verifier.java:201)
> at nu.xom.Node.setActualBaseURI(Node.java:169)
> at nu.xom.Document.setBaseURI(Document.java:259)
> at nu.xom.XOMHandler.startDocument(XOMHandler.java:74)
> at
org.apache.xerces.parsers.AbstractSAXParser.startDocument(Unknown
Source)
> at
org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)
> at
org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown
Source)
> at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown
Source)
> at
org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(Unknown
Source)
> at
org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(Unknown
Source)
> at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
> at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
> at nu.xom.Builder.build(Builder.java:550)
> at nu.xom.Builder.build(Builder.java:347)
> _______________________________________________
> XOM-interest mailing list
> XOM-interest AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/xom-interest
-
RE: [XOM-interest] 0x25?,
Sebastien Brissaud, 04/01/2003
- <Possible follow-up(s)>
- Re: [XOM-interest] 0x25?, Elliotte Rusty Harold, 04/09/2003
Archive powered by MHonArc 2.6.24.