Update of /cvsroot/perl-xml/xml-simple/lib/XML
In directory sc8-pr-cvs1:/tmp/cvs-serv18089/lib/XML
Modified Files:
Simple.pm
Log Message:
- integrated a patch from Michel Rodriguez
+ new facility for removing extra levels of indirection (using
the new 'GroupTags' option)
+ new facility for rolling the dreaded 'content' hash up into a
scalar if there are no keys left after array folding (using the
'-' prefix mode on the ContentKey option)
+ new facility for doing variable substitution in the XML; variables
can be defined in Perl (using the new 'Variables' option) or in
the XML document (using the new 'VarAttr' option)
- added 'NormaliseSpace' option for tidying up hash keys and other
text content if required (feature requested by Alex Manoussakis)
- option names are now case-insensitive and can include underscores
- XMLin() and XMLout() are now aliased to xml_in() and xml_out() when
called as methods or imported explicitly
- option names passed to XML::Simple->new() are now validated
Index: Simple.pm
===================================================================
RCS file: /cvsroot/perl-xml/xml-simple/lib/XML/Simple.pm,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- Simple.pm 20 Jan 2003 07:48:08 -0000 1.10
+++ Simple.pm 10 Apr 2003 10:19:02 -0000 1.11
@@ -48,11 +48,12 @@
# Define some constants
#
-use vars qw($VERSION @ISA @EXPORT $PREFERRED_PARSER);
+use vars qw($VERSION @ISA @EXPORT @EXPORT_OK $PREFERRED_PARSER);
@ISA = qw(Exporter);
@EXPORT = qw(XMLin XMLout);
-$VERSION = '2.03';
+@EXPORT_OK = qw(xml_in xml_out);
+$VERSION = '2.04';
[...1552 lines suppressed...]
Anonymous arrays can be nested to arbirtrary levels and as a special case, if
@@ -2358,7 +2691,8 @@
Elements which only contain text content will simply be represented as a
scalar. Where an element has both attributes and text content, the element
-will be represented as a hashref with the text content in the 'content' key:
+will be represented as a hashref with the text content in the 'content' key
+(see the C<ContentKey> option):
<opt>
<one>first</one>
@@ -2422,7 +2756,7 @@
=head1 STATUS
-This version (2.03) is the current stable version.
+This version (2.04) is the current stable version.
=head1 SEE ALSO
|