public DTDInfo getDTDInfo() throws XMLStreamException { if (getEventType() != DTD) { return null; } return this; }
public DTDInfo getDTDInfo() throws XMLStreamException { if (getEventType() != DTD) { return null; } return this; }
public DTDInfo getDTDInfo() throws XMLStreamException { if (getEventType() != DTD) { return null; } return this; }
public DTDInfo getDTDInfo() throws XMLStreamException { if (getEventType() != DTD) { return null; } return this; }
/** * @return Number of open elements in the stack; 0 when parser is in * prolog/epilog, 1 inside root element and so on. */ public int getDepth() { /* 16-Jun-2008, tatus: Need to compensate for the fact * that END_ELEMENT decrements "too early" */ if (getEventType() == END_ELEMENT) { return mDepth+1; } return mDepth; }
/** * @return Number of open elements in the stack; 0 when parser is in * prolog/epilog, 1 inside root element and so on. */ public int getDepth() { /* 16-Jun-2008, tatus: Need to compensate for the fact * that END_ELEMENT decrements "too early" */ if (getEventType() == END_ELEMENT) { return mDepth+1; } return mDepth; }
/** * @return Number of open elements in the stack; 0 when parser is in * prolog/epilog, 1 inside root element and so on. */ public int getDepth() { /* 16-Jun-2008, tatus: Need to compensate for the fact * that END_ELEMENT decrements "too early" */ if (getEventType() == END_ELEMENT) { return mDepth+1; } return mDepth; }
/** * @return Number of open elements in the stack; 0 when parser is in * prolog/epilog, 1 inside root element and so on. */ public int getDepth() { /* 16-Jun-2008, tatus: Need to compensate for the fact * that END_ELEMENT decrements "too early" */ if (getEventType() == END_ELEMENT) { return _depth+1; } return _depth; }
public AttributeInfo getAttributeInfo() throws XMLStreamException { if (getEventType() != START_ELEMENT) { throwNotStartElem(getEventType()); } return this; }
public AttributeInfo getAttributeInfo() throws XMLStreamException { if (getEventType() != START_ELEMENT) { throwNotStartElem(); } return this; }
public AttributeInfo getAttributeInfo() throws XMLStreamException { if (getEventType() != START_ELEMENT) { throwNotStartElem(); } return this; }
public AttributeInfo getAttributeInfo() throws XMLStreamException { if (getEventType() != START_ELEMENT) { throwNotStartElem(); } return this; }
/** * @return Internal subset portion of the DOCTYPE declaration, if any; * empty String if none */ public String getDTDInternalSubset() { /* According to basic Stax API, getText() <b>should</b> return * the internal subset. Not all implementations agree, so * this may or may not work. */ if (getEventType() == XMLStreamConstants.DTD) { return getText(); } return null; }
/** * @return Internal subset portion of the DOCTYPE declaration, if any; * empty String if none */ public String getDTDInternalSubset() { /* According to basic Stax API, getText() <b>should</b> return * the internal subset. Not all implementations agree, so * this may or may not work. */ if (getEventType() == XMLStreamConstants.DTD) { return getText(); } return null; }
/** * @return Internal subset portion of the DOCTYPE declaration, if any; * empty String if none */ public String getDTDInternalSubset() { /* According to basic Stax API, getText() <b>should</b> return * the internal subset. Not all implementations agree, so * this may or may not work. */ if (getEventType() == XMLStreamConstants.DTD) { return getText(); } return null; }
/** * As per [WSTX-254], must override and add handling for depth calculation here. */ public String getElementText() throws XMLStreamException { /* Should not succeed (as per specs) if not pointing to START_ELEMENT, but just in * case some impls are more lenient, let's verify... */ boolean hadStart = (getEventType() == XMLStreamConstants.START_ELEMENT); String text = super.getElementText(); if (hadStart) { --_depth; } return text; }
/** * @return Internal subset portion of the DOCTYPE declaration, if any; * empty String if none */ public String getDTDInternalSubset() { /* According to basic Stax API, getText() <b>should</b> return * the internal subset. Not all implementations agree, so * this may or may not work. */ if (getEventType() == XMLStreamConstants.DTD) { return getText(); } return null; }
public void skipElement() throws XMLStreamException { if (getEventType() != START_ELEMENT) { throwNotStartElem(); } int nesting = 1; // need one more end elements than start elements while (true) { int type = next(); if (type == START_ELEMENT) { ++nesting; } else if (type == END_ELEMENT) { if (--nesting == 0) { break; } } } }
public void skipElement() throws XMLStreamException { if (getEventType() != START_ELEMENT) { throwNotStartElem(); } int nesting = 1; // need one more end elements than start elements while (true) { int type = next(); if (type == START_ELEMENT) { ++nesting; } else if (type == END_ELEMENT) { if (--nesting == 0) { break; } } } }
public void skipElement() throws XMLStreamException { if (getEventType() != START_ELEMENT) { throwNotStartElem(); } int nesting = 1; // need one more end elements than start elements while (true) { int type = next(); if (type == START_ELEMENT) { ++nesting; } else if (type == END_ELEMENT) { if (--nesting == 0) { break; } } } }