Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Workbench
Viewing all articles
Browse latest Browse all 69588

How to make an XML in form of String to well-formed XML document

$
0
0

Hi Folks,

     Thanks for all you support in Advance, i have a requirement, where i have an XML in one line string form and i wondering how to convert into well formed XML?

 

Input XML sample:

<root> <one><link1></link1></one><two></two> </root>

 

to well-formed XML

<root>

      <one>

          <link1></link1>

     </one>

     <two>

     </two>

</root>

 

I was trying to create a well-formed document using DOM or SAX parsers in ExcuteScript activity, but it is leading to some complicated exceptions. And i am looking for the simplest way for transformation.

 

Please let me know

 

thanks,

Rajesh


Viewing all articles
Browse latest Browse all 69588

Trending Articles