ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
RE: Generate a XML file from perl script
by Jonathan Stowe other posts by this author
Jun 30 2005 2:10AM messages near this date
view in the new Beta List Site
RE: Generate a XML file from perl script | Re: Generate a XML file from perl script
& XSLT On Wed, 2005-06-29 at 19:40, Shilpa Arvind wrote:
>  Hi,
>  
>  Does XML::Writer work on drawings like circle, rectangle, etc. I am 
>  basically creating a XML document which has Drawings on it and very little 
>  text.
>  

Er, yes, XML doesn't have 'drawings' - depending on what schema is being
used you will have descriptions of drawings in XML which will be jsut
the same as the text as far as XML::Writer or any of the other modules
are concerned - if the graphics are defined in SVG then you might want
to look at one of the modules on CPAN that deal with that.

/J>  Shilpa
>  
>  >From: "Bauman, Carl" <Carl.Bauman@[...].com>
>  >To: "Shilpa Arvind" 
>  ><shilparvind@[...].com>,<perl-xml@[...].com>
>  >Subject: RE: Generate a XML file from perl script
>  >Date: Wed, 29 Jun 2005 14:12:31 -0500
>  >
>  >XML::Writer has worked fairly well for me when I'm creating fairly
>  >simple documents.  XML::Generator is another one that's out on CPAN but
>  >I haven't used it personally...
>  >
>  >HTH,
>  >Carl J. Bauman
>  >
>  >
>  >-----Original Message-----
>  >From: perl-xml-bounces@[...].com
>  >[mailto:perl-xml-bounces@[...].com] On Behalf Of Shilpa
>  >Arvind
>  >Sent: Wednesday, June 29, 2005 1:21 PM
>  >To: perl-xml@[...].com
>  >Subject: Generate a XML file from perl script
>  >
>  >Hi,
>  >
>  >I want to generate a XML document using Perl script so that I can open
>  >that
>  >generated XML document on the OpenOffice. Is there a module to this. Can
>  >
>  >modules like XML::Parser, XML::Simple, XML::Twig do this because I have
>  >read
>  >only about parsing an existing XML file. Right now I am including XML
>  >tags
>  >in my perl code to create an XML document which can be opened on
>  >OPenOffice.
>  >
>  >Code:
>  >
>  >open( OUTFILE, ">$output_cnt_file" ) || die("$output_cnt_file: $!\n");
>  >print OUTFILE ("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
>  >printOUTFILE ("<!DOCTYPE office:document-content PUBLIC
>  >\"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"office.dtd\">\n");
>  >.....
>  >
>  >print OUTFILE ("   <draw:text-box draw:style-name=\"gr2\"
>  >draw:text-style-name=\"P1\" draw:layer=\"layout\"",
>  >	    " svg:x=\"$label_x","cm\"",
>  >	    " svg:y=\"$label_y","cm\">\n");
>  >
>  >
>  >Shilpa
>  >
>  >
>  >_______________________________________________
>  >Perl-XML mailing list
>  >Perl-XML@[...].com
>  >To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>  ><< CarlJBauman(Work).vcf >>
>  
>  
>  _______________________________________________
>  Perl-XML mailing list
>  Perl-XML@[...].com
>  To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
-- 

This e-mail is sponsored by http://www.integration-house.com/

_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Shilpa Arvind
Carl Bauman
Christopher R. Maden
Dominic Mitchell
Tod Harter
Shilpa Arvind
Jonathan Stowe
Grant McLean

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved