[XML-DEV Mailing List Archive Home]
[Reply To This Message]
RE: XML validator
- From: Michael Glavassevich <mrglavas@c...>
- To: "Michael Kay" <mike@s...>
- Date: Wed, 17 Sep 2008 07:58:59 -0400
"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 . 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 .
XML Parser Development
IBM Toronto Lab
| [Thread Prev]
| [Thread Next]
| [Date Next]
| [Thread Index]
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
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