Spliting XML File

KSP_NAVKSP_NAV Member Posts: 68
Is there any way to split the large XML file in to small XML files?

Suppose if there is a XML file with 5 Invoice data, I need to split this into 5 XML files (each Invoice has its own XML file).

Thanks in advance

Comments

  • matttraxmatttrax Member Posts: 2,309
    Just write your own text file parser. Easy to do in .NET and you even do it in NAV.

    There are several text file splitters for download here. You can look at the code and find the spot where it decides it has reached the end of an object and needs to create a new file. Change what it's looking for to be the end tag of your xml invoice and it should work.
Sign In or Register to comment.