4 Replies Latest reply on Nov 4, 2011 2:02 PM by Mark Lindberg

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

    rajesh9g Level 2

      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