Update of /cvsroot/perl-xml/xml-simple/lib/XML/Simple
In directory usw-pr-cvs1:/tmp/cvs-serv4891/lib/XML/Simple
Modified Files:
FAQ.pod
Log Message:
- added question about empty elements
Index: FAQ.pod
===================================================================
RCS file: /cvsroot/perl-xml/xml-simple/lib/XML/Simple/FAQ.pod,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- FAQ.pod 13 Oct 2002 01:21:36 -0000 1.2
+++ FAQ.pod 13 Oct 2002 01:32:55 -0000 1.3
@@ -615,6 +615,14 @@
option controls whether hashes get 'unfolded' into arrays. As described above,
'keyattr' is enabled by default.
+=head2 Why are empty elements represented as empty hashes?
+
+An element is always represented as a hash unless it contains only text, in
+which case it is represented as a scalar string.
+
+If you would prefer empty elements to be represented as empty strings or the
+undefined value, set the 'suppressempty' option to '' or undef respectively.
+
=cut
|