[wp-trac] [WordPress Trac] #7624: Export blog feature produces
invalid XML file
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 28 08:10:47 GMT 2008
#7624: Export blog feature produces invalid XML file
---------------------+------------------------------------------------------
Reporter: rjwalsh | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: General | Version: 2.5.1
Severity: normal | Keywords:
---------------------+------------------------------------------------------
The WXR output is not valid XML. Using minidom in Python (which uses
Expat) to read the file can produce an error like this:
xml.parsers.expat.!ExpatError: unbound prefix: line 90, column 0
Looking at the line in question, we see something like this:
<excerpt:encoded><![CDATA[]]></excerpt:encoded>
The excerpt namespace is not defined. We need to add something like this
to the rss attributes near the top of the file:
xmlns:excerpt="http://wordpress.org/excerpt"
or some similar URL.
--
Ticket URL: <http://trac.wordpress.org/ticket/7624>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list