vendredi 18 septembre 2020

Using text to generate XML (php page)

I am looking for a way to use a text file which contains different information which i want to display onto a website but was told to use XML, jquery. I am unfimiliar with it and wanted to pay someone to do it for me but i do not know what kind of term to use to search for someone who would be able to do it.

example of text format

(images/name/1.jpg) (Name of Item1) (level 111) (images/location/1.jpg) ((images/item/item1.jpg) (iteminfonumber1) (ItemName1) (ItemDescription1)(images/item/item2.jpg) (iteminfonumber2) (ItemName2) (ItemDescription2))
(images/name/2.jpg) (Name of Item2) (level 112) (images/location/2.jpg) ((images/item/item3.jpg) (iteminfonumber3) (ItemName3) (ItemDescription3)(images/item/item4.jpg) (iteminfonumber4) (ItemName4) (ItemDescription4)(images/item/item5.jpg) (iteminfonumber5) (ItemName5) (ItemDescription5))
(images/name/3.jpg) (Name of Item3) (level 113) (images/location/3.jpg) ((images/item/item6.jpg) (iteminfonumber6) (ItemName6) (ItemDescription6))

and I need it to display in Table or Div whichever is possible also the /images/name/1.jpg will be images to be displayed in table and are saved in seperate folders as shown on text format

Image of Final Result wanted to be generated to show on PHP Website

<table>
<tbody>
<tr>
<td>Name</td>
<td>Level</td>
<td>Location</td>
<td>Items</td>
</tr>
<tr>
<td>
<p>images/name/1.jpg</p>
<p>Name of Item1</p>
</td>
<td>111</td>
<td>images/location/1.jpg</td>
<td>images/item/item1.jpg<br />iteminfonumber1, ItemName1 &amp; ItemDescription1 to Display on Image Hover popup<br /><br />images/item/item2.jpg<br />iteminfonumber2, ItemName2 &amp; ItemDescription2 to Display on Image Hover popup</td>
</tr>
<tr>
<td>
<p>images/name/2.jpg</p>
<p>Name of Item2</p>
</td>
<td>112</td>
<td>images/location/2.jpg</td>
<td>images/item/item3.jpg<br />iteminfonumber3, ItemName3 &amp; ItemDescription3 to Display on Image Hover popup<br /><br /><br />images/item/item4.jpg<br />iteminfonumber4, ItemName4 &amp; ItemDescription4 to Display on Image Hover popup<br /><br /><br />images/item/item5.jpg<br />iteminfonumber5, ItemName5 &amp; ItemDescription5 to Display on Image Hover popup</td>
</tr>
<tr>
<td>
<p>images/name/3.jpg</p>
<p>Name of Item3</p>
</td>
<td>113</td>
<td>images/location/3.jpg</td>
<td>images/item/item6.jpg<br />iteminfonumber6, ItemName6 &amp; ItemDescription6 to Display on Image Hover popup</td>
</tr>
</tbody>
</table>

Any help is highly appreciated. Thank you in advance.




Aucun commentaire:

Enregistrer un commentaire