cfscript xmlparse path

Posted on 2006-04-06
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:

parsedXML = xmlParse("c:\Inetpub\wwwroot\newupdates\story28.xml");
Question by:dahlo1
    LVL 15

    Accepted Solution

    if all the xml files are in the newupdates directory:

    parsedXML = xmlParse("c:\Inetpub\wwwroot\newupdates\#storylink#.xml");

    Author Comment

    Thank you!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
    If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now