Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 24-09-2017
MaxiDucoli MaxiDucoli is offline
Miembro
 
Registrado: feb 2006
Posts: 134
Poder: 19
MaxiDucoli Va por buen camino
Unhappy No entiendo XML

Hola, ya leí varios post con mucha ayuda sobre XML y no entiendo.
Me siento muy estúpido, pero es así.
No entiendo qué hacer para recorrer los no sé qué de los XML-

Les cuento.
Tengo un XML que lo paso por el XML Binding, me genera un PAS que calculo sea algo generado para trabajar directamente en ese archivo, no lo entiendo.
Me leo y veo videos de trabajar en XML y no entiendo.
Quizás sea ya (ES DE HECHO NO QUEDAN DUDAS) problema de mi cabeza.
Pero no sé como recorrer y leer los ficheros XML, ni aún viendo que el en XMLBinding me ha hecho algo servido en bandeja, por que más o menos entiendo lo que hizo, pero no sé hacer con eso.

Les dejo parte del XML que quiero leer, lo que quiero hacer es entrar en un (NODO??) llamado <game>, leer su contenido y si es necesario, agregar un (HIJO????) a ese (NODO??)

Me ayuda alguien por favor??
De verdad leí un montón, vi videos DEMASIADO EXPLICATIVOS!!!, bajé ejemplos y NI ASÍ PUDE!!!



PARTE DEL XML ( Son como 9000 sub items, pero con que me sepa leer 1 calculo que un for o while o o que sea me va a servir después)


Código:
<?xml version="1.0" encoding="UTF-8"?>
<gameList>
<game id="005" source="mamedb.blu-ferret.co.uk">
	<path>./005.zip</path>
	<name>005 </name>
	<desc>Agent 005 brings new cash collections to you. His mission is to deliver secret attache cases to an awaiting helicopter. Through wily street chases and the shadows of warehouse darkness to slippery skating tink maneuvers and the blazing aerial getaway fight. Agent 005 steels the scene and delivers customers to you. Fun-filled music attracts them. Four thrilling escape scenes challenge them and the continuous fun keeps them playing and playing. The unique audio and video excitement matches every players skill level,&#xA;&#xA;And 005 is a RasterScan Convert, a Game which can later be converted to a brand new top earning game at a substantial savings.&#xA;&#xA;Put Agent 005 on your side and win the chase for higher profits. For more information on the latest in video-game action, call your nearest Sega/Gremlin distributor.&#xA;&#xA;The chase is on. Agent 005 makes away with an attache case. A hovering helicopter awaits his arrival, but first... Enemy guards pound the street in pursuit. 005 must duck into a new scene.&#xA;&#xA;Inside a warehouse. Avoid being caught in the guard's flashlight beams... once 005 is detected, the chase quickens to super fast. Blast the guards with stun-gas and score valuable points.&#xA;&#xA;Slip into a skate rink. And slip you will. There is no stopping on ice and the same goes for the thrills. Sliding and firing... firing and sliding. 005 can call his helicopter to escape.&#xA;&#xA;The final flight fight. High flying aerial excitement. 005 has reached his helicopter in all other scenes and now finds his high scoring, high soaring getaway copter in a new test balloon and parachute bombs close in from all sides. 005 blast away to score points and to escape. Then the final challenge is thrown at his skill - a blazing battle with the enemy copter. Win now and you win big.&#xA;&#xA;It's free-wheeling fun with fun-filled music and sound. Its stealth and pursuit is like no other video game. Everybody's after Agent 005. You should be, too. Call your nearest Sega/Gremlin distributor today and make sure 005 is on your side.&#xA;&#xA;</desc>
	<rating>0.618</rating>
	<image>/home/pi/RetroPie/roms/arcade/boxart/005.png</image>
	<marquee>/home/pi/RetroPie/roms/arcade/wheel/005.png</marquee>
	<video>/home/pi/RetroPie/roms/arcade/snap/005.mp4</video>
	<releasedate>1981</releasedate>
	<developer>Sega</developer>
	<publisher></publisher>
	<genre>Maze / Shooter Small</genre>
	<players>2</players>
</game>
<game id="10yard" source="mamedb.blu-ferret.co.uk">
	<path>./10yard.zip</path>
	<name>10-Yard Fight (World, set 1) </name>
	<desc>North American release. For more information about the game itself, please see the original Japanese version entry; "10-Yard Fight [Model IF-02]".&#xA;&#xA;Description from the USA back cover:&#xA;&#xA;You're the quarterback in this amazingly real football game!&#xA;&#xA;Enjoy realistic grid-iron action as you move your team up and down the field to victory! Run, pass, kick, punt -- you call the plays in this true-to-life football game. Play against the computer, or against a friend, for hours of real football action. The sights, the sounds and the plays are so real, you'll think you're right on the fifty yard line!&#xA;&#xA;</desc>
	<rating>0.471</rating>
	<image>/home/pi/RetroPie/roms/arcade/boxart/10yard.png</image>
	<marquee>/home/pi/RetroPie/roms/arcade/wheel/10yard.png</marquee>
	<video>/home/pi/RetroPie/roms/arcade/snap/10yard.mp4</video>
	<releasedate>1983</releasedate>
	<developer>Irem</developer>
	<publisher></publisher>
	<genre></genre>
	<players>2</players>
</game>
</gameList>
Gracias de ante mano a alguien.
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
no entiendo el por que polaco2 FireMonkey 3 27-02-2014 18:10:56
No entiendo el uso de decimales darkerbyte Varios 13 18-05-2011 10:56:35
Cable de red que no lo entiendo Petolansa Redes 2 21-04-2009 14:55:33
No lo entiendo ramonibk MS SQL Server 11 20-05-2004 20:23:20
No entiendo rastafarey Firebird e Interbase 1 03-12-2003 17:14:30


La franja horaria es GMT +2. Ahora son las 06:49:43.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi