Java XML String Transform string2Source(String xml)

Here you can find the source of string2Source(String xml)

Description

string Source

License

Apache License

Declaration

public static Source string2Source(String xml) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.StringReader;

import javax.xml.transform.Source;

import javax.xml.transform.stream.StreamSource;

public class Main {
    public static Source string2Source(String xml) {
        System.out.println("xml:" + xml);
        return new StreamSource(new StringReader(xml));
    }/*  w  ww.  j ava 2s  .  c om*/
}

Related

  1. render(String name, byte[] xmldata)
  2. replaceLineSeparatorInternal(String string, String lineSeparator)
  3. save(Node doc, OutputStream stream, String encoding, boolean indent)
  4. signEmbeded(Node doc, String uri, PrivateKey pKey, X509Certificate cert)
  5. String2Doc(String InputXMLString)
  6. stringToNode(String s)
  7. strToSchema(final String strXsd)
  8. toElement(String xml)
  9. toHexString(byte[] array)