Splitting XML (transformed to String)



I suppose this question is quite goofy, but anyway... here is my XML:



<?xml version="1.0" encoding="utf-16"?>
<LauncherInfo xmlns:xsi="http://ift.tt/ra1lAU" xmlns:xsd="http://ift.tt/tphNwY" xmlns="http://ift.tt/1vC7NUZ" hash="d8bf41f6053ab2df28704dfcda443f9199546d3b">
<File Name="parakstitais.edoc" Location="vieta_kur_saglabat" />
<Action xsi:type="CreateNewSignAction">
<FileReferences>
<FileReference Name="Document1.doc" Address="http://ift.tt/1GjYHkK" />
<FileReference Name="Scan7.pdf" Address="http://ift.tt/1E09lsJ" />
<FileReference Name="Scan8.pdf" Address="http://ift.tt/1GjYGNC" />
</FileReferences>
</Action>
</LauncherInfo>


This xml is already transforned into String type, and my goal is to split it, and get this one:



<File Name="parakstitais.edoc" Location="vieta_kur_saglabat" />
<Action xsi:type="CreateNewSignAction">
<FileReferences>
<FileReference Name="Document1.doc" Address="http://ift.tt/1GjYHkK" />
<FileReference Name="Scan7.pdf" Address="http://ift.tt/1E09lsJ" />
<FileReference Name="Scan8.pdf" Address="http://ift.tt/1GjYGNC" />
</FileReferences>
</Action>


So, which way is the best to make it?


No comments:

Post a Comment