navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

ASP & XML

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> ASP & XML
Page: [1]
 
pazafuera

 

Posts: 98
Joined: 7/22/2005
Status: offline

 
ASP & XML - 7/12/2007 14:22:07   
Hello,

I am working with an XML file - something I've never done before - that I got from a free flash photo gallery. Inside the XML file I can add albums and images one-by-one which is getting rather tedious. Here's the script:

<albums>
<album title="New and Hot" description="These are the featured items here on the website">
<image title="Image 1" date="7-11-07" thumbnail="wedding-71107.jpg" image="wedding-71107.jpg"></image>
</album>
</albums>

Now in the past I have used DRW to dynamically add records to javascript menus and such, and I was hoping I could do the same thing here with this gallery. However, it appears I cannot use the ASP inside the XML page...no surprise there I guess.

Does anybody out there have any ideas on how I can dynamially list records from my database and inplant them into the XML file?

Thanks
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: ASP & XML - 7/12/2007 14:57:46   
quote:

it appears I cannot use the ASP inside the XML page


You sometimes can.

If you can point the XML parser to a file other than one with a .XML extension, it should be no problem. I've done it on at least a handfull of occasions.

What I did was make the ASP generate the XML but be sure that it only generates the XML stuff and not any of a standard web page stuff.

Then just make the parser go to the .ASP file. Many parsers don't really care that it's an ASP file; it only cares that it gets valid XML data.

Or you can build it inline on the page that you're using it if that's applicable. For instance, I build charts on an ASP page and just grab the data from the database, build the XML as a string, and substitute the variable directly where you'd normally call a .XML file.

Hope that helps.

EDIT: One more option; you could use the FSO object to write the .XML file instead. There are usually many ways to 'skin a cat'. :)

< Message edited by rdouglass -- 7/12/2007 15:06:55 >


_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to pazafuera)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> ASP & XML
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts