Re: Remove channel from XMLTV file
| Newsgroups | gmane.comp.tv.xmltv.general |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 8 Oct 2014 21:56:05 +0200, Josu Lazkano wrote: > Hello, > > I have a little problem with a XMLTV file. > > I use to grab the channels information with a mhw program. But there > is a channel with this name: > > [line 96] <channel id="dgplus31.sp"> > [line 97] <display-name>A&E</display-name> > [line 98] </channel> > > If I open this file with Chrome web browser, it says: error on line 97 > at column 18: EntityRef: expecting ';' > > Is i possible to delete this 3 lines with a command line program? > > Thanks and best regards. Hi, Your "mhw program" (whatever that is) is faulty. Ampersand is a special character in XML and must be converted to the format "&" You don't state your operating system, but in Linux you could use sed : sed 's/A&E/A\&E/g' <inputfile >outputfile HTH ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk