randombox has asked for the wisdom of the Perl Monks concerning the following question:
where $attr{'a1'} = 0 In the example above, attrib0 does not appear in the resulting XML, while attrib1 and attrib2 will show up. Does anyone know about this issue, and whether there is a fix/patch or workaround? Thanks! ml$s->setAttribute(attrib0, $attr{'a1'}); # or the following $s->setAttribute(attrib0, "0"); $s->setAttribute(attrib1, "0.0"); $s->setAttribute(attrib1, "1"); $s->setAttribute(attrib2, "2");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::DOM setAttribute issue
by gellyfish (Monsignor) on Jul 19, 2005 at 18:09 UTC |