blob: af11c27d2de110ca3a2112598e4e27736d686b55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/*
* Copyright (c) 2010, Isode Limited, London, England.
* All rights reserved.
*/
/*
* Copyright (c) 2010, Remko Tron¨on.
* All rights reserved.
*/
package com.isode.stroke.serializer.xml;
public class XMLTextNode implements XMLNode {
private final String text_;
public XMLTextNode(String text) {
text_ = text;
text_.replaceAll("&", "&"); // Should come first
text_.replaceAll("<", "<");
text_.replaceAll(">", ">");
}
public String serialize() {
return text_;
}
}
|