Classic ASP XMLUsing ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. NOT for ASP.NET 1.0, 1.1, or 2.0

Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP XML section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .

The good news is that no errors are returned, but the bad news is neither are any results...just a blank page. I'm not sure why that is, because the properties & syntax appear to be correct. If you see anything that I'm obviously missing, please let me know. I'll just keep on testing it out in the meantime.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Mosquito Song by Queens of the Stone Age (Track 15 from the album: Songs For The Deaf) What's This?

It should, but since I'm doing all of this on an internal test-server, that could be possible. I'll check with my Network Administrator tomorrow morning about making sure that I have Read writes to that directory. But I'm not sure why I wouldn't, as I've been testing other things on that directory that requires read & write access with success.

Thanks for testing it out on your machine. That helps me to know that it could be a problem with the security vs. the code.

Would you mind telling me exactly how you tested the code out that I included with my previous post? I even tried creating a copy of the XML file into the same directory as the ASPX file with no success. I just can't figure out why it's working for you and not for me. How frustrating...

I must admit I cheated a bit by moving this code into a Visual Studio Project with a code behind file. This may lead you to believe that this code does only work with Visual Studio, but I ensure you that's not the case.

The one thing that I changed, apart from moving the @Import to Imports statements in my code behind file, was drop the Main method and instead dump your code in the Page_Load of my page.

That is also probably causing this code not to run on your machine. In the ASP.NET world, Main is not a magical name for a method. Instead of Main you could have used Imar() or KWilliams() or whatever. So, basically, the framework treats this as a normal method and waits for code that triggers it.

To run the code when the page loads, you need to add it to the Page_Load method. In Visual Studio .NET you can declare that method like this:

However, in the Web Matrix, I think the AutoEventWireUp or whatever it is called is on by default, so you may get away with just Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)

So, move your code to a method that is called at run-time and see if that makes a difference....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: 06 - Monsters In The Parasol by Queens of the Stone Age (Track 6 from the album: Rated R) What's This?

...and it works like a charm. Thanks SO MUCH for your patient, thorough, and clearly wonderful help. You've been a great resource during this frustrating process, and I REALLY appreciate it. This forum is VERY lucky to have you as a member, and I'm not just saying that:)

err.... can we use XSLT instead of loading of XMLDocument and then walking thru the document tree? with XSLT i guess you don't have to do much coding and then if you change your mind to display the content in different format you can always go back to the xsl file and change it right?