XDOM.cfc - A ColdFusion Component For Easier XML Traversal, Manipulation, And Merging

Posted November 17, 2010 at 9:47 AM by Ben Nadel

Tags: ColdFusion

Yesterday, I shared some thoughts about XDOM.cfc - a ColdFusion component that provides an easier API for XML traversal, manipulation, and merging. Inspired by jQuery, XDOM.cfc maintains an internal collection of XML nodes that can queried and altered as a whole. Right now, there are only a few traversal and manipulation methods; but, I hope to add to those over time. If you want to take a look at the code, you can download it from the XDOM.cfc project page.

As always, if you have any suggestions on ways this can be improved, I'd love to hear them.




Reader Comments

Nov 17, 2010 at 11:55 PM // reply »
1 Comments

I got it. You are Great!!!


Nov 18, 2010 at 8:43 AM // reply »
10,743 Comments

@ChangWei,

Thanks my man, hope you like it.


Nov 18, 2010 at 10:05 AM // reply »
66 Comments

We gotta get you on GitHub. I'd love to submit an

  • asQuery()

patch for this.


Nov 18, 2010 at 10:11 AM // reply »
10,743 Comments

@Rick,

Is funny you mention that - I thought some soft of toQuery() method would be player. I pictured it as some sort of parent/child query table. But the XDOM instance might contain multiple top-level nodes. As such, I wasn't sure how to think about it. Perhaps it would only convert the first node in the collection? Or do you think it should try to convert them all?

I probably should get on GitHub, right? I have an Apress coupon sitting around; perhaps it's time I get a book on Git and get my "learn" on. Seems to be what all the cool kids are using these days.


Nov 18, 2010 at 11:02 AM // reply »
66 Comments

The definitive guide is "Pro Git" by Scott Chacon and is available in its entirety online at http://progit.org/book/ . Amazon also has them for ~$20. (And it's from Apress.)

If you'd be interested in more interactive training, may I offer my services? Given your contributions to the community, I'd be happy to do a pro bono 2-hour webinar for you and whomever else you'd like.

Even if you want the down-and-dirty command line level tour, that only takes ~90 minutes for all but the really advanced stuff. A GUI-based intro takes about half that time. The rest of time could be used to talk about architecture and development patterns that Git enables.

I know the holiday season has everyone busy, so just consider that an open offer.


Nov 18, 2010 at 1:11 PM // reply »
10,743 Comments

@Rick,

I think that is the book I was checking out the other day. We use SVN at work; but, Git seems much more "community" friendly.

I really appreciate the offer - that's super kind of you. Perhaps that's an idea we can turn into some sort of screen recording. I'll hit you up via email.


Post A Comment

Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.

Please review the following issues:

Author Name:


Author Email:

Author Website:

Comment:

Supported HTML tags for formatting: <strong>bold</strong>   <em>italic</em>   <code>code</code>







  • Help Wanted - Find Your Next ColdFusion Job
InVision App - Prototyping Made Beautiful With Prototyping Tools Ben Nadel's Company - Epicenter Consulting Recent Blog Comments
May 16, 2012 at 8:18 PM
Best Of ColdFusion 10 Contest Entry - HTML Email Utility
Just found this, looks good! I'm trying to run it on local, it's the 64bit version and I'm experiencing horrible lag. On average the generate.cfm processes the content change in 60-90 seconds. I've ... read »
May 16, 2012 at 6:40 PM
Maintaining Sessions Across Multiple ColdFusion CFHttp Requests
I am trying to integrate this CFHTTPsession into an application that will log into zeekrewards.com to post ads and I am not having any luck. The code works perfectly for logging into other websites, ... read »
May 16, 2012 at 2:44 PM
Creating A Sometimes-Fixed-Position Element With jQuery
Thank you, very useful technique! Worked like a charm. ... read »
May 16, 2012 at 1:58 PM
Movies As A Religious Experience
Acting can, in a way, ruin the movie-goer's experience. I used to be able to get so caught up in movies and their plots, and totally engaged. But lately, I haven't been able to as much with a lot o ... read »
May 16, 2012 at 1:52 PM
The Science Of Optimal Post-Exercise Nutrition
children of this age eat very less vegetables so u can opt for salads they will like it also carrot ,cucumber,onion and as far as pulses are concerned u can boil them ,give him along with mashed rice ... read »
May 16, 2012 at 1:34 PM
Strange ColdFusion JRUN Stack Overflow Error
Hey, Recently I updated my jrun4 using the latest updater 7 and now i am having memory issues :(:(:( any help is appreciated ... read »
May 16, 2012 at 9:56 AM
ColdFusion 10 Beta, Apache Tomcat, And Symbolic Links On Mac OSX
Hi, Now that ColdFusion 10 is out I have stumbled over this as well and I cannot figure out the proper solution. We're running virtual hosts via Apache2; the ColdFusion-applications store their fil ... read »
May 15, 2012 at 6:03 PM
Movies As A Religious Experience
@Ben, I don't know whether you'd consider this a religious observation, but it seems to me, in a sense, movies multiply how many lives we get to have. Each movie is like a little extra life we get ... read »