Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
02-16-2009, 05:56 AM #1
- Join Date
- Feb 2009
- Thanked 0 Times in 0 Posts
How to display info from a xml in a html after searching
Im working on a small project, basically what im doing, is im making a XML file and im using it as a contact list, see below:
<Name>Mr John Citizen</Name>
<mobile>0111 222 333</mobile>
<TL>Mr John Supervisor</TL>
<TLMobile>0222 333 444</TLMobile>
<SendSMS><a href="mailto:email@example.com">Click to SMS</a></p></SendSMS>
<AdditionalInfo>Currently available 24H7D</AdditionalInfo>
So for example, the html page needs 2 data entry boxes, one which searchs the employee number and the other searches the planttech number. When succesful, it matches all the data for that employee in the xml file and it should show all the details, maybe in another text box which populates on the page or just on the page as basic html.
Im not sure how to do this and Im pretty sure it is quite simple and basic, but everywhere I look I just cant seem to find what I need, does anyone have any code I can play with to make this work?
Id greatly appreciate any help I can get. Many thanks.
02-16-2009, 10:29 AM #2
- Join Date
- Dec 2007
- Thanked 890 Times in 879 Posts
You can retrive the data you need from xml using xpath but you must first build the forms, decide what server side language you use, perl, php or other, how you build the xpath expression, how you retrive the results and how you put them in the page.