public class ElementBuilder extends Object
nux.xom.io.StaxParser implements a similar idea.
| Constructor and Description |
|---|
ElementBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static nu.xom.Element |
buildElement(StartElement startElem,
XMLEventReader reader)
Converts the element and subsequent subelements at the reader's current
position into a xom Element tree
|
static nu.xom.Element |
buildElement(XMLStreamReader reader)
Converts the element and subelements at the reader's current position
into a xom Element tree
|
static void |
copyAttributes(StartElement fromElem,
nu.xom.Element toElem) |
static void |
copyAttributes(XMLStreamReader reader,
nu.xom.Element toElem) |
public static nu.xom.Element buildElement(XMLStreamReader reader) throws XMLStreamException
reader - must be in START_ELEMENT stateXMLStreamExceptionpublic static nu.xom.Element buildElement(StartElement startElem, XMLEventReader reader) throws XMLStreamException
startElem - reader - must be just past the START_ELEMENT eventXMLStreamExceptionpublic static void copyAttributes(XMLStreamReader reader, nu.xom.Element toElem)
public static void copyAttributes(StartElement fromElem, nu.xom.Element toElem)
Copyright © 2015 Zanata Project. All rights reserved.