Click here to get back home

LibXML and DTD's

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
LibXML and DTD's Andrew 07-05-2007
Posted by Andrew on July 5, 2007, 1:26 pm
Please log in for more thread options


Hello, all. How can I access DTD information using LibXML? I want to
find anything that looks like this...

<!ATTLIST Ese:Ese name CDATA #FIXED "FixData" xmlns:Ese CDATA "http://
mydomain.com/ns/ese">

...and get the namespace prefix ("Ese") and URI ("http://mydomain.com/
ns/ese"). Of course, I can parse through the DTD as text with
regexps, but the DTD isn't contained in a single file (there are
external entities nested in external entities, etc.) so this will be
difficult.

I've checked XML::LibXML::Dtd and the XML::LibXML::Document methods
externalSubset and internalSubset, but could not figure out how to
apply them...

Any help would be appreciated. Thanks.


Similar ThreadsPosted
Possible bug in XML:LibXML December 16, 2007, 6:22 am
Questions about XML:LibXML December 16, 2007, 6:22 am
data structure from XML::LibXML October 6, 2004, 6:22 pm
compile problems with XML::LibXML December 22, 2004, 5:41 pm
problems with installation of XML::LibXML June 7, 2005, 10:30 am
namespace declarations in LibXML April 15, 2006, 12:48 am
XML::LibXML and getting data from elements/nodes October 26, 2004, 7:50 pm
LibXML "Undefined namespace prefix" July 2, 2007, 5:42 pm
XML::LibXML::Common does not install Common.pm November 27, 2007, 11:21 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap