public String getLocalName() { String ln = getCurrentNode().getLocalName(); if (ln == null) { ln = getCurrentNode().getNodeName(); if (ln.indexOf(":") != -1) { ln = ln.substring(ln.indexOf(":") + 1); } } return ln; }
public String getPrefix() { String prefix = getCurrentNode().getPrefix(); if (prefix == null) { String nodeName = getCurrentNode().getNodeName(); if (nodeName.indexOf(":") != -1) { prefix = nodeName.substring(0, nodeName.indexOf(":")); } else { prefix = ""; } } return prefix; }
public String getLocalName() { String ln = getCurrentNode().getLocalName(); if (ln == null) { ln = getCurrentNode().getNodeName(); if (ln.indexOf(":") != -1) { ln = ln.substring(ln.indexOf(":") + 1); } } return ln; }
public String getLocalName() { String ln = getCurrentNode().getLocalName(); if (ln == null) { ln = getCurrentNode().getNodeName(); if (ln.indexOf(":") != -1) { ln = ln.substring(ln.indexOf(":") + 1); } } return ln; }
public String getPrefix() { String prefix = getCurrentNode().getPrefix(); if (prefix == null) { String nodeName = getCurrentNode().getNodeName(); if (nodeName.indexOf(":") != -1) { prefix = nodeName.substring(0, nodeName.indexOf(":")); } else { prefix = ""; } } return prefix; }
public String getNamespaceURI() { String ln = getCurrentNode().getLocalName(); if (ln == null) { ln = getCurrentNode().getNodeName(); if (ln.indexOf(":") == -1) { ln = getNamespaceURI(""); } else { ln = getNamespaceURI(ln.substring(0, ln.indexOf(":"))); } return ln; } return getCurrentNode().getNamespaceURI(); }
public QName getName() { Node el = getCurrentNode(); String prefix = getPrefix(); String ln = getLocalName(); if (prefix == null) { return new QName(el.getNamespaceURI(), ln); } else { return new QName(el.getNamespaceURI(), ln, prefix); } }
public QName getName() { Node el = getCurrentNode(); String prefix = getPrefix(); String ln = getLocalName(); if (prefix == null) { return new QName(el.getNamespaceURI(), ln); } else { return new QName(el.getNamespaceURI(), ln, prefix); } }
public QName getName() { Node el = getCurrentNode(); String prefix = getPrefix(); String ln = getLocalName(); if (prefix == null) { return new QName(el.getNamespaceURI(), ln); } else { return new QName(el.getNamespaceURI(), ln, prefix); } }
@Override protected boolean hasMoreChildren() { if (getCurrentFrame().currentChild == null) { return getCurrentNode().getFirstChild() != null; } return getCurrentFrame().currentChild.getNextSibling() != null; }
@Override protected boolean hasMoreChildren() { if (getCurrentFrame().currentChild == null) { return getCurrentNode().getFirstChild() != null; } return getCurrentFrame().currentChild.getNextSibling() != null; }
@Override protected boolean hasMoreChildren() { if (getCurrentFrame().currentChild == null) { return getCurrentNode().getFirstChild() != null; } return getCurrentFrame().currentChild.getNextSibling() != null; }
public QName getName() { Node el = getCurrentNode(); String prefix = getPrefix(); String ln = getLocalName(); return new QName(el.getNamespaceURI(), ln, prefix); }
public String getText() { if (content instanceof Text) { return ((Text)content).getData(); } else if (content instanceof Comment) { return ((Comment)content).getData(); } return DOMUtils.getRawContent(getCurrentNode()); }
public String getText() { if (content instanceof Text) { return ((Text)content).getData(); } else if (content instanceof Comment) { return ((Comment)content).getData(); } return DOMUtils.getRawContent(getCurrentNode()); }
public String getText() { if (content instanceof Text) { return ((Text)content).getData(); } else if (content instanceof Comment) { return ((Comment)content).getData(); } return DOMUtils.getRawContent(getCurrentNode()); }
public Location getLocation() { try { Object o = getCurrentNode().getUserData("location"); if (o instanceof Location) { return (Location)o; } } catch (Throwable ex) { //ignore, probably not DOM level 3 } return super.getLocation(); }
public Location getLocation() { try { Object o = getCurrentNode().getUserData("location"); if (o instanceof Location) { return (Location)o; } } catch (Throwable ex) { //ignore, probably not DOM level 3 } return super.getLocation(); }
public Location getLocation() { try { Object o = getCurrentNode().getUserData("location"); if (o instanceof Location) { return (Location)o; } } catch (Throwable ex) { //ignore, probably not DOM level 3 } return super.getLocation(); }
public Location getLocation() { try { Object o = getCurrentNode().getUserData("location"); if (o instanceof Location) { return (Location)o; } } catch (Throwable ex) { //ignore, probably not DOM level 3 } return super.getLocation(); }