Esri Geoportal Server
1.0

com.esri.gpt.framework.xml
Class XmlCleaner

java.lang.Object
  extended by com.esri.gpt.framework.xml.XmlCleaner

public class XmlCleaner
extends Object

Cleans comments, new-lines and namespaces from an XML string.


Constructor Summary
XmlCleaner()
          Default constructor.
 
Method Summary
 String clean(String xml)
          Cleans an XML string.
 String polishCDataSections(String xml)
          Polishes CDATA sections within an xml string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlCleaner

public XmlCleaner()
Default constructor.

Method Detail

clean

public String clean(String xml)
Cleans an XML string.
Comments, new-lines and namespaces are removed.

Parameters:
xml - the string to modify
Returns:
the modified string

polishCDataSections

public String polishCDataSections(String xml)
Polishes CDATA sections within an xml string.

Parameters:
xml - the string to modify
Returns:
the modified string

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.