What I use is arraylen. After parsing the XML file, then I run this: xmlsize = arraylen(XMLVar.ParentNode);
On Fri, Oct 17, 2014 at 7:30 AM, Marcus F <[email protected]> wrote: > When I try xmlSearch(xmldoc, '/') it only returns an array with a single > item, none of the children are arrays. > > > On Friday, October 17, 2014 9:26:33 AM UTC-4, Marcus F wrote: >> >> xmlSearch(xmldoc) complains about the number of arguments, >> xmlSearch(xmldoc, '') complains that it's an empty expression. >> >> On Friday, October 17, 2014 9:14:35 AM UTC-4, [email protected] wrote: >>> >>> Marcus, >>> >>> Just use xmlSearch() which should pull out an array of the elements that >>> you can then loop over. >>> >>> Thanks, >>> Alan Cole >>> (PGP Key ID: 0x82D8E0C7) >>> >>> >>> >>> Begin forwarded message: >>> >>> From: Marcus F <[email protected]> >>> >>> Subject: [OpenBD] Loop over XML? >>> >>> Date: October 17, 2014 at 9:04:59 AM EDT >>> >>> To: [email protected] >>> >>> Reply-To: [email protected] >>> >>> >>> I'm trying to loop over an xml file with an unknown number of items, but >>> all the examples I'm finding online use xmlchildren as part of the loops, >>> which OpenBD doesn't seem to support, how would I go about it in OpenBD? >>> >>> -- >>> -- >>> online documentation: http://openbd.org/manual/ >>> http://groups.google.com/group/openbd?hl=en >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Open BlueDragon" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >>> -- > -- > online documentation: http://openbd.org/manual/ > http://groups.google.com/group/openbd?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Open BlueDragon" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en --- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
