port = root.getAttributeValue(_port);
// FIXME: support exclude-inline-prefixes
boolean seenelem = false;
XdmDestination dest = new XdmDestination();
Vector<XdmValue> nodes = new Vector<XdmValue> ();
XdmSequenceIterator iter = root.axisIterator(Axis.CHILD);
while (iter.hasNext()) {
XdmNode child = (XdmNode) iter.next();
if (child.getNodeKind() == XdmNodeKind.ELEMENT) {
if (seenelem) {
throw new IllegalArgumentException("Not a well-formed inline document");