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

Pat Lockley patrick.lockley at googlemail.com
Mon Nov 26 20:20:43 GMT 2012


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20121126/d7f1bb00/attachment.html>


More information about the Xerte mailing list