2004.04.29


com.jdc.xml
Class XmlFormat

java.lang.Object
  |
  +--com.jdc.xml.XmlFormat

public class XmlFormat
extends Object

XmlFormat formats an XML document String..

Version:
1.0
Author:
Jay Damon
See Also:
ComplexTag, ObjectXml

Constructor Summary
XmlFormat()
          Constructs a new XmlFormat object.
 
Method Summary
 String format(String xml)
          Formats an XML document String.
static void main(String[] args)
          Executes the unit tests for the XmlFormat class.
 XmlFormat setIndentationLevel(int indentationLevel)
           
 XmlFormat setIndentationLevel(String indentationLevelSpacing)
           
 XmlFormat setIndentationSpacing(String indentationSpacing)
           
 XmlFormat setRemoveSpace()
           
 String[] toArray(String xml)
          Formats an XML document into a String array
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlFormat

public XmlFormat()
Constructs a new XmlFormat object.

Method Detail

format

public String format(String xml)
Formats an XML document String.


setRemoveSpace

public XmlFormat setRemoveSpace()

setIndentationLevel

public XmlFormat setIndentationLevel(int indentationLevel)

setIndentationLevel

public XmlFormat setIndentationLevel(String indentationLevelSpacing)

setIndentationSpacing

public XmlFormat setIndentationSpacing(String indentationSpacing)

toArray

public String[] toArray(String xml)
Formats an XML document into a String array


main

public static void main(String[] args)
Executes the unit tests for the XmlFormat class.


2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.