Title: loading XML documents
Last modified: August 20, 2016

---

# loading XML documents

 *  Resolved [tifire](https://wordpress.org/support/users/tifire/)
 * (@tifire)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/loading-xml-documents/)
 * As part of my own google maps plugin, I would like to export the table data of
   mysql database into an XML format. Then my map retrieves through asynchronous
   JavaScript calls.
 * Now here goes the problem. The function loadXMLDoc() doesn’t seem to work at 
   all if I put it inside the JavaScript of my WordPress, all other parts of the
   WordPress JavaScript code do work well. The function loadXMLDoc() works great
   if I put the JavaScript inside an independant html file.
 * Can anyone tell me what could be the problem? What’s the best way to load XML
   documents into WordPress?
 * Thanks a lot.
 * _[[No bumping](http://codex.wordpress.org/Forum_Welcome#No_Bumping), please.]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [tifire](https://wordpress.org/support/users/tifire/)
 * (@tifire)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/loading-xml-documents/#post-2270997)
 * I solved the problem. It turned out that full path of the xml file is needed 
   in the wordpress.

Viewing 1 replies (of 1 total)

The topic ‘loading XML documents’ is closed to new replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [xml](https://wordpress.org/support/topic-tag/xml/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [tifire](https://wordpress.org/support/users/tifire/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/loading-xml-documents/#post-2270997)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
