StructKeyExists(doc.element.XmlAttributes, "sun")

-Matt

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On Behalf Of Ben Densmore
> Sent: Wednesday, July 14, 2004 11:04 PM
> To: CF-Talk
> Subject: XML Attributes
>
> Is there a way to tell what attributes an element has? The Xml file
> I'm working with has an element named pattern, but it can have
> different attributes. One can look like:
>
> <pattern sun="0" sat="0" fri="0" thu="0" wed="0" tue="1" mon="0" recur="2"
> />
>
> and another can look like:
> <pattern day="wed" week="3" recur="1" />
>
> This is causing my code to break because as it loops through it's
> looking for the attribute sun in all the pattern elements but it only
> exists in one.
>
> Thanks,
> Ben
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to