did i just answer a desktop xerte question...... uh oh<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 26, 2012 at 8:38 PM, Dave Burnett <span dir="ltr"><<a href="mailto:d_b_burnett@hotmail.com" target="_blank">d_b_burnett@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">
<div>Haha.</div><div>Yes:</div><div><span style="font-size:10pt">unitData.templateData.WORKBOOK[0].PAGE.deleteAtIndex(6);</span></div><div><br></div><div>I've never quite figured out when it's a string/object/XMLObject/ArrayObject/ etc etc.</div>
<div><br></div><div>Thanks Pat.</div><br><div><div></div><hr>Date: Mon, 26 Nov 2012 20:20:43 +0000<br>From: <a href="mailto:patrick.lockley@googlemail.com" target="_blank">patrick.lockley@googlemail.com</a><br>To: <a href="mailto:xerte@lists.nottingham.ac.uk" target="_blank">xerte@lists.nottingham.ac.uk</a><br>
Subject: [Xerte] Re: Remove nodes from XML structure in memory<br><br>if it is an array, slice it?<br><div><br><br><div>On Mon, Nov 26, 2012 at 7:13 PM, Dave Burnett <span dir="ltr"><<a href="mailto:d_b_burnett@hotmail.com" target="_blank">d_b_burnett@hotmail.com</a>></span> wrote:<br>

<blockquote style="border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">
How can I remove nodes from an xml object in memory?<div><br></div><div>E.g. I do this:</div><div><br></div><div><span style="font-size:10pt">inspect(unitData.templateData.WORKBOOK[0]);</span></div><div><br></div><div>One of the properties returned is PAGE: null, <span style="font-size:10pt">null,</span><span style="font-size:10pt"> </span><span style="font-size:10pt">null,</span><span style="font-size:10pt"> </span><span style="font-size:10pt">null,</span><span style="font-size:10pt"> </span><span style="font-size:10pt">null,</span><span style="font-size:10pt"> </span><span style="font-size:10pt">null,</span><span style="font-size:10pt"> </span><span style="font-size:10pt">null,</span><span style="font-size:10pt"> </span><span style="font-size:10pt">null,</span><span style="font-size:10pt"> </span><span style="font-size:10pt">null,</span><span style="font-size:10pt"> </span><span style="font-size:10pt">null</span></div>

<div><span style="font-size:10pt"><br></span></div><div><span style="font-size:10pt">Indicating I have 10 nodes of page data.</span></div><div><br></div><div>How do I remove the last 5 nodes of page data?</div><div><br></div>

<div><span style="font-size:10pt"><br></span></div><div><div><br></div><div><br></div><div><br></div></div>                                     </div>
<br><br>
<br></div>
<br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________
Xerte mailing list
<a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a></div>                                       </div>
<br><br>
<br></div>
<br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br></blockquote></div><br></div>