CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 1999
    Posts
    128

    Variable filename in xml tag in asp

    Hello

    I'd appreciate any help with a problem i'm facing.

    I'm looking for a way to include the results of an xml file in an asp document. The catch is that the name (and path) of the xml file is not constant. It is constructed within a javascript function and placed in a session variable. After a lot of search in google and various forums i know (including this), i couldn't find a way to use it in an xml tag.

    For instance, i have placed the following statement in a .asp file:

    <xml id="xmldso" src="/Dir1/test.xml" async="false"></xml>

    I would like somehow to replace the "/Dir1/test.xml" fixed statement with a session variable containing the actual filename.

    TIA for any help.
    -------------------------
    Nick A.

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Variable filename in xml tag in asp

    Why can't you just use Response.Write to echo the variable name?
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured