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'
[Error] test.xml:9:48: cvc-datatype-valid.1.2.1: 'file:///c:/#test#.jpg' is not a valid value for 'anyURI'