[Xerte-dev] Re: FW: Further Xerte Data Loss

Julian Tenney Julian.Tenney at nottingham.ac.uk
Mon May 12 13:16:45 BST 2014


On this occasion, the file has broken half way through a CDATA section, so everything ought to have escaped OK.

Just to be certain: data.xml is the published file, right, and preview.xml is the editing file?

In which case it is the published file that has broken, and the editing file is complete with a <learningObject> tag. I'll attach them, I'm just asking if he minds if I share the files.

-----Original Message-----
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David Goodwin
Sent: 12 May 2014 12:53
To: For Xerte technical developers
Subject: [Xerte-dev] Re: FW: Further Xerte Data Loss



On 12/05/14 12:41, Julian Tenney wrote:
> What beats me is why the file should break halfway through a tag name.


What I've seen is that the PHP (or whatever) can't read the XML file as it has the wrong encoding specified, or it just somehow contains characters that are invalid.

see e.g.

http://stackoverflow.com/questions/14463573/php-simplexml-load-file-invalid-character-error

https://chrismckee.co.uk/saving-user-content-to-xml-error-contains-none-utf-8-content-aka-how-to-remove-invalid-characters-in-utf-8/


David.

>
> -----Original Message-----
> From: xerte-dev-bounces at lists.nottingham.ac.uk 
> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of David 
> Goodwin
> Sent: 12 May 2014 12:37
> To: For Xerte technical developers
> Subject: [Xerte-dev] Re: FW: Further Xerte Data Loss
>
> Is it possible that it's a unicode ` character?
>
>
> I've seen a number of UTF-8 related issues with the data.xml etc files.
>
> David.
>



--
Pale Purple Ltd

PHP Web application development and support

http://www.palepurple.co.uk
@PalePurpleLtd
07792 380669 / 0845 0046746

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev



More information about the Xerte-dev mailing list