S ShaneTalbert.com New member Oct 6, 2009 #1 How do I read the contents of an xml file, find the one I want, based on the name, and echo it to the screen in PHP or HTML?
How do I read the contents of an xml file, find the one I want, based on the name, and echo it to the screen in PHP or HTML?
R Richard S New member Oct 6, 2009 #2 Use php. $url = "path.xml"; $xml = file_get_contents($url); for ($thisfilter=0; $thisfilter<$numberoffilters; $thisfilter++){ $tofind = "what to find"; $toreplace = "what to replace"; $xml = str_ireplace($tofind,$toreplace,$xml); } echo $xml;
Use php. $url = "path.xml"; $xml = file_get_contents($url); for ($thisfilter=0; $thisfilter<$numberoffilters; $thisfilter++){ $tofind = "what to find"; $toreplace = "what to replace"; $xml = str_ireplace($tofind,$toreplace,$xml); } echo $xml;