sed - Special signs in xml -


After the execution of the Java code, which produces a pseudo-XML, sign me "& amp; ; "In XML-language, i.e." & amp; "and" & lt; ".

My code line looks like this:

  os.system ('java -jar de.unihd.dbs.heideltime.standalone.jar '+ file +' -L German | SAD-A "S / End / Anders / G" SAD-i "{S / and LT; / & lt; / G} / ^ [\? Tda / /] /! "& Gt; '+ tag name)   

first part - all" & amp; "& Lt;" - works but "& lt;" Part of - The sign does not work yet This part should change all "& lt;" Which "" "," T "," D "," A "or" / "to" & amp; Alt; "How can this be done correctly?

Thanks for any help!

Instead of try. It has the same syntax but simultaneously front and back-behind claims:

  perl -pe 's {& amp; }} {& Amp; g; s {& lt; (?! [TDA /])} {& amp; alt;} g    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -