[Mediawiki-l] Importing Google Map causes XML parse error

Brion Vibber brion at wikimedia.org
Mon Oct 15 13:58:50 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul Coghlan wrote:
> I am trying to import a few thousand pages that include maps using the
> Google Maps extension.
> 
> The text is in the format as below:
> 
> <googlemap lat="36.3015" lon="-76.21976" type="map" zoom="11" width="700"
> height="600">
> 36.3214,-76.2134, Click to see [[some text]] page
> 36.9876,-76.1234, Click to see [[some text]] page
> </googlemap>
> 
> The message I get is pretty much identical whether I use importDump.php or
> Special:Import and is:
> 
> XML import Failure at line 40, col 42 (byte 1725; ³
> 36.3214,-76²):Attribute redefined
> 
> Anyone able to shed any light on this?

Can you confirm that your XML is properly formatted? Remember the page
text is *text*, so '<' '>' etc should appear as '&lt;' '&gt;' etc in
your .xml file.

- -- brion vibber (brion @ wikimedia.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHE3IawRnhpk1wk44RAlz6AJ4ySGtNLwIrlsaHNO3MEeAmIHU17gCdGvFO
jbY+GimS9yMX01q3bQAJGx8=
=jp5o
-----END PGP SIGNATURE-----



More information about the MediaWiki-l mailing list