can i assume you are placing your xml into a struct before parsing?
_________________
John Youngman
[EMAIL PROTECTED]
----- Original Message ----- From: "Tepfer, Seth" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, July 15, 2008 8:51 AM
Subject: [ACFUG Discuss] Assistance parsing XML file?


I am having a little trouble parsing this XML file, and could use some help. Thanks for any assistance.
When I say:

<cfset aVal = mydoc.events.event[i].custom_attribute[k].attribute_value>

#aVal#  outputs as:

       No


But if I use an if to check for "No", I never find it, because in reality, <xmp>#aVal#</xmp> outputs as:

       <?xml version="1.0" encoding="UTF-8"?>
<r25:attribute_value xmlns:r25="http://www.collegenet.com/r25";>No</r25:attribute_value>

I've resorted to using string functions to parse out all that extra XML to get at my actual value. That feels klunky and like the hard way. What is the easy way to get to "No" ?


Seth Tepfer 770-784-8487 [EMAIL PROTECTED]
Director of Administrative Computing, Oxford College
Proud Pappa (again): Zyle Caspian, born Thursday, April 17, 2:38 pm. 8 lbs, 19.5 inches. Baby Pix at: http://www.flickr.com/photos/[EMAIL PROTECTED]/


This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).


-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=gin.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------






-------------------------------------------------------------
To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------



Reply via email to