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

Re: DTD parser in c#


c reading dtd
Hi Jeff,
Would you mind sharing documentation on SAX.Net? Sorry for inconvenience.


----- Original Message ----- 
From: "Jeff Rafter" <lists@j...>
To: "Michelle Tan" <tjtan79@s...>
Cc: <xml-dev@l...>
Sent: Monday, March 29, 2004 12:44 AM
Subject: Re:  DTD parser in c#


> > I need a DTD parser to parse the element in the DTD and match with the
> DAML
> > (ontology file). According to your expertise experience, will SAX.NET
help
> > me in this issue? Thanks for your reply.
>
> Yes and no. What SAX will give you is a standard way to list all of the
> declarations in a DTD without having to write your parser-- which is
tough.
> It will also expand all of the parameter entities for you. Ultimately
> though, you will still have a lot of work to do with SAX. You will
probably
> have to do something like :
>
> (1) Set up a DeclHandler on the SAX XMLReader.
>
> (2) Record all of the items from ElementDecl, AttributeDecl, etc. events
> into a Hashtable or Dictionary.
>
> (3) As you encounter a DAML element match it using a lookup in the
Hashtable
> or Dictionary.
>
> In this respect, you are not saving much over using the DOM-- and still
have
> at least some amount of work to do. However, in SAX you do have more
options
> for providing your own DTD for a specific file (e.g., getExternalSubset,
> InputSource)
>
> All the best,
> Jeff
>


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.