You are here

REX to remove elements?

6 posts / 0 new
Last post
Lovefall
Offline
Joined: 9 years
Last seen: 4 years
REX to remove elements?

Can I use REX postprocessor to remove certain elements in a xml-file?

For instance, remove all rows with element 

<episode-num system="xmltv_ns">******</episode-num>

If I can´t use REX, is there any other solution?

/Niklas  

Lovefall
Offline
Joined: 9 years
Last seen: 4 years

And if I want to remove only 

<episode-num system="xmltv_ns">******</episode-num

and keep all

<episode-num system="on-screen">******</episode-num?

Lovefall
Offline
Joined: 9 years
Last seen: 4 years

I worked, kind of...

it removed both these lines: 

    <episode-num system="xmltv_ns">0 . 1 .</episode-num>
    <episode-num system="onscreen">Del 2 säsong 1</episode-num>

How that happened I don´t understand... Any more ideas?

/Niklas

Jagad
Offline
Donator
Joined: 8 years
Last seen: 1 year

Its apparent rex cant handle attributes and you need to use an another xml parser with unlimited capabilities to do what you want. For example msxml dom.

cvxcvx
Offline
Donator
Joined: 6 years
Last seen: 1 week

Hi. Possible add cuntry do rex.xml?

Am try

  <country lang=""></country>
  <country></country>

 

{\t¤ Country: 'country'.  } and {¤ Country: 'country(, )'. } not work.

Show only <country lang="pl">USA</country>

mat8861
Offline
WG++ Team memberDonator
Joined: 6 years
Last seen: 52 min

It looks correct. What do you expect from country ?

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl