OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Parsing a DTD for information

[ Lists Home | Date Index | Thread Index ]
  • From: Indrajit Chaudhuri <IndrajitC@catsglobal.co.in>
  • To: Abhishek Srivastava <abisheks@india.hp.com>
  • Date: Tue, 14 Dec 1999 12:21:18 +0530

Hi Abhishek,

If you are using Java, then you can try using the XMLDTDScanner class 
provided in the Xerces 3.0.0EA3 Java Parser avaliable from IBM
Alphaworks.

In case you are using C++, I think there is no C++ parser which provides
the facility to retrieve element information from a DTD (if anyone knows
about it please let me know!). In this case, one approach may be to use
some converter to convert the DTD to DDML/XSchema and retrieve the
schema information from the DDML/XSchema file.

Thanks,
Indrajit


Abhishek Srivastava wrote:
> 
> Hi,
> 
> Is there an XML parser that will allow me to parse just a DTD.
> 
> Suppose the following is my DTD
> <!ELEMENT (name+,lastname+)>
> 
> My application needs to know that it can have a list of names and a
> list of lastnames.
> 
> Most parsers give me the data inside the elements/attributes . ..
> however, do not
> allow to access the grammar associated with the elements/attributes in
> the DTD.
> 
> regards,
> Abhishek.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     _/               Abhishek Srivastava
>    _/                Hewlett Packard ISO
>   _/_/_/   _/_/_/    -------------------
>  _/    /   _/   _/     (Work)   +91-80-2251554 x1190
> _/  _/   _/_/_/      (Ip)     15.10.47.37
>         _/           (Url)
> http://sites.netscape.net/abhishes/index.html
>        _/
>                      Work like you don't need the money.
>                      Dance like no one is watching.
>                      And love like you've never been hurt.
>                      --Mark Twain
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS