SPUG: XML::Generator module

luis medrano lmzaldivar at gmail.com
Fri Jul 14 15:07:23 PDT 2006


List,

I trying to generated a XML file using XML::Generator module but the
header I need to create is this "<?xml version="1.0"
encoding="UTF-8"?>" but with this modulte is generating this "<?xml
version="1.0" encoding="UTF-8" standalone="yes"?>
" I would like to remove standalone="yes" but I have not found a way
of doing this.

This is my code:

#!/usr/bin/perl
my $map = XML::Generator->new(':pretty', escape=>1);
print $map->xmldecl(version=>'1.0',
                        encoding=>'UTF-8');

I will really appreciate your help.

Thanks,
Luis


More information about the spug-list mailing list