Skip to content

Tag Archives: php function

How to validate xml with php?

I wrote a small php news aggregator on my website. It just displays 5 news headlines from different sources. The problem is it all goes wrong when there’s a mistake in the xml feeds. What is the easiest/best php function to validate the xml? I’ve been searching the internet but haven’t had much luck finding [...]

Is there a javascript function I can use to extract data from an xml document?

Hi I also need a PHP function to create the XML document. I need it because it’s the only way I can think of as a way to pass variable from PHP to Javascript. (using AJAX also) Thanks