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
Post a Comment