Carriage Return in XML file
Posted: Tue May 14, 2013 2:51 am
Hello, I have a folder called "Movie" and underneath that folder I have category folders like "Action", "Drama", etc.. Inside those folder I have individual movie folders like "Thelma & Louise".
So the directory structure is: Movie\Comedy\Thelma & Louise\*.*
Inside each movie folder is an XML file with a ton of info in it. The main content I want to modify is the "Genre". The reason is most movies have several genre's but not all main genre's are listed 1st or 2nd which is how my media player picks up this text and categorizes it by itself.
So the section in each *.xml file looks exactly like this:
<genre>
<name>Action</name>
</genre>
So far I'm using:
In the Regular Expression tab, with 'dot matches newline' selected.
Regex:
Code: Select all<genre>.*?</genre>
Replace :
Code: Select all<genre><name>Comedy</name></genre>
This almost works but I really need the output to look like the above example:
<genre>
<name>Action</name>
</genre>
How can I setup text crawler to do a CARRIAGE RETURN after <genre> and after </name>? I tried \r and it doesn't work either..
Thanks!
So the directory structure is: Movie\Comedy\Thelma & Louise\*.*
Inside each movie folder is an XML file with a ton of info in it. The main content I want to modify is the "Genre". The reason is most movies have several genre's but not all main genre's are listed 1st or 2nd which is how my media player picks up this text and categorizes it by itself.
So the section in each *.xml file looks exactly like this:
<genre>
<name>Action</name>
</genre>
So far I'm using:
In the Regular Expression tab, with 'dot matches newline' selected.
Regex:
Code: Select all<genre>.*?</genre>
Replace :
Code: Select all<genre><name>Comedy</name></genre>
This almost works but I really need the output to look like the above example:
<genre>
<name>Action</name>
</genre>
How can I setup text crawler to do a CARRIAGE RETURN after <genre> and after </name>? I tried \r and it doesn't work either..
Thanks!