|
|
 |
perl-xml
XML::LibXML parser and external entity expansion?
by Kevin other posts by this author
Feb 27 2006 4:22AM messages near this date
view in the new Beta List Site
Re: XML::Generator doesn't like multi-level hash
|
Re: XML::LibXML parser and external entity expansion?
& XSLT Hi all,
My application needs to validate xml files used in our data transfer process.
In our dtds we have lots of entities such as...
<!ENTITY pti08_4 "domestic scheduled flight">
I need to preserve these entities for insertion into a database and for later
xml creation.
setting $parser-> expand_entities(0); has no effect on methods such as
getAttribute() - this will always returns the expanded text regardless of the
expand_entities setting.
dumping out the doc/element with toString() shows the entities in the document
being expanded or left alone correctly as per the expand_entities setting.
Can anyone confirm if this is the expected behaviour of expand_entities?
Is there a best practice way to pull the unexpanded entities out?
I'm using libxml2 v2.6.23 and XML::LibXML 1.58_1
Many thanks!
Kevin
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Kevin
A. Pagaltzis
Randal L. Schwartz
A. Pagaltzis
|
|
|
 |
|