AllExperts > Experts 
Search      

XML

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More XML Answers
Question Library

Ask a question about XML
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Ashvin
Expertise
I can handle all the queries related to XML. I can sort out problems regarding XSLT and XSL. I work using MSXML components. I can handle XML-SQl, XML-VB and XMl-ASP related queries.

Experience
I have worked for 2years in this feild. I have worked in SGML and DTDs, and now working in XML and Schemas.

 
   

You are here:  Experts > Computing/Technology > HTML/XML > XML > XML parsing and interpreting

Topic: XML



Expert: Ashvin
Date: 3/25/2004
Subject: XML parsing and interpreting

Question
Hi,
  i have created a XML file that contains the user selections made using a HTML form. in this XML file, i have included entire file paths as
elements instead of just single data values. ie my XML is as follows:

 <elem id="1">C:\My Documents\aa.jpg</elem>
 <elem id="2">C:\My Documents\bb.jpg</elem>......

 actually in my HTML form, the user is given a set of jpeg images and he has to choose one among them. similarly he is allowed to choose a text
file containing data from a set of text files. these are shown in XML as:

 <data id="1">C:\My Documents\data1.txt</data>
 <data id="2">C:\My Documents\data2.txt</data>  

  (1) now when i parse this XML file using a parser, what will be the output that is obtained?
and
(2) say the user has selected "aa.jpg" and "data1.txt", how can i modify my XML file so that the server side programs can extract only these two selected files.
    i am really finding it difficult to proceed and hope u help me out. any similar sites/links will also be helpful
thanks in advance.


Answer
Hello Sri,

First of all I am Very sorry for the delay, I was very busy in my projects.

Well, for you, you must know you have to make XSL / XSLT for the xml file so that you can format the XML file for the user to select from the dropdown.

You can get more information from the site http://www.w3School.com/xsl

You have to everything same as you do for the ASP select once you format the XML

If you are not able to get from the site please let me know I try to build code for you.

Take care

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.