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

Pat Lockley patrick.lockley at googlemail.com
Tue Nov 27 00:51:11 GMT 2012


did i just answer a desktop xerte question...... uh oh


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

>  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
>
>
>
>
> _______________________________________________
> 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/20121127/d69d7299/attachment.html>


More information about the Xerte mailing list