UDF to extract tagged data from XML

A webforum user brought up a need to parse the text from an XML document for specific elements and display it in a list. This is something that’s readily accomplished with XPath and XSLT. Here’s a UDF that performs the extraction using an XPath search.


#xmlExtractList(EntryXML, "email")#

Posted in response to this webforum thread.

7 Responses to “UDF to extract tagged data from XML”

  1. dgibson says:

    do you have a tool that highlights that code like studio for you? Looking at the markup, I hope you don’t do it manually…

  2. Sam says:

    ha, yeah, it’s a real pain to have to type my code like that.. <<span class=”cfTag”>cfloop</span> <span class=”cfAttr”>index</span> …

    Seriously, I use a great plugin from Sean Voisen and Mike Jewell. I had to write a CF syntax file but since I already compiled one for EditPlus it was easy to convert to Beautifier.

    More info available in this entry.

    http://www.rewindlife.com/archives/000013.cfm

    Best regards,

    Sam

  3. zymax says:

    Hello there,

    Iwas browsing the web and found this blog. Some interesting quotes. Keep them coming!

    Alice
    zymax

  4. home loans says:

    Hello there,

    Iwas browsing the web and found this blog. Some interesting quotes. Keep them coming!

    Alice
    home loans

  5. jill jones says:

    Nice siteGod knows

    Bye!
    Jill Jones

  6. Max Power says:

    Welcome Home Everyone Home

    Cya
    Max

  7. Hi Guys

    Thanks for taking the time posting. MSN have finally launch blogs, what was with the delay?
    Call Handling Solution

    Cya
    Bruce

Leave a Reply