Code Comments
Programming Forum and web based access to our favorite programming groups.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?
Post Follow-up to this messageOn 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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.