/* * 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_; } }