Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Designer
Viewing all articles
Browse latest Browse all 16286

Delete node from XML

$
0
0

Dear adobe experts,

 

I have a requirement to delete a node in the interface XML of an adobe form (not just deleting a subform on the form). It must be a delete, an empty node will not work (I've read this in another post).

 

The XML structure looks like this:

 

<ELEMENT>

     <DATA>

          <ROW_IID>0</ROW_IID>

          <PARENT>0</PARENT>

          <CHILD>0</CHILD>

     </DATA>

     <DATA>

          <ROW_IID>1</ROW_IID>

          <PARENT>0</PARENT>

          <CHILD>0</CHILD>

     </DATA>

</ELEMENT>

 

I want, for instance, to delete the second data node including the underlying elements: row_iid,parent & child. I already tried: xfa.record.nodes.remove(oRemoveNode); I got it from http://partners.adobe.com/public/developer/en/xml/Adobe_XML_Form_Object_Model_Reference.pd f and several posts from this forum but I keep getting the following message in the error console: removal failed. I know that the somexpression is correct.

 

Here is the code I used to try to remove the node.

var node_loc;

var del_node;

node_loc = "xfa.record.ELEMENT.DATA[1]";

del_node = xfa.resolveNode(node_loc);

xfa.record.nodes.remove(del_node);

 

Does anyone know what I've been doing wrong?

 

Kind regards,

Niels


Viewing all articles
Browse latest Browse all 16286

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>