Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: XMLin question

by Anonymous Monk
on Feb 15, 2013 at 17:51 UTC ( #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


Comment on Re: XMLin question
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
Node Status?
node history
Node Type: note [id://1018927]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2014-11-27 14:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (185 votes), past polls