XMLInputStream xinput = xobj.newXMLInputStream();
while (xinput.hasNext())
{
if (xinput.peek().isStartElement())
break;
xinput.skip();
}
UnmarshalContext context = new UnmarshalContext();
Object[] result = (Object[])messagePlan.unmarshal(xinput, context);
context.complete();