01: /*
02: * Created on Jan 29, 2004
03: *
04: * To change the template for this generated file go to
05: * Window>Preferences>Java>Code Generation>Code and Comments
06: */
07: package org.xdev.base.xssl.text.xml;
08:
09: import java.util.HashMap;
10:
11: import org.jdom.Element;
12: import org.jdom.output.XMLOutputter;
13: import org.xdev.base.xssl.XSSLReturn;
14:
15: /**
16: * @author AYegorov
17: *
18: * To change the template for this generated type comment go to
19: * Window>Preferences>Java>Code Generation>Code and Comments
20: */
21: public class XmlOutput extends AbstractXmlElement {
22: /**
23: * @param id
24: */
25: public XmlOutput(String id) {
26: super (id);
27: // XXX Auto-generated constructor stub
28: }
29:
30: /**
31: * @param id
32: * @param properties
33: */
34: public XmlOutput(String id, HashMap properties) {
35: super (id, properties);
36: // XXX Auto-generated constructor stub
37: }
38:
39: /* (non-Javadoc)
40: * @see org.xdev.base.xssl.text.xml.AbstractXmlElement#doXmlTransaction(org.jdom.Element)
41: */
42: protected Object doXmlTransaction(Element elm) throws Exception {
43: XMLOutputter out = new XMLOutputter();
44:
45: this .logDebug("Outputting element: " + elm);
46:
47: return elm != null ? out.outputString(elm) : "";
48: }
49: }
|