public class ERXML extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ERXML.Attr
Attr represents a key-value pair attribute of an element.
|
static class |
ERXML.CDATA
CDATA represents a CDATA section of your document.
|
static class |
ERXML.Comment
Comment represents a Comment section of the document.
|
static class |
ERXML.Content
Content is the abstract superclass of all Nodes that have text content.
|
static class |
ERXML.Declaration
Declaration represents an XML declaration (the <? ...
|
static class |
ERXML.Doc
Doc represents the top level XML Document object, and is typically the first object you will make when building.
|
static class |
ERXML.E
E represents an element of the XML document, which can
have attributes and children nodes.
|
static class |
ERXML.Item
Item is the base class of everything that can appear in an XML document.
|
static class |
ERXML.Node
Node is the abstract superclass of all Node items in a Document.
|
static class |
ERXML.Text
Text represents a bare text node.
|
static interface |
ERXML.Visitor
Visitor is an interface that can be passed to the visit
method of any XML.Item to walk the DOM.
|
Modifier and Type | Field and Description |
---|---|
static com.webobjects.foundation.NSTimestamp |
versionDate
Version ID
|
Constructor and Description |
---|
ERXML() |
Modifier and Type | Method and Description |
---|---|
static ERXML.Attr |
a(String name,
String value)
Creates and returns a new attribute.
|
static ERXML.CDATA |
cdata(String cdata)
Creates and returns a new cdata node.
|
static ERXML.Comment |
comment(String comment)
Creates and returns a new comment node.
|
static ERXML.Declaration |
declaration(String version,
String encoding)
Creates and returns a new Declaration.
|
static ERXML.Doc |
doc()
Creates and returns a new Document.
|
static ERXML.Doc |
doc(Document w3cDocument)
Converts a W3C Document into an XML.Doc.
|
static ERXML.Doc |
doc(ERXML.Item... children)
Creates and returns a new Document.
|
static ERXML.Doc |
doc(File file)
Creates and return a document parsed from the given file.
|
static ERXML.Doc |
doc(Reader reader)
Creates and return a document parsed from the given reader.
|
static ERXML.Doc |
doc(String documentString)
Creates and return a document parsed from the given string.
|
static ERXML.E |
e(Element w3cElement)
Converts a W3C Element into an XML.E.
|
static ERXML.E |
e(String name)
Creates and returns a new Element.
|
static ERXML.E |
e(String name,
Object... children)
Creates and returns a new Element.
|
static ERXML.E |
e(String name,
String text)
Creates and returns a new Element.
|
static ERXML.Text |
text(String text)
Creates and returns a new text node.
|
public static final com.webobjects.foundation.NSTimestamp versionDate
public static ERXML.Doc doc()
public static ERXML.Doc doc(String documentString)
documentString
- the string to parse as XMLpublic static ERXML.Doc doc(Reader reader)
reader
- the reader to parse frompublic static ERXML.Doc doc(File file)
file
- the file to parse frompublic static ERXML.E e(Element w3cElement)
w3cElement
- the W3C Elementpublic static ERXML.Doc doc(Document w3cDocument)
w3cDocument
- the W3C Documentpublic static ERXML.Doc doc(ERXML.Item... children)
children
- the children to add to the documentpublic static ERXML.Declaration declaration(String version, String encoding)
version
- the version of the declarationencoding
- the encoding of the declarationpublic static ERXML.E e(String name)
name
- the name of the elementpublic static ERXML.E e(String name, Object... children)
name
- the name of the elementchildren
- the children to add to this element (String, XML.Node, or XML.Attr)public static ERXML.E e(String name, String text)
name
- the name of the elementtext
- the text of the elementpublic static ERXML.Attr a(String name, String value)
name
- the name of the attributevalue
- the value of the attributepublic static ERXML.Text text(String text)
text
- the text of the nodepublic static ERXML.CDATA cdata(String cdata)
cdata
- the text of the cdata nodepublic static ERXML.Comment comment(String comment)
comment
- the text of the comment nodeCopyright © 2002 – 2020 Project Wonder.