}
if (type == null) throw new ParseException("type is not found in prk:component");
int compTagOffset = offsetTagStart;
event = next();
if (event == XMLStreamReader.END_ELEMENT) {
Builder frg = Fragment.create(compTagOffset, Fragment.Type.TAG_EMPTY_ELEMENTS).append(
PrkElement.COMPONENT.name, type);
fragments.addFirst(frg.appendAttrs(attrs).build());
fragments.addFirst(Fragment.create(offsetTagEnd + 1, Fragment.Type.TEXT).build());
return;
}
// <prk:param>
while (event != XMLStreamReader.START_ELEMENT && event != XMLStreamReader.END_ELEMENT) {