[Xml-compile] XML::Compile 1.00

Mark Overmeer mark at overmeer.net
Wed Jan 21 10:02:25 GMT 2009


Greetings to all,

I have been working on various XML modules in the Geo::* namespace,
and as result discovered some problems and made some simplifications.
For instance, Geo::GML show nicely how to wrap your own schemas.

One of the most visible improvements: if you get errors about unused
keys or do not know which keys are available, run in debug mode by
adding to your script:
  Log::Report mode => 'DEBUG';
In many occasions, you will get a list of alternatives reported in
the trace just before the error message.

Expect a few more XML::* releases today.

   MarkOv

-------- 8< -------- ChangeLog for this release

 version 1.00: Wed Jan 21 10:51:23 CET 2009

 Changes:

 - oops, rename elementFormDefault parameters into
   element_form_default.  Breaks only XML::Compile::SOAP 2.00_01

 - substitutionGroup keys did not get prefixed, when key_rewrite
   was enabled.

 Fixes:

 - writer: name-space qualified for NIL [Mark Blackman]

 - template: be more careful not to put trailing '}' on a line
   with comment.

 - writer: contents of tagged elements were not processed, so
   not checked or whitespace corrected.

 - report rewritten key when required value is missing, not the
   full key.

 - compile(mixed_elements=STRUCTURAL) was ignored when the mixed
   option was found with the complexContent.

 Improvements:

 - template: hook "COLLAPSE" to reduce output size for well-known
   types.

 - writer: accept {_ => $value} as alternative for $value.

 - writer: optimize seq block with one block element.

 - added XML::Compile::Util::even_elements()

 - writer: show available tags in complex block with unused tags
   when in debug mode.

 - show substitutionGroup members in debug mode.
   Requires Log::Report v0.21

 - make addHooks() use addHook(), easier to override.

 - reader: elements with mixed="true" by default only unpacks the
   ATTRIBUTES.  It is hard to figure-out why the node is not
   translated into Perl.  Therefore, the resulting HASH now
   contains a _MIXED_ELEMENT_MODE key as explanation.

 - with "Log::Report mode => 'DEBUG'", you may get extra help
   on some errors.
------------------------------------------------------------------------
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