예제 #1
0
  public byte[] asByteArray(Object xml, Object xslt, Map<String, String> properties)
      throws Exception {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    XsltUtil.transform(xml, xslt, baos, properties);

    return baos.toByteArray();
  }
예제 #2
0
 public Node asXml(Object xml, Object xslt) throws Exception {
   Node node = XmlUtil.newXml();
   XsltUtil.transform(xml, xslt, node);
   return node;
 }
예제 #3
0
  public byte[] asByteArray(Object xml, Object xslt) throws Exception {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    XsltUtil.transform(xml, xslt, baos);

    return baos.toByteArray();
  }
예제 #4
0
 public Node asXml(Object xml, Object xslt, Map<String, String> properties) throws Exception {
   Node node = XmlUtil.newXml();
   XsltUtil.transform(xml, xslt, node, properties);
   return node;
 }