Sweet.
Could have used this last week ... well, I'm not sure if I was dealing with exact same problem ... my problem was that in some of the sections of the document, certain elements of the structure were missing ... so I used structkeylist(), and then tested for the string using "contains" and processed accordingly. H. > -----Original Message----- > From: Nelson Winters [SMTP:[EMAIL PROTECTED]] > Sent: Monday, December 16, 2002 2:55 PM > To: [EMAIL PROTECTED] > Subject: [cf-xml] Function to use with CF_SOXML > > Below is a small piece of code that I thought might be useful to any of > you > working with cf_soxml. You may have run into the frustration that > sometimes > cf_soxml creates an array if it sees multiple nodes of the same name, but > if > there's only one node, it creates a structure. Therefore, you're code has > to determine if it's an array or not and process accordingly. This > function > is used to ensure that a node is always an array. > > Hope this is helpful to someone, > > -Nelson > > > -----------------------+ cf-xml mailing list http://torchbox.com/xml/list.cfm
