public static class NodeElementTestHelper.DocumentCreater extends Object
This class creates an XML document that contains all features seen in the Extensible Markup Language (XML) 1.1 (Second Edition) as well as the Namespaces in XML 1.1 (Second Edition).
The following figure describes the created test document (see xml/test.xml
). The nodes are
described as follows:
ENode.ROOT_KIND : doc()
ENode.ELEMENT_KIND : <prefix:localPart>
ENode.NAMESPACE_KIND: §prefix:namespaceURI
ENode.ATTRIBUTE_KIND: @prefix:localPart='value'
ENode.TEXT_KIND : #value
0 doc() |- 1 <p:a §p:ns @i='j'> |- 4 #oops1 |- 5 <b> | |- 6 #foo | |- 7 <c> |- 8 #oops2 |- 9 <b @p:x='y'> | |- 11 <c> | |- 12 #bar |- 13 #oops3
Constructor and Description |
---|
NodeElementTestHelper.DocumentCreater() |
Modifier and Type | Method and Description |
---|---|
static void |
create(org.treetank.api.INodeWriteTrx paramWtx)
Create simple test document containing all supported node kinds.
|
public NodeElementTestHelper.DocumentCreater()
public static void create(org.treetank.api.INodeWriteTrx paramWtx) throws org.treetank.exception.TTException
paramWtx
- INodeWriteTrx
to write toorg.treetank.exception.TTException
- if anything weird happensCopyright © 2013. All Rights Reserved.