"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
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

jpulles - March 1, 2007 - 20:08
Status:active» by design

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

lambert - March 1, 2007 - 21:19

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?

 
 

Drupal is a registered trademark of Dries Buytaert.