use of net.sf.saxon.tree.iter.AxisIterator in project sirix by sirixdb.
the class TestNodeWrapper method testGetAttributeValue.
@Test
public void testGetAttributeValue() throws SirixException {
final Processor proc = new Processor(false);
node = new NodeWrapper(new DocumentWrapper(mHolder.getSession(), proc.getUnderlyingConfiguration()), 1);
final AxisIterator iterator = node.iterateAxis(Axis.ATTRIBUTE);
final NodeInfo attribute = (NodeInfo) iterator.next();
node.getNamePool().allocate(attribute.getPrefix(), attribute.getURI(), attribute.getLocalPart());
// Only supported on element nodes.
// node = (NodeWrapper) node.getParent();
assertEquals("j", node.getAttributeValue(attribute.getFingerprint()));
}
Aggregations