WXR compatibility

View: New views
3 Messages — Rating Filter:   Alert me  

WXR compatibility

by Geoffrey Sneddon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Must the WXR importer remain compatible with all possible WXR exports,  
including those that aren't XML documents? If it must remain  
compatible, then WP can never use an WXR importer, and WP will need to  
stop claiming it is XML (as the de-facto standard will remain the  
status-quo of it not always being). If it doesn't need to, it makes it  
far easier for any other blogging software to write importers as they  
can use out-of-the-box XML parsers and be compatible with WP (instead  
of needing to write a parser of their own, which gets quite annoying  
if you can't copy/paste the GPL WP code).

--
Geoffrey Sneddon
<http://gsnedders.com/>

_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

Re: WXR compatibility

by Beau Lebens :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Must the WXR importer remain compatible with all possible WXR exports,
> including those that aren't XML documents?

Is it possible to convert non-XML WXR exports into valid XML on the
fly? How bad are they?
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

Re: WXR compatibility

by Geoffrey Sneddon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 15 Jun 2009, at 18:58, Beau Lebens wrote:

>> Must the WXR importer remain compatible with all possible WXR  
>> exports,
>> including those that aren't XML documents?
>
> Is it possible to convert non-XML WXR exports into valid XML on the
> fly? How bad are they?

Yeah, I guess. Seeming we have <generator> giving (WP) version, we  
should be able to do it based upon WP version. If anyone can help to  
gather together a list of bugs (only those that cause WXR to not be  
XML) affecting WP versions (up to 2.8, ones that only exist in trunk  
can be fixed at an export level) I would be grateful.

To start:

http://core.trac.wordpress.org/ticket/9633
http://core.trac.wordpress.org/ticket/9524
http://core.trac.wordpress.org/ticket/7624
http://core.trac.wordpress.org/ticket/5619 (maybe not a bug?)
http://core.trac.wordpress.org/ticket/4452
http://core.trac.wordpress.org/ticket/4242


--
Geoffrey Sneddon
<http://gsnedders.com/>

_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers