-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrun.txt
75 lines (58 loc) · 2.58 KB
/
run.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Running XMLPULL samples
------------------------
Make sure that API and (optionally) all automatic tests are build,
see build.txt file in the same directory for details
To run samples please use provided run script (on Windows run.bat and on UNIX run.sh).
Samples can be run without run script but CLASSPATH needs to be
Before running make sure that JAVA_HOME environment variable points
to your installation of JDK version 1.3 or above.
Before running samples ...
--------------------------
Before running samples automatic tests should be executed using run script
to verify that you have properly installed and running XMLPULL implementation,
NOTE: Make sure to have a jar file with XML PULL API V1 implementation
in lib/impl_xmlpull_v1_api directory (and see build.txt instructions
on how to build tests and then execute) then execute (on Windows run.bat
on UNIX use ./run.sh):
run junit
and you should see output similar to:
..............
Time: 3.091
OK (14 tests)
Running samples:
-------------------------------------
NOTE: Make sure to have a jar file with XML PULL API V1 implementation
in lib/impl_xmlpull_v1_api directory and follow build.txt instructions
on how to build samples.
Then you can run every sample using provided run script (run.bat on Windows
and ./run.sh on UNIX), for example (uses XPP3 jar file):
C:\Forge\xmlpull-api-v1>run MyXmlPullApp
JAVA_HOME=c:\jdk1.3
c:\jdk1.3\bin\java -cp build\classes;build\samples;build\tests;lib\impl_xmlpull_v1_api\xpp3_1_0_5.
jar;lib\junit\junit37.jar; MyXmlPullApp
parser implementation class is class org.xmlpull.xpp3.PullParser
Parsing simple sample XML
Start document
Start element: {http://www.megginson.com/ns/exp/poetry}poem
Characters: "\n"
Start element: {http://www.megginson.com/ns/exp/poetry}title
Characters: "Roses are Red"
End element: {http://www.megginson.com/ns/exp/poetry}title
Characters: "\n"
Start element: {http://www.megginson.com/ns/exp/poetry}l
Characters: "Roses are red,"
End element: {http://www.megginson.com/ns/exp/poetry}l
Characters: "\n"
Start element: {http://www.megginson.com/ns/exp/poetry}l
Characters: "Violets are blue;"
End element: {http://www.megginson.com/ns/exp/poetry}l
Characters: "\n"
Start element: {http://www.megginson.com/ns/exp/poetry}l
Characters: "Sugar is sweet,"
End element: {http://www.megginson.com/ns/exp/poetry}l
Characters: "\n"
Start element: {http://www.megginson.com/ns/exp/poetry}l
Characters: "And I love you."
End element: {http://www.megginson.com/ns/exp/poetry}l
Characters: "\n"
End element: {http://www.megginson.com/ns/exp/poetry}poem