Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xml-dev] XML validator

From: Michael Glavassevich <mrglavas@--.---.--->
To: "Michael Kay" <mike@--------.--->
Date: 9/17/2008 11:58:00 AM
"Michael Kay" <mike@s...> wrote on 09/17/2008 05:06:06 AM:



> > I was able to run Xerces from ValidatorBuddy but I'd like to 

> > be able run it on its own. I tried

> > 

> > stdinparse -v=always -s < file.xml

> > 

> > but it didn't recognize the schema, even though I specified 

> > it using xsi:noNamespaceSchemaLocation.

> 

> If you read a document from the standard input, then the processor won't

> know its base URI, which means it won't be able to resolve any relative URI

> contained in the document, for example one found in an

> xsi:noNamespaceSchemaLocation attribute. 

> 

> But I don't know the spec of stdinparse.



It's one of the Xerces-C samples, documented here [1]. And you're right, Xerces won't know what the base URI of the document is. 



Most of the other Xerces-C samples take a URI as input, such as SAXCount [2].



Thanks.



[1] http://xerces.apache.org/xerces-c/stdinparse.html

[2] http://xerces.apache.org/xerces-c/saxcount.html



Michael Glavassevich

XML Parser Development

IBM Toronto Lab

E-mail: mrglavas@c...

E-mail: mrglavas@a...


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent