Example usage for Java javax.xml.stream XMLEventFactory fields, constructors, methods, implement or subclass
The text is from its open source code.
Attribute | createAttribute(String localName, String value) Create a new Attribute |
Attribute | createAttribute(QName name, String value) Create a new Attribute |
Attribute | createAttribute(String prefix, String namespaceURI, String localName, String value) Create a new Attribute |
Characters | createCharacters(String content) Create a Characters event, this method does not check if the content is all whitespace. |
DTD | createDTD(String dtd) Create a document type definition event This string contains the entire document type declaration that matches the doctypedecl in the XML 1.0 specification |
EndDocument | createEndDocument() Creates a new instance of an EndDocument event |
EndElement | createEndElement(String prefix, String namespaceUri, String localName) Create a new EndElement |
EndElement | createEndElement(QName name, Iterator extends Namespace> namespaces) Create a new EndElement |
Characters | createIgnorableSpace(String content) Create an ignorable space |
Namespace | createNamespace(String prefix, String namespaceUri) Create a new Namespace |
Namespace | createNamespace(String namespaceURI) Create a new default Namespace |
Characters | createSpace(String content) Create a Characters event with the isSpace flag set to true |
StartDocument | createStartDocument(String encoding, String version) Creates a new instance of a StartDocument event |
StartDocument | createStartDocument() Creates a new instance of a StartDocument event |
StartElement | createStartElement(String prefix, String namespaceUri, String localName, Iterator extends Attribute> attributes, Iterator extends Namespace> namespaces) Create a new StartElement. |
StartElement | createStartElement(QName name, Iterator extends Attribute> attributes, Iterator extends Namespace> namespaces) Create a new StartElement. |
StartElement | createStartElement(String prefix, String namespaceUri, String localName) Create a new StartElement. |
StartElement | createStartElement(String prefix, String namespaceUri, String localName, Iterator extends Attribute> attributes, Iterator extends Namespace> namespaces, NamespaceContext context) Create a new StartElement. |
XMLEventFactory | newFactory() Create a new instance of the factory. |
XMLEventFactory | newInstance() Creates a new instance of the factory in exactly the same manner as the #newFactory() method. |
void | setLocation(Location location) This method allows setting of the Location on each event that is created by this factory. |