Re: anyURI validation failing in Xerces-J



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.

.



Relevant Pages

  • Re: How to validate HTML 4.01 Transitional!
    ... Webmasters should be very concerned with HTML validation, ... FrontPage's shared borders, themes, navigation, and other proprietary ... While it is terrific that you are trying to make a page that validates ... clients using their hex value of the words "Microsoft Border", ...
    (microsoft.public.frontpage)
  • validation puzzle ("OMITTAG NO" error)
    ... validates itself. ... There are a zillion books on HTML in the market. ... In my address everything before the first period is backwards; ...
    (comp.infosystems.www.authoring.html)
  • Re: validation puzzle ("OMITTAG NO" error)
    ... validates itself. ... There are a zillion books on HTML in the market. ... cover even obscure problems like this one? ...
    (comp.infosystems.www.authoring.html)
  • Re: pound sign a system spoiler
    ... I use html as I please. ... I found that the pound sign "#" ... as first character of a folder name ... It is a "legal" windows file system ...
    (microsoft.public.scripting.wsh)
  • Re: HTML validators - are they reliable?
    ... And even if it validates, both css and html, it may be ... munged by one or more browsers and may not display ...
    (alt.html)

Loading