commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r608635 - /commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/io/SCXMLSerializer.java
Date Thu, 03 Jan 2008 21:25:47 GMT
Author: rahul
Date: Thu Jan  3 13:25:46 2008
New Revision: 608635

URL: http://svn.apache.org/viewvc?rev=608635&view=rev
Log:
The SCXML namespace is non-negotiable.

Modified:
    commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/io/SCXMLSerializer.java

Modified: commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/io/SCXMLSerializer.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/io/SCXMLSerializer.java?rev=608635&r1=608634&r2=608635&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/io/SCXMLSerializer.java
(original)
+++ commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/io/SCXMLSerializer.java
Thu Jan  3 13:25:46 2008
@@ -74,6 +74,9 @@
     private static final String INDENT = " ";
     /** The JAXP transformer. */
     private static final Transformer XFORMER = getTransformer();
+    /** The SCXML namespace. */
+    private static final String NAMESPACE_SCXML =
+        "http://www.w3.org/2005/07/scxml";
 
     /**
      * Serialize this SCXML object (primarily for debugging).
@@ -85,7 +88,7 @@
     public static String serialize(final SCXML scxml) {
         StringBuffer b =
             new StringBuffer("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n").
-                append("<scxml xmlns=\"").append(scxml.getXmlns()).
+                append("<scxml xmlns=\"").append(NAMESPACE_SCXML).
                 append("\" version=\"").append(scxml.getVersion()).
                 append("\" initialstate=\"").append(scxml.getInitialstate()).
                 append("\">\n");



Mime
View raw message