Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

ending attributes in XML::Writer
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?


Report this thread to moderator Post Follow-up to this message
Old Post
Nuno Morgadinho
03-26-05 08:55 PM


Re: ending attributes in XML::Writer
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

Report this thread to moderator Post Follow-up to this message
Old Post
Offer Kaye
03-27-05 01:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:49 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.