Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I create and read an xml file with jquery
    primarykey
    data
    text
    <p>I know there is alot of information to do this in the internet, but I got very confused.</p> <p>I want to create an xml file and send it with Ajax to the server. I will need to reseve and xml file back.</p> <p>This is an example of the XML file I will need to create.</p> <pre>&#60;?xml&nbsp;version=&#34;1.0&#34;&nbsp;encoding=&#34;UTF-8&#34;?&#62; &#60;data&#62; &#60;item&#62;dkfjgn&#60;/item&#62; &#60;item&#62;sdfxvv&#60;/item&#62; &#60;item&#62;htyjhj&#60;/item&#62; &#60;item&#62;vnmvbn&#60;/item&#62; &#60;item&#62;qqqgdb&#60;/item&#62; &#60;data&#62;</pre> <p>As you see it is a very basic xml file. the values of the items will be contained in an array.</p> <p>This is the xml file it will be send back.</p> <pre>&#60;?xml&nbsp;version=&#34;1.0&#34;&nbsp;encoding=&#34;UTF-8&#34;?&#62; &#60;data&#62; &#60;dkfjgn&#62; &#60;title&#62;A&nbsp;title&#60;/title&#62; &#60;discription&#62;A&nbsp;discription&#60;/discription&#62; &#60;/dkfjgn&#62; &#60;sdfxvv&#62; &#60;title&#62;A&nbsp;title&#60;/title&#62; &#60;discription&#62;A&nbsp;discription&#60;/discription&#62; &#60;/sdfxvv&#62; &#60;htyjhj&#62; &#60;title&#62;A&nbsp;title&#60;/title&#62; &#60;discription&#62;A&nbsp;discription&#60;/discription&#62; &#60;/htyjhj&#62; &#60;vnmvbn&#62; &#60;title&#62;A&nbsp;title&#60;/title&#62; &#60;discription&#62;A&nbsp;discription&#60;/discription&#62; &#60;/vnmvbn&#62; &#60;qqqgdb&#62; &#60;title&#62;A&nbsp;title&#60;/title&#62; &#60;discription&#62;A&nbsp;discription&#60;/discription&#62; &#60;/qqqgdb&#62; &#60;data&#62;</pre> <p>After reseving the xml file I want to use an "for each" on the array containing the values and look for the values and do something.</p> <p>Example<br></p> <pre> for ( var i in values ) { var title = ""; var discription = ""; /*********************************************************************************\ * Each value can be obtained here by using values[i]. * * If there is an other way to do this with jquery please. * * Here I will need to parse the xml file and the values in the variables above. * \*********************************************************************************/ } </pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload