Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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

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
Node Status?
node history
Node Type: note [id://1018927]
help
Chatterbox?
[Lady_Aleena]: Disc, nope.
[Discipulus]: ahi ahi ahi!!
[Lady_Aleena]: paco is a little over 2 years before my time.
[Discipulus]: you can try tachyon's iterative approach Re: Win32 Recursive Directory Listing
[Lady_Aleena]: I'm on Linux/
[beech]: isn't 2 year about standard recovery time for that kind of surgery?
[Discipulus]: if you hate FIle::Find
[Lady_Aleena]: I don't hate it, it just drives me crazy.
[Discipulus]: LA the solution is portable to whatever

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2017-04-23 20:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.