CVS Update: xmlpull-api-v1/doc
Aleksander Andrzej Slominski <[email protected]> Mon, 17 Feb 2003 17:09:08 -0500 (EST)
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <[email protected]> |
aslom 03/02/17 17:09:08
Modified: doc changes.html
Added: doc addons.html
Log:
documentation about addons
Revision Changes Path
1.42 +7 -6 xmlpull-api-v1/doc/changes.html
Index: changes.html
===================================================================
RCS file: /l/extreme/cvspub/xmlpull-api-v1/doc/changes.html,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -b -t -w -r1.41 -r1.42
--- changes.html 16 Oct 2002 20:31:17 -0000 1.41
+++ changes.html 17 Feb 2003 22:09:08 -0000 1.42
@@ -7,7 +7,7 @@
</HEAD>
<BODY BGCOLOR="white">
-<H1>Changes to XMLPULL V1 API</H1><P>
+<H1>Changes to XmlPull V1 API</H1><P>
<h3>IN PROGRESS: <a name="XMLPULL_1_2_1"></a>2002-11-... (XMLPULL_1_2_1)</h3>
<ul>
@@ -17,8 +17,9 @@
<h3>IN PROGRESS INTERIM RELEASE: </h3>
<h3><a name="XMLPULL_1_1_2"></a>2002-10-16 (XMLPULL_1_1_2)</h3>
-
-
+<li>added to addons SAX2 driver,
+removed AttributesCachingDriver but left documented how to achieve this functionality
+<li>added to addons XML RPC implementation
<ul>
<li><b>NOTE:</b> <b>potentially backward incompatible change to nextToken</b>():
@@ -30,7 +31,7 @@
<a href="http://xmlpull.org/v1/doc/features.html#xmldecl-content">XMLDECL CONTENT</a>.
<li>J2ME compatibility issue fixed: changed to use <tt>instanceof</tt> instead
-of class in XmlPullParserFactory
+of .class in XmlPullParserFactory
<li>added to XmlSerializer three new utility methods:
getDepth(), getName(), and getNamespace()
1.1 xmlpull-api-v1/doc/addons.html
Index: addons.html
===================================================================
<html><head>
<title>XmlPull API Addons
</title>
</head>
<body bgcolor="white">
<h1>XmlPull API Addons
</h1>
<h2>What is it?</h2>
<p>Addons are resuable components that built on top of XmlPull API.
</p><p>
All addons can be compiled by build target <code>addons</code>
<a name="sax2">
<h2>SAX2 driver</h2>
</a>
<p>It can be compiled by build target <code>sax2</code>
</p><p>Source code is available in <code>addons/java/sax2_driver</code>.
</p><p>
NOTE: this driver is not going to work in MIDP environments
</p>
<a name="xmlrpc">
<h2>XML RPC parser</h2>
</a>
<p>It can be compiled by build target <code>xmlrpc</code>
</p><p>Source code is available in <code>addons/java/sax2_driver</code>.
</p>
<a name="notes">
<h2>Additional notes</h2>
</a>
<a name="sax2_example">
<h3>How to extend SAX2 driver to provide dsafe to keep Attributes?</h3>
</a>
<p>If you want to extend SAX2 Driver to provides a separate Attributes object
for each startElement call (so it is safe to keep the reference to Attributes)
then create class AttributesCachingDriver that extends current SAX2 driver
(need to do it was requestd by Holger Krug), for example:
</p>
<pre>
import org.xml.sax.SAXException;
import org.xml.sax.helpers.AttributesImpl;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.sax2.Driver;
public class AttributesCachingDriver extends Driver
{
public AttributesCachingDriver() throws XmlPullParserException {
super();
}
public AttributesCachingDriver(XmlPullParser pp) throws XmlPullParserException {
super(pp);
}
/**
* Calls startElement(String, String, String, Attributes) startElement} on the
* ContentHandlerwith copied attribute values. The Attributes object may
* be stored as each call gets a new copy of Attributes.
*/
protected void startElement(String namespace, String localName, String qName) throws SAXException {
contentHandler.startElement(namespace, localName, qName, new AttributesImpl(this));
}
}
</pre>
</p>
<p>
<address><a href="http://www.extreme.indiana.edu/~aslom/">Aleksander Slominski</a>
and <a href="http://www.trantor.de/stefan.haustein/">Stefan Haustein</a>
</address>
</p><hr>
<font size="-1">
Last modified $Id: addons.html,v 1.1 2003/02/17 22:09:08 aslom Exp $
</font>
<!--extra space at bottom for hyperlinks #anchors to work -->
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
<p> <br>
</body></html>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/FpY02D/vN2EAA/xGHJAA/2U_rlB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
[email protected]
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/