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

Re: XML DTD/XSD parser library sought

  • From: richard@i... (Richard Tobin)
  • To: xml-dev@l...
  • Date: Mon, 30 Jul 2007 12:49:11 +0100 (BST)

Re:  XML DTD/XSD parser library sought
In article <77tqa3pt5frtavrja4tbi6gv608m1qh7e1@4...> you write:

>I'm looking for a parser library in C/C++ with which I can
>read fairly complex DTDs (like those for DITA and DocBook)
>and extract content models for all elements for further
>analysis and manipulation.

You could use RXP for this.  It should be able to handle any legal
DTD.  It represents content models as C structures in a fairly
straightforward way:

enum cp_type {
    CP_pcdata, CP_name, CP_seq, CP_choice
typedef enum cp_type CPType;

struct content_particle {
    enum cp_type type;
    char repetition;
    const Char *name;
    ElementDefinition element;
    int nchildren;
    struct content_particle **children;

It doesn't have much documentation, unfortunately.

See http://www.cogsci.ed.ac.uk/~richard/rxp.html

-- Richard
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.

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