From aec4ccc911516648497d5edcdfdebc228dd0b025 Mon Sep 17 00:00:00 2001 From: "harald.bratko" Date: Wed, 10 Jan 2007 15:17:22 +0000 Subject: Moved method removeXMLDeclaration (multiple occurrences) to StringUtils. git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@761 d688527b-c9ab-4aba-bd8d-4036d912da1d --- common/src/at/gv/egovernment/moa/util/StringUtils.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'common/src') diff --git a/common/src/at/gv/egovernment/moa/util/StringUtils.java b/common/src/at/gv/egovernment/moa/util/StringUtils.java index 0ad5c515c..61b1a18ea 100644 --- a/common/src/at/gv/egovernment/moa/util/StringUtils.java +++ b/common/src/at/gv/egovernment/moa/util/StringUtils.java @@ -145,4 +145,20 @@ public class StringUtils { return retString ; } + /** + * Removes the XML declaration from an XML expression. + * + * @param xmlString XML expression as String + * + * @return XML expression, XML declaration removed + */ + public static String removeXMLDeclaration(String xmlString) { + if (xmlString.startsWith("