throw new IllegalArgumentException("Contains no content");
if (rd.next() == XMLStreamConstants.START_ELEMENT)
break;
}
PomImpl pom = (PomImpl) parseStruct(PomImpl.class, rd);
if (!rd.hasNext())
error("Malformed XML, found element after end: %s", rd.getLocalName());
pom.errors.addAll(getErrors());
pom.warnings.addAll(getWarnings());