Package net.splitcells.dem.lang
Class Xml
- java.lang.Object
-
- net.splitcells.dem.lang.Xml
-
public final class Xml extends Object
Currently XML is used as the base of all documents. If it is not suitable anymore, it will be replaced bynet.splitcells.dem.lang.perspective.PerspectiveDocument
.
-
-
Method Summary
-
-
-
Method Detail
-
document
public static Document document()
-
transformer
public static Transformer transformer()
-
elementWithChildren
public static Element elementWithChildren(NameSpace nameSpace, String name, String value)
-
event
@Deprecated public static Element event(String name, String subject, Node... arguments)
Deprecated.
-
elementWithChildren
public static Element elementWithChildren(String name, NameSpace nameSpace, Node... nodes)
-
elementWithChildren
public static Element elementWithChildren(String name, NameSpace nameSpace, Collection<Node> nodes)
-
elementWithChildren
public static Element elementWithChildren(Element element, Collection<Node> nodes)
-
nameSpaceDecleration
@Deprecated public static Attr nameSpaceDecleration(NameSpace nameSpace)
Deprecated.Namespace declaration is deprecated, because we need an alternative. Currently there is a problem, when creating single elements with certain namespaces.- Parameters:
nameSpace
-- Returns:
-
parse
public static Document parse(InputStream document)
-
directChildElementByName
public static Element directChildElementByName(Element element, String name, NameSpace nameSpace)
-
directChildElementsByName
public static Stream<Element> directChildElementsByName(Element element, String name, NameSpace nameSpace)
-
optionalDirectChildElementsByName
public static Optional<Element> optionalDirectChildElementsByName(Element element, String name, NameSpace nameSpace)
-
-