Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Bug in XMLDatabase_1_2 standard version  (Read 8094 times)
cedric_nicolas
Newbie
*
Posts: 1


View Profile Email
« on: January 14, 2009, 09:34:27 »

Hi everybody.

We have maybe found a bug in XMLDatabaseProxy.as, in the write() function.

In this code

      protected function write():void
      {
         // Get the string representation of the XML database
         var dbOut:String = '<?xml version="1.0" encoding="utf-8"?>\n';
         dbOut += data.toString();
         dbOut = dbOut.replace(/\n/g, File.lineEnding);


we have replaced data.toString(); by data.toXMLString();
indeed, with data.toString(); the XML contained in data was translated as a null string. Now it works.

Maybe we had something wrong ?
Logged
Pages: [1]
Print