From affbc89f50f9df552a050ad889ac2dd9e410f789 Mon Sep 17 00:00:00 2001 From: MCMic Date: Thu, 15 Apr 2010 23:40:08 +0000 Subject: [PATCH] =?UTF-8?q?L'import=20depuis=20la=20textarea=20marche=20en?= =?UTF-8?q?fin.=20Cependant=20il=20repose=20sur=20DOMParser,=20qui=20n'est?= =?UTF-8?q?=20pas=20un=20standard.=20Test=20de=20chemin=20inverse=20DOM>te?= =?UTF-8?q?xte,=20mais=20lui=20aussi=20bas=C3=A9=20sur=20une=20classe=20no?= =?UTF-8?q?n-standard=20:=20XMLSerializer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- striped/StripEd.svg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/striped/StripEd.svg b/striped/StripEd.svg index c5de90d..f62790d 100644 --- a/striped/StripEd.svg +++ b/striped/StripEd.svg @@ -90,7 +90,7 @@ Charger un strip depuis du code XML - + @@ -638,7 +638,7 @@ return xmlDoc.responseXML; } function getXmlFromText(txt) { - var xmlDoc = new XML(txt); + var xmlDoc = new DOMParser().parseFromString(txt,"text/xml"); return xmlDoc; } function parseStrip(xmlFile) { @@ -671,6 +671,7 @@ strip.ajouterCase(kase); } } + alert(new XMLSerializer().serializeToString(xmlFile)); return strip; }