public class Saplings
extends java.lang.Object
SaplingNode| Modifier and Type | Method and Description |
|---|---|
static SaplingComment |
comment(java.lang.String value)
Create a sapling comment node, with a given string value
|
static SaplingDocument |
doc()
Create a sapling document node, with no children
|
static SaplingDocument |
doc(java.lang.String baseUri)
Create a sapling document node with a specified base URI, with no children
|
static SaplingElement |
elem(QName qName)
Create a sapling element node, which may or may not be in a namespace, with no attributes and no children
|
static SaplingElement |
elem(java.lang.String name)
Create a sapling element node, in no namespace, with no attributes and no children
|
static SaplingProcessingInstruction |
pi(java.lang.String target,
java.lang.String data)
Create a sapling processing instruction node, with a given name and string value
|
static SaplingText |
text(java.lang.String value)
Create a sapling text node, with a given string value
|
public static SaplingDocument doc()
public static SaplingDocument doc(java.lang.String baseUri)
baseUri - the base URI of the documentpublic static SaplingElement elem(java.lang.String name)
name - the local name of the element node. This must be a valid NCName, but the
current implementation does not check this.public static SaplingElement elem(QName qName)
qName - the qualified name of the element. The current implementation does not check that the
parts of the qualified name are syntactically valid.public static SaplingText text(java.lang.String value)
value - the string value of the text nodepublic static SaplingComment comment(java.lang.String value)
value - the string value of the comment node. This must not contain "--" as a substring,
but the current implementation does not check this.public static SaplingProcessingInstruction pi(java.lang.String target, java.lang.String data)
target - the target (name) of the processing instruction. This must be a valid NCName,
but the current implementation does not check this.data - the string value of the processing instruction node. This must not contain "?>" as a substring,
but the current implementation does not check this.Copyright (c) 2004-2020 Saxonica Limited.