Title: [Plugin: Allow PHP in Posts and Pages] Load XML
Last modified: August 20, 2016

---

# [Plugin: Allow PHP in Posts and Pages] Load XML

 *  [Maarten.Provo](https://wordpress.org/support/users/maartenprovo/)
 * (@maartenprovo)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-allow-php-in-posts-and-pages-load-xml/)
 * I’m trying to load an XML-file so I can read variables from it but the scripts
   seems to stop executing when I get to this step. The code works outside of wordpress
   though.
 * I believe it stops at xhttp.open(“GET” …
 *     ```
       // create XML request
       	if (window.XMLHttpRequest) {
       		xhttp = new XMLHttpRequest();
       	} else {
       		// support for IE 5/6
       		xhttp = new ActiveXObject("Microsoft.XMLHTTP");
       	} 
   
       	// load XML file
       	xhttp.open("GET", "http://www.maartenprovo.be/projects/form/pricing.xml", false);
       	xhttp.send(null);
       	xmlDoc = xhttp.responseXML;
       ```
   
 * [http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/](http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/)

The topic ‘[Plugin: Allow PHP in Posts and Pages] Load XML’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/allow-php-in-posts-and-pages_edefed.
   svg)
 * [Allow PHP in Posts and Pages](https://wordpress.org/plugins/allow-php-in-posts-and-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/allow-php-in-posts-and-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Maarten.Provo](https://wordpress.org/support/users/maartenprovo/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-allow-php-in-posts-and-pages-load-xml/)
 * Status: not resolved