To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
When you think ASP, think...
Recent Articles
All Articles
ASP.NET Articles [1.x] [2.0]
ASPFAQs.com
Message Board
Related Web Technologies
User Tips!
Coding Tips
Search















internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers
ASP ASP.NET ASP FAQs Message Board Feedback ASP Jobs
Go Back   ASP Message Board > ASP Technology > ASP.NET

ASP.NET This forum is for questions on ASP.NET. If you've got a question about building a Web application on the Microsoft platform, this is the forum to use!

Reply
 
Thread Tools Display Modes
  #1  
Old 01-25-2010, 02:34 PM
Liliths Thrall Liliths Thrall is offline
Junior Member
 
Join Date: Sep 2008
Posts: 27
Default validating files before uploading

I'm creating a form to upload XML files to the server.

Is there anyway I can ensure that the XML file validates against a given XSD schema before the server tries to upload it and aborts if it doesn't validate?

Silverlight and Active X are not allowed.
Reply With Quote
  #2  
Old 01-25-2010, 02:42 PM
jj152 jj152 is offline
Senior Member
 
Join Date: Dec 1969
Posts: 144
Default

This search gave some good examples
http://www.google.com/search?hl=en&s...+validate+xml+
Reply With Quote
  #3  
Old 01-25-2010, 02:48 PM
Liliths Thrall Liliths Thrall is offline
Junior Member
 
Join Date: Sep 2008
Posts: 27
Default

Let me rephrase my question because there seems to have been some misunderstanding.

Before the file is submitted to the server, I'd like it to be validated client-side.

I know how to validate the file once it gets server-side. I'm not asking a general question about how to validate XML, rather I'm asking how to do it specifically before upload to the web server.

Given that I identified that Silverlight and ActiveX aren't available and that JavaScript doesn't allow access to the client directory, validation will probably have to take place as part of the file upload process if it is to take place before the file finishes loading on the web server. Is there a way to do that?

Last edited by Liliths Thrall; 01-25-2010 at 03:00 PM.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:07 AM.

More ASP Resources

Reference:
-- ASPFAQs.com
-- VBScript Reference
-- JScript Reference
-- SQL Books Online
-- Official Docs
-- Commonly Asked Messageboard Questions

Resources:
-- Recent ASP Articles
-- ASP.NET Information
-- 4Guys ASP F.A.Q.
-- ASPFAQs.com
-- ASP Internet Resource
-- ASP.NET Internet Resource
-- ASP Coding Tips
-- Newsletter
-- Related Web Technologies
-- User Tips!!
-- ASP-related ListServs

Information:
-- Advertise
-- Author an Article
-- Feedback
-- ASP Messageboard F.A.Q.

Windows Technology
Check out these Web sites for articles, tutorials, FAQs, and code on ASP and related technologies!
-- 15Seconds.com
-- ASP101.com
-- ASPFAQs.com
-- ASPMessageboard.com
-- ASPWire.com

[Complete List of Sites]




Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.