Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

cfscript xmlparse path

Posted on 2006-04-06
2
Medium Priority
?
376 Views
Last Modified: 2013-12-24
I have a list of stories that is dynamically populated using coldfusion.  I want users to be able to click on the story link to view an xml file of the story.  It displays fine when the absolute path is used for the specific story, but how can I make that dynamic so I can output the story based on the link they selected on the previous page?  #storylink#
This is what I am using on the display page:

<cfscript>
parsedXML = xmlParse("c:\Inetpub\wwwroot\newupdates\story28.xml");
</cfscript>
0
Comment
Question by:dahlo1
2 Comments
 
LVL 15

Accepted Solution

by:
DanielSKim earned 2000 total points
ID: 16393335
if all the xml files are in the newupdates directory:

<cfscript>
parsedXML = xmlParse("c:\Inetpub\wwwroot\newupdates\#storylink#.xml");
</cfscript>
0
 

Author Comment

by:dahlo1
ID: 16393456
Thank you!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question