PullParser2.1.10/ 0000755 0001750 0001750 00000000000 10232453525 014032 5 ustar wbaer wbaer 0000000 0000000 PullParser2.1.10/doc/ 0000755 0001750 0001750 00000000000 10232455233 014575 5 ustar wbaer wbaer 0000000 0000000 PullParser2.1.10/doc/ABOUT.txt 0000644 0001750 0001750 00000000271 07755336263 016231 0 ustar wbaer wbaer 0000000 0000000 Xml Pull Parser 2
for more information please see:
http://www.extreme.indiana.edu/soap/xpp
Copyright (c) 2001 Extreme! Lab, Indiana University License
http://www.extreme.indiana.edu
PullParser2.1.10/doc/build.html 0000644 0001750 0001750 00000002153 07755336263 016604 0 ustar wbaer wbaer 0000000 0000000
Building Pull Parser 2
Building Pull Parser 2
NOTE: XPP2 distribution already
contains JAR files and precompiled samples so building
is not necessary unless you make changes to XPP2.
First check requirements
Make sure to have JUnit to compile tests
- JUnit 3.7 JAR is included in lib directory so just add it to CLASSPATH
set CLASSPATH=lib\junit37.jar
To build everything from scratch call ant in top level directory
(build everything except J2ME -
see seaprate instructions)
ant all
and to build only modified files
ant
TO build J2ME samples see a separate document.
[Back To Pull Parser 2 Documentation]
Aleksander Slominski
PullParser2.1.10/doc/changes.html 0000644 0001750 0001750 00000020227 07755336265 017121 0 ustar wbaer wbaer 0000000 0000000
Pull Parser 2 Changes
Changes to Pull Parser 2 (XPP2)
2004- (XPP_2_1_11)
- final maintenance release?
2003-11-15 (XPP_2_1_10)
- [2003/9/4] fixed CDATA bug reported by Timo Thomas: Tokenizer class was
making assumption that pc[] is always equal in size to buf[] but this did not
hold in case when appending chunks of CDATA content (and not one character by
one character ...) refactored to encapsulate all System.arrayCopy calls with
extra checks to deal with this situation
- added check to addDeclaredNamespaces to prevent adding of conflicting
namespace declarations for the same prefix in the XML node
- added equals() and hashCode() to implementation of Tag/StartTag/Node
and added unit tests for it
- fixed bug in CDATA handling in Tokenizer reported by Nikhil C. Khedkar and
added Junit test for it
2003-03-07 (XPP_2_1_9)
- added standard JAR output that has no JAXP11 or SAX2 driver as requested by Ben Walding
who wanted to be able to use JAXP11 parser and XPP2 and not worry about conflicts in CLASSPATH ..
- fixed bug in XmlNode.removeAttributeBy* that was showing if the attribute
was first removed and then added - slot at position n in attribute array
was incorrectly pointing to the same location as slot n-1 ...
- changed readName to be more XML 1.0 and 1.1 compatible to allow full range of possible name characters
and not rely on Java Character.isLower/uppercase ...
- NOTE: backward incompatible change:
fixed typo in method XmlStartTag.removeAtttributes -> removeAttributes name reported by Yogesh
- added to XmlStartTag two new methods: removeAttributeByName(String uri,
String localName) and removeAttributeByRawName(String rawName)
- compiled and tested against latest Xerces 2 from CVS (bug with duplicated xmlns seems to be fixed in X2 CVS)
- improved X2 cumulative reader to correctly support un-shrinkable buffer
2002-04-03 (XPP_2_1_8)
- fixed a bug in tokenizer: it was trying always to fill buffer even though one byte
was still available - now it will use buffer to the end and then read new chunk from Reader
- updated XPP2 implementation to compile with patched latest Xerces2.0.1
-
added build and run scripts (finally ...)
2001-12-10 (XPP_2_1_7)
- fixed SAX2 driver to correctly report prefixes and better handle
invalid input for parsing
- improved Xerces 2 driver to use Augmentations (working with BETA3 of Xerces2)
2001-11-21 (XPP_2_1_6_ALPHA)
- fixed bug in default implementation of PullParser that prevented
it from reading list of declared namespaces when END_TAG is current event
- added SAX2 driver that translates pull events into SAX2 push callbacks
- added JAXP11 driver (based on code from Xerces 2 except for minimal changes)
2001-11-20 (XPP_2_1_5_ALPHA)
- split XmlPullParser interface into proper XmlPullParser
and separate "feature" interfaces
XmlPullParserBufferControl and XmlPullParserEventPosition
that clearly mark optional interfaces.
NOTE: for XmlPullParser pp
use if(pp instanceof XmlPullParserBufferControl)
to check if an optional interface is implemented by pull parser
2001-10-18 (VER_2_1_4_ALPHA)
- X2 driver is no integrated with latest Xerces 2 XNI
and the problem with EOL normalization is gone however there is
another problem related to attribute value normalization - reported
to Xerces 2 mailing list.
- added more tests and removed some namespace bugs
2001-10-18 (VER_2_1_3_ALPHA)
- X2 driver is becoming quite stable and passes almost all tests
except two reported bugs in Xerces 2 and lack of support for
low level parsing (control of input buffer and event position):
- [major] handling of end-of-line normalization is incosistent with XML
spec ... (commented out checks in testNormalizeLine() from ParserTest for
now)
- [minor] apparently Xerces allows duplicate attribute with namespaces to
be declared (commented one line checking it in testAttribUniq from
ParserTest for now)
- it is also very easy to switch between X2 driver and default XPP2 driver
implementation or even control it by system property (similarly to JAXP).
when both drivers are on CLASSPATH normally first on CLASSPATH will be
used but the selection can be forced with system property by writing:
XmlPullParserFactory.newInstance(System.getProperty(XmlPullParserFactory.DEFAULT_PROPERTY_NAME));
2001-10-10 (VER_2_1_2_ALPHA)
- a first milestone towards support of other parser engines
in XPP2 and SAX2 driver. initial X2 driver can run simple count
sample but does not pass internal XPP2 unit tests (yet!)
2001-08-20 (XPP_VER_2_0_2 is the same as VER_2_0_1_BETA8)
Stable 2.0.2 version released and frozen!
Summary of changes since initial 2.x version:
- reduced memory footprint of node tree by 50% (both Node and PullNode),
- increased performance tree node build by 20%
- improved and optimized output (Formatter and Recorder)
- much more of JUnit tests
- added PalmOS Midlet sample
- small changes and improvement in API
- fixed few bugs ...
2001-08-20 (VER_2_0_1_BETA8)
- fixed bug that prevented to add first attribute
to StartTag (ensureCapacity called with 2*size where size == 0 ... )
reported by Dennis Sosnoski.
bug was introduced when fine tuning memory footprint in BETA6...
- XmlPullNode.getPullParser() will now
correctly parse unfinished children before returning parser,
add JUnit tests...
- changed XmlPullParser.getCurrentEvent() to getEventType()
- switch to use in build.xml tar/gzip instead of zip
(much smaller output archive!)
2001-08-19 (VER_2_0_1_BETA7)
- changed Node implementation to use
smaller Vector of initial size 4 and increment of 4
- pull parser is no longer reporting "" content
2001-08-18 (VER2_0_1_BETA6)
- reduced by half tree node memory
footprint by avoiding placeholder attributes
(XmlNode and XmlPullNode)
- rearranged XPP2 implementation into separate packages:
node, tag, pullnode, tokenizer, pullparser,
format
- fixed duplicate calls to readNodeWithoutChildren(...)
in PullNode (when constructing and just after that)
- added XmlStartTag.isAttributeNamespaceDeclaration()
to allow to avoid duplicating namespace declaration attributes
in Recorder/Formatter output when pull parser is returning
all attributes setNamespaceAttributesReporting(true)
2001-08-16 (VER_2_0_1_BETA5)
- Recorder will no longer print default namespace declaration
on top level element as it is default in XML anyway
(so no xmlns="" output)
- empty nodes will be output by Recorder as empty elements (ex. <empty/>)
- escaping \t and \n in attributes
to preserve attributes values against normalization
- during parsing when constructing Node and PullNode
empty strings ("") will not be added as children
(they are not needed and we can save some memory)
2001-08-16 (VER_2_0_1_BETA4)
- fixed bug reported by Dennis Sosnoski in implementation of Node
that incorrectly reported getChildAt(0) when removeChildrenAt(0) was called before
2001-08-15 (VER_2_0_1_BETA3)
- added Palm OS MIDP built target for generating PRC, updated J2ME doc
with sample screen dumps
2001-08-14 (VER_2_0_1_BETA2)
- fixed bug reported by Dennis Sosnoski that caused Formatter
to recursively escape XML
2001-08-12 (VER_2_0_1_BETA)
- worked out J2ME build quirks and got XppCountMidlet to run - finally...
- finished PullNode implementation
[Back To Pull Parser 2 Documentation]
Aleksander Slominski
PullParser2.1.10/doc/dump1_sample_xml_input.jpg 0000644 0001750 0001750 00000052534 07755336261 022015 0 ustar wbaer wbaer 0000000 0000000 WANG2 JFIF C
(1#%(:3=<9387@H\N@DWE78PmQW_bghg>Mqypdx\egc C//cB8Bcccccccccccccccccccccccccccccccccccccccccccccccccc !
} !1AQa"q2#BR$3br
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz
w !1AQaq"2B #3Rbr
$4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ? {uѧ[H-y'8QAmH1ih1z9'%˖)i}SzwE-[RԴ"Pg(T1\ ǜǿZ2O Gkjt8Tnq