[wp-trac] [WordPress Trac] #5460: WXR importer doesn't like XML files with </item><item>

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 12 13:30:36 GMT 2007


#5460: WXR importer doesn't like XML files with </item><item>
--------------------------+-------------------------------------------------
 Reporter:  JeremyVisser  |       Owner:  anonymous
     Type:  defect        |      Status:  new      
 Priority:  low           |   Milestone:  2.5      
Component:  General       |     Version:  2.3.1    
 Severity:  minor         |    Keywords:           
--------------------------+-------------------------------------------------
 I'm trying to import a WXR file that contains the following:

 {{{
 </item><item>
 }}}

 ...in between different blog entries. However, !WordPress keels over, and
 doesn't import the file properly.

 Getting a text editor and manually find-and-replace'ing all occurrences of
 {{{</item><item>}}} with:

 {{{
 </item>
 <item>
 }}}

 ...works.

 The main problem is that !WordPress doesn't actually use an XML parser to
 import stuff. However, I set the ticket severity to "minor", as !WordPress
 itself doesn't generate WXR files that contain {{{</item><item>}}} — it's
 only when using a particular third-party generator that this happens.
 However, it's !WordPress' fault that it's failing, as there should really
 be no difference between the above two examples.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5460>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list