Hi Guys,

what i am trying to acieve is, I have an xml file which has bunch of reference to html pages, pic and videos.Now this file and all other files are in the same folder or different subfolder under a main folder.What i want to do is to read this xml file and insert all files which are reference in this xml file in database. Can anyone help me with this.Thanks

Hi,

Reading XML file can be done using XmlDocument class - load method. by traversing it we can get the node values. what you meant by "insert all files which are reference in this xml file in database"? Are you going to store the images, files into database or storing the reference links?

Thank you.

I ll actaully have to store those files in databse.so if i have a ref like abc.html then my code should look for that file in the folder and insert it in database.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.