[Xerte] Re: Remove nodes from XML structure in memory

Dave Burnett d_b_burnett at hotmail.com
Mon Nov 26 20:38:41 GMT 2012


Haha.Yes:unitData.templateData.WORKBOOK[0].PAGE.deleteAtIndex(6);
I've never quite figured out when it's a string/object/XMLObject/ArrayObject/ etc etc.
Thanks Pat.
Date: Mon, 26 Nov 2012 20:20:43 +0000
From: patrick.lockley at googlemail.com
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] Re: Remove nodes from XML structure in memory

if it is an array, slice it?


On Mon, Nov 26, 2012 at 7:13 PM, Dave Burnett <d_b_burnett at hotmail.com> wrote:





How can I remove nodes from an xml object in memory?
E.g. I do this:
inspect(unitData.templateData.WORKBOOK[0]);
One of the properties returned is PAGE: null, null, null, null, null, null, null, null, null, null

Indicating I have 10 nodes of page data.
How do I remove the last 5 nodes of page data?





 		 	   		  






_______________________________________________

Xerte mailing list

Xerte at lists.nottingham.ac.uk

http://lists.nottingham.ac.uk/mailman/listinfo/xerte





_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20121126/5c209c94/attachment.html>


More information about the Xerte mailing list