if (!SEQ_ELEMENT.equals(node.getLocalName()))
{throw new XMLStreamException("Root element should be a " + SEQ_ELEMENT_QNAME);}
final ValueSequence result = new ValueSequence();
final InMemoryNodeSet values = new InMemoryNodeSet();
node.selectChildren(new NameTest(Type.ELEMENT, VALUE_QNAME), values);
for (final SequenceIterator i = values.iterate(); i.hasNext();) {
final ElementImpl child = (ElementImpl) i.nextItem();
final String typeName = child.getAttribute(ATTR_TYPE);
if (typeName != null) {
final int type = Type.getType(typeName);
Item item;