質問編集履歴
3
XMLの変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -90,6 +90,8 @@
|
|
90
90
|
|
91
91
|
<A:title xmlns:A="URLA" >THE Last Samurai</A:title>
|
92
92
|
|
93
|
+
<A:p l="100"/>
|
94
|
+
|
93
95
|
<A:review>◎</A:review>
|
94
96
|
|
95
97
|
|
2
XMLの変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -80,37 +80,31 @@
|
|
80
80
|
|
81
81
|
<?xml version="1.0" encoding="UTF-8"?>
|
82
82
|
|
83
|
-
<
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
</ahp:section>
|
110
|
-
|
111
|
-
</ahp:page>
|
112
|
-
|
113
|
-
</ahp:document>
|
83
|
+
<?xml version="1.0" ?>
|
84
|
+
|
85
|
+
<media>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
<!-- Aさんが書いた映画用のXML -->
|
90
|
+
|
91
|
+
<A:title xmlns:A="URLA" >THE Last Samurai</A:title>
|
92
|
+
|
93
|
+
<A:review>◎</A:review>
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<!-- Bさんが書いた書籍用のXML -->
|
98
|
+
|
99
|
+
<B:title xmlns:B="URLB" >赤と黒</B:title>
|
100
|
+
|
101
|
+
<B:review>名作</B:review>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
</media>
|
106
|
+
|
107
|
+
|
114
108
|
|
115
109
|
|
116
110
|
|
@@ -250,7 +244,7 @@
|
|
250
244
|
|
251
245
|
System.out.println("タグに該当");
|
252
246
|
|
253
|
-
System.out.println(""+reader.getAttributeValue("
|
247
|
+
System.out.println(""+reader.getAttributeValue("URLA",element));
|
254
248
|
|
255
249
|
|
256
250
|
|
1
誤字訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,12 +12,60 @@
|
|
12
12
|
|
13
13
|
###発生している問題・エラーメッセージ
|
14
14
|
|
15
|
+
コマンドライン引数にsample.xmlのファイルパスを入力し実行すると
|
16
|
+
|
17
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
18
|
+
|
19
|
+
ここまでreadLine出力
|
20
|
+
|
21
|
+
ここから選択出力
|
22
|
+
|
23
|
+
タグに該当
|
24
|
+
|
25
|
+
null
|
26
|
+
|
27
|
+
タグに該当
|
28
|
+
|
29
|
+
null
|
30
|
+
|
31
|
+
タグに該当
|
32
|
+
|
33
|
+
null
|
34
|
+
|
35
|
+
タグに該当
|
36
|
+
|
37
|
+
略
|
38
|
+
|
39
|
+
~
|
40
|
+
|
41
|
+
略
|
42
|
+
|
43
|
+
タグに該当
|
44
|
+
|
45
|
+
null
|
46
|
+
|
47
|
+
タグに該当
|
48
|
+
|
49
|
+
null
|
50
|
+
|
51
|
+
タグに該当
|
52
|
+
|
53
|
+
null
|
54
|
+
|
55
|
+
ここまでで選択出力終わり
|
56
|
+
|
57
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
58
|
+
|
59
|
+
となり、nullが返ってきてしまいます。
|
60
|
+
|
15
61
|
|
16
62
|
|
17
63
|
```
|
18
64
|
|
19
65
|
エラーメッセージ
|
20
66
|
|
67
|
+
上記です
|
68
|
+
|
21
69
|
```
|
22
70
|
|
23
71
|
|
@@ -244,49 +292,7 @@
|
|
244
292
|
|
245
293
|
|
246
294
|
|
247
|
-
###コマンドライン引数にsample.xmlのファイルパスを入力し実行すると
|
248
|
-
|
249
|
-
ここまでreadLine出力
|
250
|
-
|
251
|
-
ここから選択出力
|
252
|
-
|
253
|
-
タグに該当
|
254
|
-
|
255
|
-
|
295
|
+
###
|
256
|
-
|
257
|
-
タグに該当
|
258
|
-
|
259
|
-
null
|
260
|
-
|
261
|
-
タグに該当
|
262
|
-
|
263
|
-
null
|
264
|
-
|
265
|
-
タグに該当
|
266
|
-
|
267
|
-
略
|
268
|
-
|
269
|
-
~
|
270
|
-
|
271
|
-
略
|
272
|
-
|
273
|
-
タグに該当
|
274
|
-
|
275
|
-
null
|
276
|
-
|
277
|
-
タグに該当
|
278
|
-
|
279
|
-
null
|
280
|
-
|
281
|
-
タグに該当
|
282
|
-
|
283
|
-
null
|
284
|
-
|
285
|
-
ここまでで選択出力終わり
|
286
|
-
|
287
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
288
|
-
|
289
|
-
となり、nullが返ってきてしまいます。
|
290
296
|
|
291
297
|
|
292
298
|
|