Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: XML::Parser can't create empty tags?

by gube (Parson)
on May 06, 2005 at 06:09 UTC ( [id://454612]=note: print w/replies, xml ) Need Help??


in reply to XML::Parser can't create empty tags?

It is a valid closing tag. It omit's the self-closed tag and then it converted into proper required expected format.

If you give the input: <tag attr="xyz"/>

We getting output: <tag attr="xyz"></tag>

So, what is the problem will occur it will parse and only putting the same valid tag. Anyway, it may not affect your xml code. It's correct for parsing.

If you use the stream function in style it automatically provide the endtag based on the starttag.

  • Comment on Re: XML::Parser can't create empty tags?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://454612]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-19 11:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found