[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [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

RE:  XML validator

"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].


[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...

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.