Java Code Examples for org.apache.commons.lang3.StringEscapeUtils.unescapeXml()

The following are Jave code examples for showing how to use unescapeXml() of the org.apache.commons.lang3.StringEscapeUtils class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: rlc-analyser   File: FilterTest.java   View Source Code Vote up 5 votes
public static Filter sampleFilterWithSingleFields() {
	final String id = "bbd4dfd1-d3bd-43ae-9e23-73c0d1361f29/01113204-c7d1-4d35-ac3f-dda0eed7fbdd";
	final String type = "Batcher";
	final String state = "stConfigured";
	final int priority = -1;
	final List<Property> configuration = Arrays.asList(PropertyTest.sampleProperty());
	final List<Property> generalProperties = Arrays.asList(PropertyTest.sampleProperty());
	final List<Destination> destinations = Arrays.asList(DestinationTest.sampleDestination());
	final String errorOutputId = "bbd4dfd1-d3bd-43ae-9e23-73c0d1361f29/714fbd75-b53f-452e-ba6d-ea4cd940f295";
	final String noMatchOutputId = "bbd4dfd1-d3bd-43ae-9e23-73c0d1361f29/a92248b4-9425-49bf-b24c-09d6ad30134e";
	final String nextDestinations = "&lt;NextDestinations&gt;&lt;Connector&gt;&lt;DestinationId&gt;bbd4dfd1-d3bd-43ae-9e23-73c0d1361f29/098c3c8e-fc00-4e76-97c8-5804aabc27da&lt;/DestinationId&gt;&lt;/Connector&gt;&lt;ErrorConnector&gt;bbd4dfd1-d3bd-43ae-9e23-73c0d1361f29/714fbd75-b53f-452e-ba6d-ea4cd940f295&lt;/ErrorConnector&gt;&lt;/NextDestinations&gt;";
	final String unescapedNextDestinations = StringEscapeUtils.unescapeXml(nextDestinations);
	return filter(id, type, state, priority, configuration, generalProperties, destinations, errorOutputId, noMatchOutputId, unescapedNextDestinations);
}
 
Example 2
Project: framework   File: Encodes.java   View Source Code Vote up 4 votes
/**
 * Xml 解码.
 */
public static String unescapeXml(String xmlEscaped) {
	return StringEscapeUtils.unescapeXml(xmlEscaped);
}
 
Example 3
Project: NEILREN4J   File: Encodes.java   View Source Code Vote up 4 votes
/**
 * Xml 解码.
 */
public static String unescapeXml(String xmlEscaped) {
    return StringEscapeUtils.unescapeXml(xmlEscaped);
}
 
Example 4
Project: opencron   File: Encodes.java   View Source Code Vote up 4 votes
/**
 * Xml 解码.
 */
public static String unescapeXml(String xmlEscaped) {
    return StringEscapeUtils.unescapeXml(xmlEscaped);
}
 
Example 5
Project: ExcelHandle   File: Encodes.java   View Source Code Vote up 4 votes
/**
 * Xml 解码.
 */
public static String unescapeXml(String xmlEscaped) {
    return StringEscapeUtils.unescapeXml(xmlEscaped);
}
 
Example 6
Project: lemon   File: StringUtils.java   View Source Code Vote up 4 votes
public static String unescapeXml(String text) {
    return StringEscapeUtils.unescapeXml(text);
}
 
Example 7
Project: easyweb   File: Encodes.java   View Source Code Vote up 4 votes
/**
 * Xml 解码.
 */
public static String unescapeXml(String xmlEscaped) {
	return StringEscapeUtils.unescapeXml(xmlEscaped);
}
 
Example 8
Project: util   File: EscapeUtil.java   View Source Code Vote up 2 votes
/**
 * Xml转码,XML格式的字符串解码为普通字符串.
 * 
 * 比如 &quot;bread&quot; &amp; &quot;butter&quot; 转化为"bread" & "butter"
 */
public static String unescapeXml(String xml) {
	return StringEscapeUtils.unescapeXml(xml);
}