Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: XMLin question

by Anonymous Monk
on Feb 15, 2013 at 17:51 UTC ( [id://1018927]=note: print w/replies, xml ) Need Help??


in reply to XMLin question

Is there a way to get around this error?

Yes, fix your xml so it is xml because as it is written now it doesn't qualify for xml, it is broken, any < > in content needs to be escaped, but you knew that already, its FAQ after all

Replies are listed 'Best First'.
Re^2: XMLin question
by Anonymous Monk on Feb 15, 2013 at 17:52 UTC
Re^2: XMLin question
by stryda42 (Novice) on Feb 15, 2013 at 17:58 UTC

    Ok, thank you

    I was curious if there was some way to auto-convert < to < as well as tags like this in general instead of manually doing this, from an end user perspective.

      I was curious if there was some way to auto-convert < to < as well as tags like this in general instead of manually doing this, from an end user perspective.

      :| You don't say :/

      perl -pe "%f = qw{ < &lt; > &gt; }; s{[^><]\K([><])([^\w])}{ $f{$1}$2} +g; " < in > out
        naturally, untested, doesn't work :/

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-03-19 02:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found