25
Sep
03

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. 1 dgibson Sep 26th, 2003 at 8:38 am

    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. 2 Sam Sep 26th, 2003 at 8:47 am

    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. 3 zymax Oct 29th, 2004 at 12:08 pm

    Hello there,

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

    Alice
    zymax

  4. 4 home loans Nov 2nd, 2004 at 5:24 pm

    Hello there,

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

    Alice
    home loans

  5. 5 jill jones Nov 22nd, 2004 at 1:13 am

    Nice siteGod knows

    Bye!
    Jill Jones

  6. 6 Max Power Dec 3rd, 2004 at 5:17 am

    Welcome Home Everyone Home

    Cya
    Max

  7. 7 Call Handling Solution Dec 3rd, 2004 at 7:56 pm

    Hi Guys

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

    Cya
    Bruce

Comments are currently closed.