On Sat, 26 Mar 2005 17:02:11 +0000, Nuno Morgadinho wrote: > I'am using XML::Writer to create a XML file that is then read by another > application. This other application is expecting a XML in the form of > <starttag/> (with the slash in the starttag ending the attribute) but > using XML::Writer I can't find a way to output this and my application > fails. > > I know both </endtag> and <starttag/> are valid to end an attribute, both > are valid XML and an application that doesn't account for that should be > shot on site but I don't have a gunfire (in other words, I need to use > this application and I can't correct the problem). > > Is there a way in XML::Writer to end attributes with a slash ending the > start tag instead of the normal </endtag>? If not, does anyone know of a > workaround for this problem? >
Use the "emptyTag" method instead of the "startTag" and "endTag" methods. Hope this helps, -- Offer Kaye -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>