Extracting data from an XML and placing it in a HTML table



I am not a coding expert so need your help. I have a xml file as a string variable stored in the $(xml) variable shown below in code. I am able to parse this xml file and extract the data row wise but the problem is that the extracted data has no space present in it between the two values. Also, I want this extracted data to be put in tabular format of 5x5. Using Javascript/jQuery


Thanks



var xmlString = $(xml).find("table_cell_value1,table_cell_value2,table_cell_value3,table_cell_value4,table_cell_value5").text();

No comments:

Post a Comment