Update of /var/cvs/applications/richtext/src/org/mmbase/richtext/processors/xml
In directory 
james.mmbase.org:/tmp/cvs-serv26824/src/org/mmbase/richtext/processors/xml

Modified Files:
        MmxfGetString.java 
Log Message:
Wiki as an example


See also: 
http://cvs.mmbase.org/viewcvs/applications/richtext/src/org/mmbase/richtext/processors/xml


Index: MmxfGetString.java
===================================================================
RCS file: 
/var/cvs/applications/richtext/src/org/mmbase/richtext/processors/xml/MmxfGetString.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- MmxfGetString.java  22 Apr 2008 16:00:49 -0000      1.12
+++ MmxfGetString.java  25 Apr 2008 12:59:22 -0000      1.13
@@ -30,7 +30,7 @@
  * This class implements the `get' for `mmxf' fields.
  *
  * @author Michiel Meeuwissen
- * @version $Id: MmxfGetString.java,v 1.12 2008/04/22 16:00:49 michiel Exp $
+ * @version $Id: MmxfGetString.java,v 1.13 2008/04/25 12:59:22 michiel Exp $
  * @since MMBase-1.8
  */
 
@@ -124,6 +124,7 @@
         try {
             String stringMode = (String) 
node.getCloud().getProperty(Cloud.PROP_XMLMODE);
             int mode = stringMode == null ? Modes.XML : 
Modes.getMode(stringMode);
+            log.debug("mode: " + stringMode);
             switch(mode) {
             case Modes.KUPU: {
                 // this is actually not really used, at the moment is done on 
node.body.jspx
@@ -150,6 +151,7 @@
                 return res.toString();
             }
             case Modes.FLAT: {
+                log.debug("Editing as flat text");
                 Generator generator = getGenerator(node.getCloud());
                 generator.setNamespaceAware(true);
                 generator.add(node, field);
@@ -163,6 +165,7 @@
                 return res.toString();
             }
             case Modes.PRETTYXML: {
+                log.debug("Editing as pretty xml");
                 // get the XML from this thing....
                 // javax.xml.parsers.DocumentBuilderFactory dfactory = 
javax.xml.parsers.DocumentBuilderFactory.newInstance();
                 // javax.xml.parsers.DocumentBuilder dBuilder = 
dfactory.newDocumentBuilder();
@@ -180,6 +183,7 @@
                 return value;
             case Modes.XML:
             default:
+                log.debug("Editing as xml");
                 Document xml = node.getXMLValue(field.getName());
 
                 if(xml != null) {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to