<html><head/><body><html><head></head><body>Havenˋt seen this one before....<br>
<br>
The data.xml is created by wizard.swf, and it uses the xml functions of flash to create that file, and weˋ ve had probles before with porely escaped characters....<br>
<br>
I donˋ t know where ˆA  is coming frm though, it is assumed to represent ascii character 1, but that doesnˋt make sense at all in this context. <br>
<br>
Can you send a .zip of the LO thatˋs causing this, then I can figure out which page type is doing that, and try to see whatˋs giong on in the flash code....<br>
<br>
Tom<br>
<br><br><div class="gmail_quote">David Goodwin <david@palepurple.co.uk> schreef:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre style="white-space: pre-wrap; word-wrap:break-word; font-family: sans-serif; margin-top: 0px">Hi,<br /><br />I'm seeing an invalid character being added to a USER-FILES/xxx-xxxx-xxxxx/data.xml file which is breaking the export of the LO.<br /><br /><br />From the PHP error log I see :<br /><br />05-Nov-2012 17:55:01 Europe/London] PHP Warning:  simplexml_load_file(): /xxxxxxx/155-elsjbh-Nottingham/template.xml:1: parser error : CData section not finished<br />When virtual communication isn't effective, people in /xxxxx/website_code/php/xmlInspector.php on line 26<br />[05-Nov-2012 17:55:01 Europe/London] PHP Warning:  simplexml_load_file(): concern for others' well being</li>^A in /xxxxxx/website_code/php/xmlInspector.php on line 26<br />[05-Nov-2012 17:55:01 Europe/London] PHP Warning:  simplexml_load_file():                                    ^ in /xxxxxx/website_code/php/xmlInspector.php on line 26<br />[05-Nov-2012 17:55:01 Europe/London] PHP Warning: 
simplexml_load_file(): /xxxxxxx/USER-FILES/155-elsjbh-Nottingham/template.xml:1: parser error : PCDATA invalid Char value 1 in /xxxxxx/website_code/php/xmlInspector.php on line 26<br /><br /><br />You should see the ^A which is the invalid character.<br /><br />If I fix the newlines in the file (either data.xml or template.xml) and then run xmllint --format on it, I get the following :<br /><br />foo.xml:832: parser error : CData section not finished<br />When virtual communication isn't effective, people<br />concern for others' well being</li><br />^<br />foo.xml:832: parser error : PCDATA invalid Char value 1<br />concern for others' well being</li><br />^<br />foo.xml:846: parser error : Sequence ']]>' not allowed in content<br />Byrne, M. and Associates (2000) <i>Virtual Teams, Virtual Management.</i>]]></te<br />^<br />foo.xml:846: parser error : internal error<br />Byrne, M. and Associates (2000) <i>Virtual Teams, Virtual
Management.</i>]]></te<br />^<br />foo.xml:846: parser error : Extra content at the end of the document<br />Byrne, M. and Associates (2000) <i>Virtual Teams, Virtual Management.</i>]]></te<br /><br /><br />And upon viewing the file I see :<br /><br />Three components of a well-functioning virtual team are:<br /><li>competence<br />integrity<br />concern for others' well being</li>^A<br />…..<br /><br /><br />I'm not sure what character the ^A is - but it's obviously causing problems. If I delete it, and save data.xml it then passes xmllint and the LO can be exported and everything works fine.<br /><br /><br />However, somehow the character is re-appearing over time, as the problem has come back.<br /><br />From the export code, I can see data.xml is copied to template.xml; but is something used to create data.xml? <br />How is this ^A character returning? Is it possible the end user is pasting something into the XOT editor which co
 ntains
the strange character?<br /><br /><br />(I assume somewhere some code isn't creating the XML document using a library, and is instead concatenating strings … hence the character isn't escaped/encoded correctly?)<br /><br />Thanks<br />David.<br /><br />Pale Purple Ltd.  (Company No: 5580814)<br />'Web and Mobile Application Development for Business'<br /><br /><a href="http://www.palepurple.co.uk">http://www.palepurple.co.uk</a>   <br />Office: 0845 0046746     Mobile: 07792380669 <br /><br />Follow us on Twitter: @PalePurpleLtd<br /><br /><br /><hr /><br />Xerte-dev mailing list<br />Xerte-dev@lists.nottingham.ac.uk<br /><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br />This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not
  use,
copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br /><br />This message has been checked for viruses but the contents of an attachment<br />may still contain software viruses which could damage your computer system:<br />you are advised to perform your own checks. Email communications with the<br />University of Nottingham may be monitored as permitted by UK legislation.<br /><br /></pre></blockquote></div><br>
-- <br>
Verzonden van mijn Android telefoon met K-9 Mail.</body></html></body></html>