Click here to Skip to main content
15,905,776 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to upload xml file from local pc and read the file ??
Posted
Comments
CodeBlack 19-Aug-13 4:56am    
From your question its not clear that where you want to upload xml file and from where you want to read the same xml file.
[no name] 19-Aug-13 5:05am    
Can you describe your question in more elaborated mode.because no one can understand your question in current situation

1 solution

If it is your desktop application then you just need to create an XmlReader for that file and it will load your file into memory and will make that file readable to you. After that you just need to read/parse that file. Go through the following link for help (http://www.dotnetperls.com/xmlreader[^]

If you want to read an XML file using a web-based application, and you want the user to upload that file, then first you should provide the user the option to upload the file to the web-server. Once file is available, you can read it the same way, but in that case you should check for the the schema validation of that XML file.
Hope you have got the basic idea about what to do :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900