Sequence seq = Marshaller.demarshall(broker, new StringReader(serialized));
assertTrue(Type.subTypeOf(seq.getItemType(), Type.NODE));
NodeValue n = (NodeValue) seq.itemAt(0);
writer = new StringWriter();
serializer.reset();
serializer.setOutput(writer, new Properties());
n.toSAX(broker, serializer, new Properties());
System.out.println(writer.toString());
} catch (Exception e) {
e.printStackTrace();