[wp-trac] [WordPress Trac] #7400: WXR doesn't use an XML parser

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 17 15:55:12 UTC 2009


#7400: WXR doesn't use an XML parser
--------------------+-------------------------------------------------------
 Reporter:  link92  |        Type:  defect (bug)
   Status:  new     |    Priority:  normal      
Milestone:  2.9     |   Component:  Import      
  Version:          |    Severity:  normal      
 Keywords:          |  
--------------------+-------------------------------------------------------

Comment(by fastpipe):

 This has become a critical issue for me. I wrote an XSLT script nine
 months ago to convert one type of XML file into a WXR file so that we
 could import records from a different database system in as wordpress
 posts. It worked great on my Mac development server, but failed on two
 different Linux servers which had different pcre libraries.

 I worked around this for a while by importing the files I generated into
 Wordpress on the Mac and then exporting a new WXR from that install to a
 new file, which I could then upload to the install running on the Linux
 server. That worked up until Wordpress 2.8 and now it just fails on the
 Linux server after saying it was all done without importing any records.
 Everything still works as before on the Mac with the imported records
 coming in fine.

 I'm about to rewrite the whole system to convert the original XML to SQL
 and use a temporary table to do the imports. I believe this would be
 unnecessary with a real XML parser and I can't be the only one that's run
 into this problem.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/7400#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list