a76b64ab7f0ece60b794af13154d4150ca0170fa |
19-Feb-2010 |
Jesse Wilson <jessewilson@google.com> |
Filling in some gaps in our XML DOM v3 API. Specifically, these methods on Node: - setTextContent() - isSameNode() - lookupPrefix() - lookupNamespaceURI() In order to implement the last 2 I needed to fix our KXml parser to include namespace attributes (ie. xmlns) in the pulled document. Previously these were being elided. Added a new testcase to verify our behaviour. It passes the RI. On Dalvik we have a small issue with entity declarations. Added a new testcase to verify Node.getBaseURI(). This test fails because the method isn't implemented. Part of this test required moving a method out to Support_Resources.java; in order to verify the BaseURI the XML must be read from a file and not a stream (so that path information exists). Also... - Style cleanup: changing static calls to look like static calls. - Efficiency: avoiding concatenating with "" when unnecessary - Duplication: sharing prefix validation between attributes and elements - Renaming NodeTests to NodeTest for vogar-friendliness Outstanding: - I need to write a test for setTextContent().
ttr.java
|
dc9ca2a15d62c3d76e187baf6369dacb684fe54b |
12-Feb-2010 |
Jesse Wilson <jessewilson@google.com> |
Removing unnecessary org.w3c.dom subpackages
vents/DocumentEvent.java
vents/Event.java
vents/EventException.java
vents/EventListener.java
vents/EventTarget.java
vents/MouseEvent.java
vents/MutationEvent.java
vents/UIEvent.java
s/LSLoadEvent.java
s/LSProgressEvent.java
s/LSSerializer.java
s/LSSerializerFilter.java
raversal/DocumentTraversal.java
raversal/NodeFilter.java
raversal/NodeIterator.java
raversal/TreeWalker.java
iews/AbstractView.java
iews/DocumentView.java
|
4c7a0d97cf2b27790e6236965a1d798d710d7ec7 |
27-Jan-2010 |
Jesse Wilson <jessewilson@google.com> |
Bring our XML APIs up to date with Java 5. New packages for Java 5 compatiblity: - javax.xml.datatype - javax.xml.namespace - javax.xml.parsers (updated) - javax.xml.transform - javax.xml.transform.dom - javax.xml.transform.sax - javax.xml.transform.stream - javax.xml.validation - javax.xml.xpath - org.w3c.dom (updated) - org.w3c.dom.events - org.w3c.dom.ls (load/save) - org.w3c.dom.traversal - org.w3c.dom.views Omitted packages (that otherwise exist in Java 5) - org.w3c.dom.bootstrap. This package facilitates pluggable implementations of DOM. I'm not including this because there's little need for it in practice; and because it adds an unnecessary layer of complexity. This decision is also reflected in TransformerFactory.newInstance(), SAXParserFactory.newInstance(), and DocumentBuilderFactory.newInstance(). New packages that pseudo-exist in Java 5 - org.w3c.dom.traversal This package is referenced by Java 5's org.w3c.dom.ls.LSSerializerFilter, but isn't included in the Javadoc API. Their spec isn't self-consistent. - org.w3c.dom.views This package is referenced by Java 5's org.w3c.dom.events.MouseEvent, but isn't included in the Javadoc API. Another spec that isn't self-consistent. This upgrades DOM from v2 to v3. http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/ This includes some API-incompatible changes; notably introducing new methods into interfaces. I believe this is still safe, and Java made a similar backwards incompatible change when they upgraded DOM from v2 to v3 between Java 1.4 and Java 5.0. Source for the new APIs comes from Apache XML commons. http://svn.apache.org/repos/asf/xml/commons/trunk rev 901014. This code currently contains several gaps in its implementation. In particular, the impelementations of the DOM model classes (AttrImpl, ElementImpl, NodeImpl) have DOM v3 methods that throw UnsupportedOperationExceptions. I intend to address this problem in an immediate follow-up CL. All gaps are marked with TODO comments, and they all live in the org.apache.harmony.xml.dom package. To implement these APIs, I've included Apache Xalan. In a follow-up change I intend to remove most of the code we don't actually need. I'm using their pristine copy from SVN so Git can track our local modifications. http://svn.apache.org/repos/asf/xalan/java/trunk rev 889881.
ttr.java
DATASection.java
haracterData.java
omment.java
OMConfiguration.java
OMError.java
OMErrorHandler.java
OMException.java
OMImplementation.java
OMImplementationList.java
OMImplementationSource.java
OMLocator.java
OMStringList.java
ocument.java
ocumentFragment.java
ocumentType.java
lement.java
ntity.java
ntityReference.java
ameList.java
amedNodeMap.java
ode.java
odeList.java
otation.java
rocessingInstruction.java
ext.java
ypeInfo.java
serDataHandler.java
vents/DocumentEvent.java
vents/Event.java
vents/EventException.java
vents/EventListener.java
vents/EventTarget.java
vents/MouseEvent.java
vents/MutationEvent.java
vents/UIEvent.java
s/DOMImplementationLS.java
s/LSException.java
s/LSInput.java
s/LSLoadEvent.java
s/LSOutput.java
s/LSParser.java
s/LSParserFilter.java
s/LSProgressEvent.java
s/LSResourceResolver.java
s/LSSerializer.java
s/LSSerializerFilter.java
raversal/DocumentTraversal.java
raversal/NodeFilter.java
raversal/NodeIterator.java
raversal/TreeWalker.java
iews/AbstractView.java
iews/DocumentView.java
|
f6c387128427e121477c1b32ad35cdcaa5101ba3 |
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
ttr.java
DATASection.java
haracterData.java
omment.java
OMException.java
OMImplementation.java
ocument.java
ocumentFragment.java
ocumentType.java
lement.java
ntity.java
ntityReference.java
amedNodeMap.java
ode.java
odeList.java
otation.java
rocessingInstruction.java
ext.java
ackage.html
|
f72d5de56a522ac3be03873bdde26f23a5eeeb3c |
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
ttr.java
DATASection.java
haracterData.java
omment.java
OMException.java
OMImplementation.java
ocument.java
ocumentFragment.java
ocumentType.java
lement.java
ntity.java
ntityReference.java
amedNodeMap.java
ode.java
odeList.java
otation.java
rocessingInstruction.java
ext.java
ackage.html
|
2ad60cfc28e14ee8f0bb038720836a4696c478ad |
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
ttr.java
DATASection.java
haracterData.java
omment.java
OMException.java
OMImplementation.java
ocument.java
ocumentFragment.java
ocumentType.java
lement.java
ntity.java
ntityReference.java
amedNodeMap.java
ode.java
odeList.java
otation.java
rocessingInstruction.java
ext.java
ackage.html
|