Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

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

Coloboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #18  
Antiguo 24-09-2008
Avatar de cirilungol
cirilungol cirilungol is offline
Miembro
 
Registrado: feb 2006
Posts: 42
Poder: 0
cirilungol Va por buen camino
Nada siento seguir dando la matraca, pero por lo menos veais lo que intento hacer, o lo que estoy haciendo con el DataBinding

parto de este xml

http://camilovi-heroes.com/gallery.xml


esto es lo que me genera el data Binding, lo solapo a un proyecto uniendo el pas creado, y busco la manera de asignarle otro gallery.xml que no es el original pero tiene la misma estructura.

encuentro esto en el pas del Data Binding

Código PHP:
{ Forward Decls }

  
IXMLTiltviewergalleryType = interface;
  
IXMLPhotosType = interface;
  
IXMLPhotoType = interface;

{ 
IXMLTiltviewergalleryType }

  
IXMLTiltviewergalleryType = interface(IXMLNode)
    [
'{419B47F1-8ED4-4F36-B5B7-27757DA445B7}']
    { 
Property Accessors }
    function 
Get_Photos: IXMLPhotosType;
    { 
Methods & Properties }
    
property Photos: IXMLPhotosType read Get_Photos;
  
end;

{ 
IXMLPhotosType }

  
IXMLPhotosType = interface(IXMLNodeCollection)
    [
'{4915F1B3-F52E-410E-B03C-DC05C24BBA44}']
    { 
Property Accessors }
    function 
Get_Photo(Index: Integer): IXMLPhotoType;
    { 
Methods & Properties }
    function 
Add: IXMLPhotoType;
    function 
Insert(const Index: Integer): IXMLPhotoType;
    
property Photo[Index: Integer]: IXMLPhotoType read Get_Photo; default;
  
end;

{ 
IXMLPhotoType }

  
IXMLPhotoType = interface(IXMLNode)
    [
'{3B0E616B-38C0-4704-A2A0-4EB1EE1CF783}']
    { 
Property Accessors }
    function 
Get_Imageurl: WideString;
    function 
Get_Linkurl: WideString;
    function 
Get_ShowFlipButton: WideString;
    function 
Get_Title: WideString;
    function 
Get_Description: WideString;
    
procedure Set_Imageurl(Value: WideString);
    
procedure Set_Linkurl(Value: WideString);
    
procedure Set_ShowFlipButton(Value: WideString);
    
procedure Set_Title(Value: WideString);
    
procedure Set_Description(Value: WideString);
    { 
Methods & Properties }
    
property Imageurl: WideString read Get_Imageurl write Set_Imageurl;
    
property Linkurl: WideString read Get_Linkurl write Set_Linkurl;
    
property ShowFlipButton: WideString read Get_ShowFlipButton write Set_ShowFlipButton;
    
property Title: WideString read Get_Title write Set_Title;
    
property Description: WideString read Get_Description write Set_Description;
  
end;

{ 
Forward Decls }

  
TXMLTiltviewergalleryType = class;
  
TXMLPhotosType = class;
  
TXMLPhotoType = class;

{ 
TXMLTiltviewergalleryType }

  
TXMLTiltviewergalleryType = class(TXMLNode, IXMLTiltviewergalleryType)
  protected
    { 
IXMLTiltviewergalleryType }
    function 
Get_Photos: IXMLPhotosType;
  public
    
procedure AfterConstruction; override;
  
end;

{ 
TXMLPhotosType }

  
TXMLPhotosType = class(TXMLNodeCollection, IXMLPhotosType)
  protected
    { 
IXMLPhotosType }
    function 
Get_Photo(Index: Integer): IXMLPhotoType;
    function 
Add: IXMLPhotoType;
    function 
Insert(const Index: Integer): IXMLPhotoType;
  public
    
procedure AfterConstruction; override;
  
end;

{ 
TXMLPhotoType }

  
TXMLPhotoType = class(TXMLNode, IXMLPhotoType)
  protected
    { 
IXMLPhotoType }
    function 
Get_Imageurl: WideString;
    function 
Get_Linkurl: WideString;
    function 
Get_ShowFlipButton: WideString;
    function 
Get_Title: WideString;
    function 
Get_Description: WideString;
    
procedure Set_Imageurl(Value: WideString);
    
procedure Set_Linkurl(Value: WideString);
    
procedure Set_ShowFlipButton(Value: WideString);
    
procedure Set_Title(Value: WideString);
    
procedure Set_Description(Value: WideString);
  
end;

{ Global 
Functions }

function 
Gettiltviewergallery(Doc: IXMLDocument): IXMLTiltviewergalleryType;
function 
Loadtiltviewergallery(const FileName: WideString): IXMLTiltviewergalleryType;
function 
Newtiltviewergallery: IXMLTiltviewergalleryType; 

Pero desde la unidad Main no encuentro la funcion para poder decirle de que XMl ha de captar los datos.
Y tambien para variar recorrer ese gallery.xml y sacar todos los datos correctamente.

de veras que estoy mas perdido que un piojo en una calva.

Help please
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
Comunicarse con WebServices miguel.benitez Internet 0 15-05-2008 02:10:22
Webservices y Apache para windows juanelo Internet 4 09-05-2008 17:56:36
Consulta Delphi 6, Delphi 2005 y Delphi 2006 Leviatan Varios 6 18-08-2007 16:02:08
Como compite o se integra Delphi vs Webservices n3mohack Varios 6 12-08-2006 00:22:29
XML-WebServices con Delphi Gonzalo Giraldo Internet 0 21-07-2004 02:47:32


La franja horaria es GMT +2. Ahora son las 09:53:32.


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