質問編集履歴

2

不要な記載削除

2016/11/15 10:50

投稿

samusaku
samusaku

スコア34

test CHANGED
File without changes
test CHANGED
@@ -103,15 +103,3 @@
103
103
  </root>
104
104
 
105
105
  ```
106
-
107
-
108
-
109
- ###試したこと
110
-
111
- 課題に対してアプローチしたことを記載してください
112
-
113
-
114
-
115
- ###補足情報(言語/FW/ツール等のバージョンなど)
116
-
117
- より詳細な情報

1

読み込みたいXMLファイルフォーマット記載

2016/11/15 10:49

投稿

samusaku
samusaku

スコア34

test CHANGED
File without changes
test CHANGED
@@ -23,3 +23,95 @@
23
23
 
24
24
 
25
25
  いつもながら申し訳ありませんが、ご教授願いします。
26
+
27
+
28
+
29
+ 【追記】
30
+
31
+ 下記に読み込みたいXMLファイルのフォーマット記載いたしました。
32
+
33
+ こちらのXMLファイルを読み込み、OSの言語が日本語なら、
34
+
35
+ <testdata001>配下の<testcode001>、<testcode002>、<testcode003>タグそれぞれに
36
+
37
+ 設定されている家、勉強、料理の文字列を取り出したいです。
38
+
39
+ また、OSが英語なら、
40
+
41
+ <testdata002>配下の<testcode001>、<testcode002>、<testcode003>タグそれぞれに
42
+
43
+ 設定されているHome、Study、cookingの文字列を取り出したいです。
44
+
45
+
46
+
47
+ わがままだと思いますが、どうぞよろしくお願いいたします。
48
+
49
+
50
+
51
+ ###該当のソースコード
52
+
53
+ 読み込むXMLファイルのフォーマット
54
+
55
+ ```ここに言語を入力
56
+
57
+ <?xml version = "1.0" encording="UTF-16" ?>
58
+
59
+ <root>
60
+
61
+ <head/>
62
+
63
+ <sample>
64
+
65
+ <testdataconf>ABC</testdataconf>
66
+
67
+ <testdata001>
68
+
69
+ <testconf>test1</testconf>
70
+
71
+ <test001>
72
+
73
+ <testcode001>家</testcode001>
74
+
75
+ <testcode002>勉強</testcode002>
76
+
77
+ <testcode003>料理</testcode003>
78
+
79
+ </test001>
80
+
81
+ </testdata001>
82
+
83
+ <testdata002>
84
+
85
+ <testconf>test1</testconf>
86
+
87
+ <test001>
88
+
89
+ <testcode001>Home</testcode001>
90
+
91
+ <testcode002>Study</testcode002>
92
+
93
+ <testcode003>cooking</testcode003>
94
+
95
+ </test001>
96
+
97
+ </testdata001>
98
+
99
+
100
+
101
+ </sample>
102
+
103
+ </root>
104
+
105
+ ```
106
+
107
+
108
+
109
+ ###試したこと
110
+
111
+ 課題に対してアプローチしたことを記載してください
112
+
113
+
114
+
115
+ ###補足情報(言語/FW/ツール等のバージョンなど)
116
+
117
+ より詳細な情報