[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

ANN: XML::Writer 0.4

  • From: David Megginson <david@m...>
  • To: XML-Dev List <xml-dev@x...>
  • Date: Wed, 5 Apr 2000 08:45:59 -0400 (EDT)

new xml writer
I've just added XML::Writer 0.4 to my software page at


It is working its way into CPAN as we speak.

This version adds some extra functionality to make life easier for
people creating data-oriented XML (i.e. no mixed content).  There is
now a 'data mode' that is disabled by default; when it is enabled,
XML::Writer automatically starts each element on a new line.  It is
also possible to set the indent step (which is ignored unless data
mode is active).  In safe mode, any mixed content in data mode will be 
reported as an error.

There is also a new method, dataElement(name, data, atts...), for
producing elements that contain only character data content.

For example, here's some code:

  my $writer = new XML::Writer;
  $writer->dataElement("bar", "abc", "id", "i01");

This will produce the following XML:

    <bar id="i01">abc</bar>

Zillions of people have sent e-mail asking for a feature like this,
and I'm tired of answering all of it, so here it is.

All the best,


David Megginson                 david@m...
X-Mailer: VM 6.71 under 21.1 (patch 3) "Acadia" XEmacs Lucid
FCC: /home/david/Mail/sent
--text follows this line--

This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.