IBM User Guide for Java V7 on Windows > Developing Java applications > Using XML > XML reference information
XL XP-J reference information
XL XP-J 1.1 is a high-performance non-validating parser that provides support for StAX 1.0 (JSR 173). StAX is a bidirectional API for pull-parsing and streaming serialization of XML 1.0 and XML 1.1 documents.
Unsupported features
The following optional StAX features are not supported by XL XP-J:
- DTD validation when using an XMLStreamReader or XMLEventReader. The XL XP-J parser is non-validating.
- When using an XMLStreamReader to read from a character stream (java.io.Reader), the Location.getCharaterOffset() method always returns -1. The Location.getCharaterOffset() returns the byte offset of a Location when using an XMLStreamReader to read from a byte stream (java.io.InputStream).
XMLInputFactory reference
The javax.xml.stream.XMLInputFactory implementation supports the following properties, as described in the XMLInputFactory Javadoc information: http://download.oracle.com/javase/7/docs/api/javax/xml/stream/XMLInputFactory.html.
Property name Supported? javax.xml.stream.isValidating No. The XL XP-J scanner does not support validation. javax.xml.stream.isNamespaceAware Yes, supports true and false. For XMLStreamReaders created from DOMSources, namespace processing depends on the methods that were used to create the DOM tree, and this value has no effect. javax.xml.stream.isCoalescing Yes javax.xml.stream.isReplacingEntityReferences Yes. For XMLStreamReaders created from DOMSources, if entities have already been replaced in the DOM tree, setting this parameter has no effect. javax.xml.stream.isSupportingExternalEntities Yes javax.xml.stream.supportDTD True is always supported. Setting the value to false works only if the com.ibm.xml.xlxp.support.dtd.compat.mode system property is also set to false.
When both properties are set to false, parsers created by the factory throw an XMLStreamException when they encounter an entity reference that requires expansion. This setting is useful for protecting against Denial of Service (DoS) attacks involving entities declared in the DTD.
Setting the value to false does not work before Service Refresh 2.
javax.xml.stream.reporter Yes javax.xml.stream.resolver Yes XL XP-J also supports the optional method createXMLStreamReader(javax.xml.transform.Source), which allows StAX readers to be created from DOM and SAX sources.
XL XP-J also supports the javax.xml.stream.isSupportingLocationCoordinates property. If you set this property to true, XMLStreamReaders created by the factory return accurate line, column, and character information using Location objects. If you set this property to false, line, column, and character information is not available. By default, this property is set to false for performance reasons.
XMLStreamReader reference
The javax.xml.stream.XMLStreamReader implementation supports the following properties, as described in the XMLStreamReader Javadoc: http://download.oracle.com/javase/7/docs/api/javax/xml/stream/XMLStreamReader.html.
Property name Supported? javax.xml.stream.entities Yes javax.xml.stream.notations Yes XL XP-J also supports the javax.xml.stream.isInterning property. This property returns a boolean value indicating whether or not XML names and namespace URIs returned by the API calls have been interned by the parser. This property is read-only.
XMLOutputFactory reference
The javax.xml.stream.XMLOutputFactory implementation supports the following properties, as described in the XMLOutputFactory Javadoc: http://download.oracle.com/javase/7/docs/api/javax/xml/stream/XMLOutputFactory.html.
Property name Supported? javax.xml.stream.isRepairingNamespaces Yes XL XP-J also supports the javax.xml.stream.XMLOutputFactory.recycleWritersOnEndDocument property. If you set this property to true, XMLStreamWriters created by this factory are recycled when writeEndDocument() is called. After recycling, some XMLStreamWriter methods, such as getNamespaceContext(), must not be called. By default, XMLStreamWriters are recycled when close() is called. You must call the XMLStreamWriter.close() method when you have finished with an XMLStreamWriter, even if this property is set to true.
XMLStreamWriter reference
The javax.xml.stream.XMLStreamWriter implementation supports the following properties, as described in the XMLStreamWriter Javadoc: http://download.oracle.com/javase/7/docs/api/javax/xml/stream/XMLStreamWriter.html.
Property name Supported? javax.xml.stream.isRepairingNamespaces Yes Properties on XMLStreamWriter objects are read-only.
XL XP-J also supports the javax.xml.stream.XMLStreamWriter.isSetPrefixBeforeStartElement property. This property returns a Boolean indicating whether calls to setPrefix() and setDefaultNamespace() should occur before calls to writeStartElement() or writeEmptyElement() to put a namespace prefix in scope for that element. XL XP-J always returns false; calls to setPrefix() and setDefaultNamespace() should occur after writeStartElement() or writeEmptyElement().
Parent: XML reference information
Error 404 - Not Found Error 404 - Not Found
The document you are looking for may have been removed or re-named. Please contact the web site owner for further assistance.