Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Add and remove element in XML

$
0
0

Hi all,

 

I have a problems about vCO XML plugin; I think the plugin is not enough for some operations.

 

xml.png

 

My code is here ;

 

 

var document = XMLManager.fromString(xml) ;
var nodeList = document.getElementsByTagName("IPs");


for (var i = 0 ; i < nodeList.length ; i++) {

  newElement = document.createElement("Range");
  nodeList.item(i).appendChild(newElement);
  XMLManager.saveDocument(document,path+"/test.xml") ;


}

 

you can see result of my code at below ;

xml2.png


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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