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

Re: Beginnier: Advise on available C-based XML Validator


xml validator c
Hi,

On Fri, 2005-11-04 at 13:33 +0800, Nick Lee wrote:
> Hi
> 
> I'm a beginner to XML and looking C-based XML validator for a project.
> Any pointers will be much appreciated.

You may want to look at Libxml2 (http://www.xmlsoft.org).

It supports DTD, RelaxNG, W3C XML Schema and Schematron validaton:
- DTD validation is mature and stable.
- The RelaxNG validation seems quite mature (the error reports
  could be more user-friendly).
- The W3C XML Schema validation seems to have become quite stable,
  but is not fully finished (if there is such thing for WXS at all).
  The main missing issues are:
  - Unique particle attribution is not checked
  - Restriction of the content model of complex types is not checked.
    This is mainly due to the fact that we won't implement those
    constraints as layed out in the XML Schema 1.0, but try to
    anchor the restriction checks at the automaton level (Daniel
    Veillard is working on this).
- The Schematron code is _very_ fresh - dunno how far we got here.

If you just need DTD validation, then Libxml2 could be perfect for
you.

If you use the other validation techniques, then a naive usage could
be problematic:
 - RelaxNG: Here you have sometimes to dig a bit to find the place
     in the instance where a validation error occured.
 - XML Schema: Since some schema checks are not implemented, it
     should not be used to _learn_ writing W3C XML Schemata. Be
     familiar with the specs.
 - Schematron: It's fresh, so you'll be probably one of the first to
     report bugs ;-)

Regards,

Kasimier



PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.