"The body must contain a <map> tag if not empty" error when map tag is present
lambert - March 1, 2007 - 15:13
| Project: | Mapbuilder |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | by design |
Jump to:
Description
When I post a config node using this markup, an error is thrown: "The body must contain a tag if not empty."
<map config="sites/all/modules/mapbuilder/demo/config.xml" />This markup does not throw the error.
<map>sites/all/modules/mapbuilder/demo/config.xml</map>However, in both cases a map tag is present and the XML is well-formed.
(And then the map loads! Hurrah!)

#1
The config.xml must always be edited to adapt the <defaultModelUrl> and <skinDir> parameters to your local installation. Config.xml assumes a drupal base_path of /drupal-5.0/. See README.txt.
There was another error though because of a function that was replaced.
Nice that your map shows!
#2
I don't see this as a base paths issue. I see this as an XML issue where:
<map></map>is acceptable and
<map/>is not, even though both are well-formed by the XML spec. Am I missing something?