[Xml-compile] XML::Compile v1.07
Mark Overmeer
mark at overmeer.net
Mon Jun 22 11:02:41 GMT 2009
Greetz,
Besides the "any" and "anyAttribute" declarations, now also the anyType
is handled smarter.
Some schema's define elements of type "anyType"... which is quite
vague, to say the least. Now, the default behavior is to return a
string when the content is simple, and an XML node when it is complex
(has sub-elements). You can hook the processing with a new "any_type"
option. For instance, in case of a complex, you could pass it to
XML(::LibXML)::Simple::XMLin as is demonstrated in the new module
Data::DublinCore.
The old behavior returned the textContent of anyType elements, which
effectively stripped all XML markup from the node. This blocked the
further processing of these nodes.
version 1.07: Mon Jun 22 11:35:22 CEST 2009
Fixes:
- mixed attribute on complexContent not detected.
- anyType elements which have sub-elements will not stringify, but only
simple strings will get simplified. Otherwise, an XML::LibXML::Node
is kept.
Improvements:
- reader: anyType element processing can be hooked via a new
compile(any_type) option.
- partial support for attribute targetNamespace on element
and attribute declarations. Currently produces a warning.
--
MarkOv
------------------------------------------------------------------------
Mark Overmeer MSc MARKOV Solutions
Mark at Overmeer.net solutions at overmeer.net
http://Mark.Overmeer.net http://solutions.overmeer.net
More information about the Xml-compile
mailing list