Description

I tried to export Wiki Pages as XML

Steps to reproduce

Just try to export the Startpage as XML. After examing the Raw-Format, it seems MoinMoin comments are improperly exported as a series of non-closing <p> Tags. There are three commented lines after we need help:

## * MoinBeta - help by testing development versions.

##== Planned Events ==
## * 2007-01-23..25 !MoinMoin at OpenSourceMeetsBusiness.

and these are exported as:

<p><p><p><p></p>

Example

URL: http://moinmo.in/4ct10n/show/MoinMoinWiki?action=show&mimetype=text/xml

Component selection

Details

This Wiki.

Workaround

Discussion

There are many problems with the text/xml import besides the unbalanced p tags. Images are broken, and there are undefined   entities. I'm fixing these as I run into them, and will try to keep this page updated with a patch against Moin 1.9 trunk.

http://python.pastebin.com/MZfgQXR6

I see the status "moin2 will have better xml stuff (moin 1.x can't be easily fixed)", but at least some of the brokenness can be fixed now, as the attachment illustrates.

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/XmlExport produces malformed XML (last edited 2010-04-15 16:43:24 by UcheOgbuji)