|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.formats.xml.XmlLib
public class XmlLib
Useful XMLish functions.
Copyright 2003-2009 Partner Software, Inc.
| Method Summary | |
|---|---|
static java.lang.String |
escapeAttribute(java.lang.String original)
Replaces reserved XML characters with entity references. |
static java.lang.String |
escapeContent(java.lang.String original)
Replaces reserved XML characters with entity references. |
static java.lang.String |
stripTags(java.lang.String original)
Removes all tags and returns remaining String contents. |
static java.lang.String |
unescape(java.lang.String original)
Replaces entity references for XML reserved characters with their character form. |
static boolean |
validate(java.io.Reader reader)
Validates the given XML stream. |
static boolean |
validate(java.lang.String xml)
Validates the given XML string. |
static boolean |
validate(VfsFile file)
Validates the given XML file. |
static boolean |
validateAgainstSchema(java.io.Reader reader,
VfsFile schemaFile)
Validates the given XML stream against its schema. |
static boolean |
validateAgainstSchema(java.lang.String xml,
VfsFile schemaFile)
Validates the given XML string against a schema. |
static boolean |
validateAgainstSchema(VfsFile file,
VfsFile schemaFile)
Validates the given XML file against a schema. |
static boolean |
validateAgainstSchemas(VfsFile file,
VfsFile... schemaFiles)
Validates the given XML file against a list of schemas. |
static javax.xml.validation.SchemaFactory |
xsdSchemaFactory()
Returns a singleton SchemaFactory for .xsd schemas. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static javax.xml.validation.SchemaFactory xsdSchemaFactory()
public static java.lang.String escapeContent(java.lang.String original)
Currently replaces the following:
public static java.lang.String escapeAttribute(java.lang.String original)
Currently replaces the following:
public static java.lang.String stripTags(java.lang.String original)
original -
public static java.lang.String unescape(java.lang.String original)
public static boolean validate(java.lang.String xml)
throws java.io.IOException
java.io.IOException
public static boolean validate(java.io.Reader reader)
throws java.io.IOException
java.io.IOException
public static boolean validate(VfsFile file)
throws java.io.IOException
java.io.IOException
public static boolean validateAgainstSchema(java.lang.String xml,
VfsFile schemaFile)
throws java.io.IOException
java.io.IOException
public static boolean validateAgainstSchema(java.io.Reader reader,
VfsFile schemaFile)
throws java.io.IOException
java.io.IOException
public static boolean validateAgainstSchema(VfsFile file,
VfsFile schemaFile)
throws java.io.IOException
java.io.IOException
public static boolean validateAgainstSchemas(VfsFile file,
VfsFile... schemaFiles)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||