[Pixelle-commit] SF.net SVN: pixelle:[231] trunk/pixelle/src/com/mebigfatguy/pixelle/ AlgorithmArch
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-11-25 04:31:26
|
Revision: 231
http://pixelle.svn.sourceforge.net/pixelle/?rev=231&view=rev
Author: dbrosius
Date: 2008-11-25 04:31:24 +0000 (Tue, 25 Nov 2008)
Log Message:
-----------
fix saving of algorithms to escape xml entities
Modified Paths:
--------------
trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java 2008-11-25 04:30:58 UTC (rev 230)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/AlgorithmArchiver.java 2008-11-25 04:31:24 UTC (rev 231)
@@ -48,6 +48,7 @@
import org.xml.sax.helpers.XMLReaderFactory;
import com.mebigfatguy.pixelle.utils.Closer;
+import com.mebigfatguy.pixelle.utils.XMLEncoder;
public class AlgorithmArchiver {
@@ -240,7 +241,7 @@
for (Map.Entry<PixelleComponent, String> component : algorithm.getValue().entrySet()) {
pw.println(" <component name='" + component.getKey().name().toLowerCase() + "'>");
- pw.println(" " + component.getValue());
+ pw.println(" " + XMLEncoder.xmlEncode(component.getValue()));
pw.println(" </component>");
}
pw.println(" </algorithm>");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|