1 50 51 package org.openlaszlo.iv.flash.xml.apache.functions; 52 53 import org.w3c.dom.*; 54 55 import org.apache.xpath.functions.*; 56 import org.apache.xpath.objects.*; 57 import org.apache.xpath.*; 58 import org.apache.xml.serialize.*; 59 60 import java.io.*; 61 62 63 64 67 public class FuncSerialize1 extends Function3Args { 68 69 77 public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException { 78 79 Node node = getArg0().execute(xctxt).nodeset().nextNode(); 80 String method = getArg1().execute(xctxt).str(); 81 int indent = (int) (getArg2().execute(xctxt).num()); 82 83 return FuncSerialize.serialize(node, method, indent); 85 } 86 } 87 88 | Popular Tags |