Java Code Examples for org.xmlunit.builder.Input#fromString()

The following examples show how to use org.xmlunit.builder.Input#fromString() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Transform.java    From xmlunit with Apache License 2.0 2 votes vote down vote up
/**
 * Create a transformation using String input XML and String stylesheet
 * @param input
 * @param stylesheet
 */
public Transform(String input, String stylesheet) {
    this(input == null ? null : Input.fromString(input),
         stylesheet == null ? null : Input.fromString(stylesheet));
}
 
Example 2
Source File: Transform.java    From xmlunit with Apache License 2.0 2 votes vote down vote up
/**
 * Create a transformation using String input XML and stylesheet in a File
 * @param input
 * @param stylesheet
 */
public Transform(String input, File stylesheet) {
    this(input == null ? null : Input.fromString(input),
         stylesheet == null ? null : Input.fromFile(stylesheet));
}
 
Example 3
Source File: Transform.java    From xmlunit with Apache License 2.0 2 votes vote down vote up
/**
 * Create a transformation from an input Node and stylesheet in a String
 * @param sourceNode
 * @param stylesheet
 */
public Transform(Node sourceNode, String stylesheet) {
    this(sourceNode == null ? null : Input.fromNode(sourceNode),
         stylesheet == null ? null : Input.fromString(stylesheet));
}