XML - necesito ayuda nose hacer xpath

 
Vista:

necesito ayuda nose hacer xpath

Publicado por xpath (1 intervención) el 23/03/2019 15:21:39
necesito hacer para un trabajo 7 rutas de xpath y no se hacerlas, es de este xml, si alguien me quiere ayudar...

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
76
77
78
79
80
81
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<?xml version="1.0" encoding="UTF-8"?>
<videojuegos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="proyectoxsd.xsd">
 
    <videojuego id="aaaaa">
 
      <informacion_general>
          <nombre>The Legend of Zelda</nombre>
          <genero>Acción y Aventura</genero>
          <primer_videojuego>The Legend Of Zelda</primer_videojuego>
          <ultimo_videojuego>The Legend of Zelda: Breath of the Wild</ultimo_videojuego>
      </informacion_general>
 
      <plataformas>
          <plataforma>Game &amp; Watch</plataforma>
          <plataforma>Nintendo Entertainment System</plataforma>
          <plataforma>Super Nintendo</plataforma>
          <plataforma>Game Boy</plataforma>
          <plataforma>Game Boy Color</plataforma>
          <plataforma>Game Boy Advance</plataforma>
          <plataforma>Nintendo 64</plataforma>
          <plataforma>Nintendo DS</plataforma>
          <plataforma>Nintendo GameCube</plataforma>
          <plataforma>Wii</plataforma>
          <plataforma>Nintendo 3DS</plataforma>
          <plataforma>Wii U</plataforma>
          <plataforma>Nintendo Switch</plataforma>
      </plataformas>
 
      <informacion_especifica>
          <plataforma_inicial>Nintendo NES</plataforma_inicial>
          <fecha_lanzamiento>21 de febrero de 1986</fecha_lanzamiento>
      </informacion_especifica>
 
      <creacion_distribucion>
          <creadores>Shigeru Miyamoto y Takashi Tezuka</creadores>
          <diseñadores>Shigeru Miyamoto y Takashi Tezuka</diseñadores>
          <desarrolladores>Nintendo, Capcom</desarrolladores>
          <distribuidores>Nintendo</distribuidores>
      </creacion_distribucion>
 
    </videojuego>
 
    <videojuego id="bbbbb">
 
      <informacion_general>
          <nombre>Super Mario Bros</nombre>
          <genero>Depende de la Plataforma</genero>
          <primer_videojuego>Mario Bros</primer_videojuego>
          <ultimo_videojuego>New Super Mario Bros. U Deluxe</ultimo_videojuego>
      </informacion_general>
 
      <plataformas>
          <plataforma>Nintendo Entertainment System</plataforma>
          <plataforma>Famicom Disk System</plataforma>
          <plataforma>Game &amp; Watch</plataforma>
          <plataforma>Game Boy Advance</plataforma>
          <plataforma>Consola Virtual</plataforma>
      </plataformas>
 
      <informacion_especifica>
      <plataforma_inicial>Nintendo Entertainment System</plataforma_inicial>
      <fecha_lanzamiento>13 de septiembre de 1985</fecha_lanzamiento>
      </informacion_especifica>
 
      <creacion_distribucion>
          <creadores>Shigeru Miyamoto</creadores>
          <diseñadores>	Shigeru Miyamoto, Takashi Tezuka</diseñadores>
          <desarrolladores>Nintendo EAD</desarrolladores>
          <distribuidores>	Nintendo</distribuidores>
      </creacion_distribucion>
 
    </videojuego>
 
    <videojuego id="ccccc">
 
      <informacion_general>
          <nombre>Resident Evil</nombre>
          <genero>	Survival Horror (genero principal), Survival Action, Shooters en Primera Persona, Shooters de Tercera Persona, Dramatic Horror, Psychological Horror</genero>
          <primer_videojuego>Resident Evil</primer_videojuego>
          <ultimo_videojuego>Resident Evil 2 Remake</ultimo_videojuego>
      </informacion_general>
 
      <plataformas>
          <plataforma>PlayStation</plataforma>
          <plataforma>PlayStation 2</plataforma>
          <plataforma>PlayStation 3</plataforma>
          <plataforma>PlayStation 4</plataforma>
          <plataforma>PSP</plataforma>
          <plataforma>PC</plataforma>
          <plataforma>Nintendo 64</plataforma>
          <plataforma>Nintendo Gamecube</plataforma>
          <plataforma>Wii</plataforma>
          <plataforma>Wii U</plataforma>
          <plataforma>Game Boy Color</plataforma>
          <plataforma>Nintendo DS</plataforma>
          <plataforma>Nintendo 3DS</plataforma>
          <plataforma>Nintendo Switch</plataforma>
          <plataforma>Sega Saturn</plataforma>
          <plataforma>Sega Dreamcast</plataforma>
          <plataforma>Xbox</plataforma>
          <plataforma>Xbox 360</plataforma>
          <plataforma>Xbox ONE</plataforma>
          <plataforma>Zeebo</plataforma>
          <plataforma>teléfonos móviles</plataforma>
          <plataforma>iOS</plataforma>
          <plataforma>Android</plataforma>
      </plataformas>
 
      <informacion_especifica>
          <plataforma_inicial>	PlayStation</plataforma_inicial>
          <fecha_lanzamiento>1996</fecha_lanzamiento>
      </informacion_especifica>
 
      <creacion_distribucion>
          <creadores>Shinji Mikami</creadores>
          <diseñadores>Shinji Mikami</diseñadores>
          <desarrolladores>Capcom</desarrolladores>
          <distribuidores>Capcom</distribuidores>
      </creacion_distribucion>
 
    </videojuego>
 
    <videojuego id="ddddd">
 
      <informacion_general>
          <nombre>Final Fantasy</nombre>
          <genero>	RPG (Juego de Rol)</genero>
          <primer_videojuego>Final Fantasy</primer_videojuego>
          <ultimo_videojuego>Final Fantasy XV</ultimo_videojuego>
      </informacion_general>
 
      <plataformas>
         <plataforma>Teléfono móvil</plataforma>
         <plataforma>Game Boy Advance</plataforma>
         <plataforma>iOS</plataforma>
         <plataforma>MSX</plataforma>
         <plataforma>Nintendo DS</plataforma>
         <plataforma>Nintendo Entertainment System</plataforma>
         <plataforma>Nintendo GameCube</plataforma>
         <plataforma>Windows</plataforma>
         <plataforma>PlayStation</plataforma>
         <plataforma>PlayStation 2</plataforma>
         <plataforma>PlayStation 3</plataforma>
         <plataforma>PlayStation Portable</plataforma>
         <plataforma>Super Nintendo Entertainment System</plataforma>
         <plataforma>Wii</plataforma>
         <plataforma>Wonderswan Color</plataforma>
         <plataforma>Xbox</plataforma>
         <plataforma>Xbox 360</plataforma>
         <plataforma>PlayStation 4</plataforma>
         <plataforma>Xbox One</plataforma>
         <plataforma>Nintendo 3DS</plataforma>
      </plataformas>
 
      <informacion_especifica>
          <plataforma_inicial>Nintendo DS</plataforma_inicial>
          <fecha_lanzamiento>18 de diciembre de 1987</fecha_lanzamiento>
      </informacion_especifica>
 
      <creacion_distribucion>
          <creadores>Hironobu Sakaguchi</creadores>
          <diseñadores>Hironobu Sakaguchi</diseñadores>
          <desarrolladores>Square Enix (anteriormente Squaresoft)</desarrolladores>
          <distribuidores>Square Enix (anteriormente Squaresoft)</distribuidores>
      </creacion_distribucion>
 
    </videojuego>
 
    <videojuego id="eeeee">
 
      <informacion_general>
          <nombre>Assasing Creed </nombre>
          <genero>Acción-aventura, sigilo, ciencia ficción, ficción histórica</genero>
          <primer_videojuego>Assassin's Creed</primer_videojuego>
          <ultimo_videojuego>Assassin's Creed: Odyssey</ultimo_videojuego>
      </informacion_general>
 
      <plataformas>
          <plataforma>PlayStation 3</plataforma>
          <plataforma>Xbox 360</plataforma>
          <plataforma>Windows</plataforma>
          <plataforma>Nintendo DS</plataforma>
          <plataforma>Android</plataforma>
          <plataforma>iOS</plataforma>
          <plataforma>PlayStation Portable</plataforma>
          <plataforma>PlayStation Vita</plataforma>
          <plataforma>Wii U</plataforma>
          <plataforma>PlayStation 4</plataforma>
          <plataforma>Xbox One</plataforma>
      <plataforma>PC</plataforma>
      </plataformas>
 
      <informacion_especifica>
          <plataforma_inicial>PlayStation</plataforma_inicial>
          <fecha_lanzamiento>16 de noviembre de 2007</fecha_lanzamiento>
      </informacion_especifica>
 
      <creacion_distribucion>
          <creadores>Patrice Désilets Jade Raymond</creadores>
          <diseñadores>Jade Raymond </diseñadores>
          <desarrolladores>Ubisoft Montreal, Gameloft, Griptonite Games</desarrolladores>
          <distribuidores>Ubisoft</distribuidores>
      </creacion_distribucion>
 
    </videojuego>
 
    <videojuego id="fffff">
 
      <informacion_general>
          <nombre>Call of Duty</nombre>
          <genero>Disparos en primera persona, disparos en tercera persona</genero>
          <primer_videojuego>Call of Duty</primer_videojuego>
          <ultimo_videojuego>Call of Duty: Black Ops 4</ultimo_videojuego>
      </informacion_general>
 
      <plataformas>
          <plataforma>Microsoft Windows</plataforma>
          <plataforma>Mac OS X</plataforma>
          <plataforma>Nintendo DS</plataforma>
          <plataforma>Nintendo GameCube</plataforma>
          <plataforma>Nokia N-Gage</plataforma>
          <plataforma>PlayStation 2</plataforma>
          <plataforma>PlayStation 3</plataforma>
          <plataforma>PlayStation 4</plataforma>
          <plataforma>PlayStation Portable</plataforma>
          <plataforma>PlayStation Vita</plataforma>
          <plataforma>Wii</plataforma>
          <plataforma>Xbox</plataforma>
          <plataforma>Xbox 360</plataforma>
          <plataforma>Xbox One</plataforma>
          <plataforma>Wii U</plataforma>
          <plataforma>iOS</plataforma>
          <plataforma>Android</plataforma>
          <plataforma>Blackberry</plataforma>
          <plataforma>PocketPC</plataforma>
      </plataformas>
 
      <informacion_especifica>
          <plataforma_inicial>PlayStation</plataforma_inicial>
          <fecha_lanzamiento>29 de octubre de 2003</fecha_lanzamiento>
      </informacion_especifica>
 
      <creacion_distribucion>
          <creadores>Ben Chichoski</creadores>
          <diseñadores></diseñadores>
          <desarrolladores>Infinity Ward Treyarch, Sledgehammer Games, Spark Unlimited (GC), Amaze Entertainment (PS2), Rebellion Developments (PS2), n-Space (Nintendo DS),Gray Matter Interactive (PS2), Ideaworks, Game Studio (iOS) y Android
          </desarrolladores>
          <distribuidores>Activision, Aspyr Media (Mac OS X y iOS), Square Enix</distribuidores>
      </creacion_distribucion>
    </videojuego>
 
 
</videojuegos>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de Vega
Val: 14
Ha mantenido su posición en XML (en relación al último mes)
Gráfica de XML

necesito ayuda nose hacer xpath

Publicado por Vega (5 intervenciones) el 18/04/2019 09:38:05
Busca en gugel, hay muchas herramientas XPATH online en donde puedes pegar el XML y construir la consulta XPATH de forma interactiva.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar