Archive

Archive for February, 2009

Parse XML with ColdFusion

February 19, 2009 ppshein Leave a comment

We’re now doing project with different language, VB6 and CFMX7. One part of our projects, we need to send our data each other without uploading database files. That’s why we need to consider about exporting and importing XML files. In CFMX7, reading XML isn’t kinda complicated. Here is coding…

<cffile action=”read” file=”c:\inetpub\wwwroot\myfile.xml” variable=”XMLFileText” charset=”UTF-8″>
<cfset MyXMLDoc = xmlParse(XMLFileText)>
<cfset MyXMLNodes = xmlSearch(MyXMLDoc,’/Values/Comment’)>
<cfloop from=”1″ to=”#arraylen(MyXMLNodes)#” index=”i”>
<cfset GetXMLNodes = xmlparse(MyXMLNodes[i])>
<cfset ID = GetXMLNodes.Comment.CommentID.xmlText>
<cfset type = GetXMLNodes.Comment.CommentType.xmlText>
<cfset message = GetXMLNodes.Comment.CommentMessage.xmlText>
</cfloop>

Categories: coldfusion Tags: , ,

Planet Valentine2009 and Academy 2007

February 11, 2009 ppshein Leave a comment

I’ve implemented two featured sites on Planet Myanmar Website in these days. One is Valentine2009 and another one is Academy2007. As my style, I’ve implemented these two as database-less as much as it could be. As we all know, it’s so complicated to do guestbook function with database-less knowledge. I didn’t tell that we cannot do guestbook application as database-less knowledge.

Planet Academy

Planet Academy

Planet Valentine

Planet Valentine

Categories: Informations Tags: , ,