[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

anyURI mystery help

mystery help
I did spend some 2 hours trying to solve this problem with google, without any result.

 I have the following simple xml file
<?xml version="1.0" encoding="UTF-8"?>
<message xmlns:idm="http://www.bellsouth.com/idm"  
xsi:schemaLocation="http://www.bellsouth.com/idm file://wherever_schema_is_stored/NMS-LESYG-IF_WFAC_ALL.xsd"
system="DSLNMS" systemInstance="WFAC" cuid="WfacIDM"
messageID="CYJEFF69-1115748309103000" clientID="jbbos" priority="1" timeToLive="0">

But when I try to validate this file against a schema, I get the error that  "file://wherever_schema_is_stored/NMS-LESYG-IF_WFAC_ALL.xsd  is not valid anyURI".
( Im using xerces by the way. with JDK 1.4 )

1.     at com.bellsouth.snt.util.xml.FastDomParser.validate(FastDomParser.java:146)
        at com.bellsouth.snt.util.xml.XSLTTransformer.transform1To1(XSLTTransformer.java:91)
        ... 10 more
Caused by: :::::2:387:cvc-datatype-valid.1.2.1: 'file://wherever_schema_is_stored/NMS-LESYG-IF_WFA
C_ALL.xsd' is not a valid value for 'anyURI'.
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Sourc
        at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
        at org.apache.xerces.impl.xs.XMLSchemaValidator.processOneAttribute(Unknown Source)
        at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source)
        at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
        at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook
(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatc
h(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at com.bellsouth.snt.util.xml.FastDomParser.validate(FastDomParser.java:139)

2. Which is the RFC that defines the file:// type URI syntax

Thanks for reading


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.