Re: anyURI validation failing in Xerces-J
- From: JAPISoft <brillant.alexandre@xxxxxxx>
- Date: Sat, 12 Nov 2005 17:44:39 +0100
May be I miss something, but shouldn't it be : file://c:/#test#.jpg ? And also I think the # caracter is maybe reserved (this is anchor for sample with HTML and it is at the end part of the URL).
Best regards,
A.Brillant EditiX - XML Editor and XSLT Debugger http://www.editix.com
dfielder@xxxxxxxxx wrote:
I'm using the latest version of Xerces-J and parsing an XML file using the 'org.apache.xerces.parsers.SAXParser' parser. The problem I have is that a value such as 'file:///c:/#test#.jpg' is failing validation as xs:anyURI. What's interesting is that if I remove one of the pound signs, it validates just fine. The string with two pound signs validates with no problem in XMLSpy. Any ideas what's going on here? Here's the exact error coming out of the SAXParser:
[Error] test.xml:9:48: cvc-datatype-valid.1.2.1: 'file:///c:/#test#.jpg' is not a valid value for 'anyURI'
If this is the wrong area to post this question, please let me know a more suitable place. Thanks for any help in advance.
.
- Follow-Ups:
- Re: anyURI validation failing in Xerces-J
- From: Richard Tobin
- Re: anyURI validation failing in Xerces-J
- References:
- anyURI validation failing in Xerces-J
- From: dfielder
- anyURI validation failing in Xerces-J
- Prev by Date: Re: Creating links using XSLT
- Next by Date: Re: New to XSLT
- Previous by thread: Re: anyURI validation failing in Xerces-J
- Next by thread: Re: anyURI validation failing in Xerces-J
- Index(es):
Relevant Pages
|
Loading