Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

303.Text file splitter -- How to split XMl files from the element <rubrik> to </rubrik>, and provide filenaming for the splitted documents?

User: prashob -- 2008-12-09          << 302  304 >>
Hits: 607
Type: Text file splitter   
Search all Text file splitter examples
Description:
How to split XMl files from the element <rubrik> to </rubrik>, and also how to provide filenaming for the splitted documnets?
Input Sample:
<rubrik>
.....
</rubrik>
<rubrik>
.....
</rubrik>
Output Sample:
File 1:

<rubrik>
.....
</rubrik>

*****

File 2:

<rubrik>
.....
</rubrik>
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o to open the xml file
2. select "File->Save As->Save to files -- Split by Paragraph" menu:

Enter Split Naming like: ${BASE}.###.xml
Set "Paragraph Start" to Other: <rubrik>
Set "Paragraph End" to Other: </rubrik>

Click "Next", and Enter result file like "result", and click "Save".

The file will be splitted into result.001.xml, result.002.xml, and so on.

Similar Examples:
How to batch sort csv files by the order of value in the specified column? (46%)
How to sort a file list by the extension of the filename? (46%)
How to split a CSV file with Header according to value of a column? (44%)
How to split a csv file according to the value of column A? (44%)
How to split a file into many files by chapters, and use Chapter names as filenames? (44%)
How to rename files to the last 10 chars of 3rd line of file content? (43%)
How to search hundreds of xml files for a list of numbers, find out which file contains which number? (43%)
How to create a text file including filenames in a folder with specified format? (42%)

Check Demo of Text file splitter
Keywords:
split xml file  split xml files  how to split xml files  how to split xml  how to split xml file  rubrik  xml  split by paragraph  document  split naming  xml file splitter  split xml element  split xml file by element  xml splitter  split xml by element  file splitter xml  split xml file rubrik  xml element