<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><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 id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Mon, 26 Nov 2012 20:20:43 +0000<br>From: patrick.lockley@googlemail.com<br>To: xerte@lists.nottingham.ac.uk<br>Subject: [Xerte] Re: Remove nodes from XML structure in memory<br><br>if it is an array, slice it?<br><div class="ecxgmail_extra"><br><br><div class="ecxgmail_quote">On Mon, Nov 26, 2012 at 7:13 PM, Dave Burnett <span dir="ltr"><<a href="mailto:d_b_burnett@hotmail.com">d_b_burnett@hotmail.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" 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">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
Xerte@lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte</div>                                          </div></body>
</html>