Sorting XML with XSLT and ColdFusion

On June 28, 2010, in ColdFusion, by Anuj Gakhar

I came across a requirement today, where I had to sort a XML file by one of the attributes in one of its child nodes. I did some searching and came across these excellent posts by Ben Nadel.  Obviously, that gave me some headstart and it was clear that XSLT was the way to go.  […]

Tagged with:  

Removing NameSpaces from XML using XSLT and ColdFusion

On April 22, 2009, in ColdFusion, by Anuj Gakhar

If you are using ColdFusion XPath functions to search/parse XML strings, you will probably have come across this one at some point.  Not all, but most of the XML files have namespaces in them e.g. xmlns:xsi=””. If you use Xpath on a string that contains namespaces, chances are that you will get back the namespaces […]

Tagged with:  

The Processing Instruction Target Matching “[xX][mM][lL]” is Not Allowed

On February 17, 2009, in ColdFusion, by Anuj Gakhar

This post is just a little tip that I think can take a lot of time in trying to solve. I was building a variable , using cfsavecontent, to process later on and there was absolutely nothing wrong with the code according to me, as below :-

Tagged with:  

Changing MXML string labels via XML

On December 11, 2007, in Flex, by Anuj Gakhar

I personally dont like hardcoding things like texts and labels inside any compiled code, reason being , when it needs to be changed for whatever reason, I have to go through the pain of loading the project and making the change and then compiling it again and deploying it again , all for one little […]

Tagged with:  

Extracting Links using Xpath

On November 21, 2007, in ColdFusion, by Anuj Gakhar

Extracting links from a piece of HTML code is a very common task and any programmer would have come across this requirement at some point. I have always used regular expressions to achieve this and it has always worked for me, no complaints there. However, I was just curious to find some other way to […]

Tagged with:  

Coldfusion XML to Struct

On November 5, 2007, in ColdFusion, by Anuj Gakhar

XML parsing in Coldfusion has improved a lot in the last few versions but converting a complex XML object to a Coldfusion structure is still a struggle I beleive. There are a few custom tags out there for doing this but the ones that I have used or know are all only for simple structures, […]

Tagged with:  

Using Xpath with Coldfusion

On October 31, 2007, in ColdFusion, by Anuj Gakhar

I find Xpath very powerul for searching through a XML document. I have used it extensively in some of my projects and it might be worth it to post some of the examples here. For this example, I have used the books.xml sample xml file which can be found here. Following are some examples of […]

Tagged with:  
© 2011 Anuj Gakhar