110111112113114115116117118119120
{ // parent close tag found, we are done break; } if (tag != null && cursor.closes(tag)) { // child tag is closed, next tag is either parent-close or next direct child tag = null; } else if (tag == null && cursor instanceof ComponentTag)
297298299300301302303304305306307
while (markupStream.hasMore()) { final MarkupElement cursor = markupStream.next(); if (cursor.closes(parent)) { // parent close tag found, we are done break; }
303304305306307308309310311312313
298299300301302303304305306307308
304305306307308309310311312313314
93949596979899100101102103
tag.setType(XmlTag.OPEN); XmlTag closeTag = new XmlTag(); closeTag.setType(XmlTag.CLOSE); closeTag.setName(tag.getName()); closeTag.setNamespace(tag.getNamespace()); closeTag.closes(tag); stack.push(new ComponentTag(closeTag)); } }
9596979899100101102103104105