Avatar

Level 2

Hi

I have a XML that is getting generated on click of a button in the form.

I am using  xfa.data.saveXML("pretty"); to generate the XML.

Following is the XML,

<?xml version="1.0" encoding="UTF-8"?>

<xfa:data xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">

   <ELEMENT>

      <DATA>

         <ROW_IID>0</ROW_IID>

         <PARENT>0</PARENT>

         <CHILD>0</CHILD>

      </DATA>

      <NAME> 

          <FNAME>0</FNAME>

          <LNAME>0</LNAME>

      </NAME>

   </ELEMENT>

</xfa:data>

I want to delete the <NAME> node in the XML and assign the manipulated XML to some text field.

Could anyone please let me know how to do the same?

Thanks:)