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 »
11,314 Comments

@ChangWei,

Thanks my man, hope you like it.


Nov 18, 2010 at 10:05 AM // reply »
68 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 »
11,314 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 »
68 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 »
11,314 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
Ben Nadel's Company - Epicenter Consulting Recent Blog Comments
Jun 18, 2013 at 9:20 PM
Mapping AngularJS Routes Onto URL Parameters And Client-Side Events
I couldn't find examples of passing multiple arguments using the when() routing statement so figured out through trial and error that you can pass multiple arguments using the following format: .whe ... read »
Jun 18, 2013 at 3:39 PM
Experimenting With The Amazon Simple Storage Service (S3) API Using ColdFusion
Hi Ben, THANKS! While not bleeding edge, it is new to me & I like learning new things every day! ... read »
Jun 18, 2013 at 12:30 PM
Disabling Auto-Correct And Auto-Capitalize Features On iPhone Inputs
Also spellcheck="false" should be mentioned as part of html5 specs ... read »
Jun 18, 2013 at 8:40 AM
Using Named Functions Within Self-Executing Function Blocks In Javascript
Hi Ben, you forgot to mention the most important thing for named self-executing functions - they can be referenced by name ONLY inside their execution context (which is parens in this case), it mean ... read »
dee
Jun 18, 2013 at 7:01 AM
My Safari Browser SQLite Database Hello World Example
hai ben, this program is really good i could understand the concept but i dint know how to save it and how to open it as you have done in the video can u give that details pls ... read »
Jun 18, 2013 at 6:04 AM
Clearing Inline CSS Properties With jQuery
Thanks a lot for for post! It helped me a lot... after being stuck since 24 hrs.. found solution from your post. Thanks again! ... read »
Jun 18, 2013 at 2:31 AM
SOTR 2013 - The Best Conference I Never Went To
I keep watching it, should keep me happily distracted until SotR14 ;) ... read »
Jun 17, 2013 at 9:45 PM
What If All User Interface (UI) Data Came In Reports?
@Jonah, As I was reading what you wrote, it occurred to me that maybe I do something similar to that in some of my client-side code. In an application I'm working on, there are a bunch of unrelated ... read »
InVision App - Prototyping Made Beautiful With Prototyping Tools