|
|||||
|
|
|||||
SupportCommunityDevelopers |
Extensions
ClarificationsIn non-namespace aware mode one should expect getLocalName() to return qname and use getAttributeValue() to pass null namespace (namespaceURI) and null namespaceURI and locaName as qname (localName) to getAttributeValue(java.lang.String namespaceURI, java.lang.String localName) Unofficial ExtensionsRationaleThe biggest reason for adding this functionality is to allow for round-tripping of basic document type declaration information: currently this is not possible to do without using implementation specific functionality. And using XMLStreamReader.getProperty() seems like the only backwards compatible (and gracefully failing) wait to do this: no new methods need to be added, and implementations that do not support these features can return null (Stax javadocs do not indicate that an exception should be thrown for unknown properties; it may be possible that some implementations might consider throwing an IllegalArgumentException). DTD support extensions proposed for JSR 280While in DTD event JSR-173 implementation returns:
List properties accessed as String[] l = (String[]) getProperty("javax.xml.stream.notations");
An alternative is to split:
Additional DTD support (beyond JSR 280)"javax.xml.stream.dtd.resolveURIs" StAX property to control DTD URI expansion. Also needed |
||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
|||||