fun toString(codeset: String?): String { val retVal = StringBuffer() for (i in 0 until prolog.size()) { val e: ConcreteElement = prolog.elementAt(i) as ConcreteElement retVal.append(e.toString(getCodeset()) + "\n") } if (content != null) retVal.append(content.toString(getCodeset()) + "\n") return versionDecl + retVal.toString() }
Override toString so it prints something useful