Visualizzazione dei risultati da 1 a 3 su 3

Discussione: xml e flash bis

  1. #1

    xml e flash bis

    Carico con flash file xml simili a questo
    <?xml version="1.0" encoding="windows-1252" ?>
    - <Anagraficas>
    - <xsd:schema id="Anagraficas" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    - <xsd:element name="Anagraficas" msdata:IsDataSet="true" msdata:Locale="en-US">
    - <xsd:complexType>
    - <xsd:choice maxOccurs="unbounded">
    - <xsd:element name="Anagrafica">
    - <xsd:complexType>
    - <xsd:sequence>
    <xsd:element name="Idpaz" type="xsd:string" minOccurs="0" />
    <xsd:element name="Cognome" type="xsd:string" minOccurs="0" />
    <xsd:element name="Nome" type="xsd:string" minOccurs="0" />
    <xsd:element name="Indirizzo" type="xsd:string" minOccurs="0" />
    <xsd:element name="Cap" type="xsd:string" minOccurs="0" />
    <xsd:element name="Comune" type="xsd:string" minOccurs="0" />
    <xsd:element name="Citta" type="xsd:string" minOccurs="0" />
    <xsd:element name="Prov" type="xsd:string" minOccurs="0" />
    <xsd:element name="Regione" type="xsd:string" minOccurs="0" />
    <xsd:element name="Sesso" type="xsd:string" minOccurs="0" />
    <xsd:element name="Nato_Il" type="xsd:date" minOccurs="0" />
    <xsd:element name="Nato_In" type="xsd:string" minOccurs="0" />
    <xsd:element name="Eta" type="xsd:integer" minOccurs="0" />
    <xsd:element name="Codfiscale" type="xsd:string" minOccurs="0" />
    <xsd:element name="Profession" type="xsd:string" minOccurs="0" />
    <xsd:element name="Statociv" type="xsd:string" minOccurs="0" />
    <xsd:element name="Scolarita" type="xsd:string" minOccurs="0" />
    <xsd:element name="Ptel1" type="xsd:string" minOccurs="0" />
    <xsd:element name="Telefono1" type="xsd:string" minOccurs="0" />
    <xsd:element name="Ptel2" type="xsd:string" minOccurs="0" />
    <xsd:element name="Telefono2" type="xsd:string" minOccurs="0" />
    <xsd:element name="Cellulare" type="xsd:string" minOccurs="0" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:choice>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    - <Anagrafica>
    <Idpaz>00000000001</Idpaz>
    <Cognome>Proietti</Cognome>
    <Nome>Gigi</Nome>
    <Indirizzo>via 29 Settembre</Indirizzo>
    <Cap>00100</Cap>
    <Comune>ROMA</Comune>
    <Citta />
    <Prov>RM</Prov>
    <Regione>LAZIO</Regione>
    <Sesso>M</Sesso>
    <Nato_Il>1980-02-26</Nato_Il>
    <Nato_In>ROMA</Nato_In>
    <Eta>24</Eta>
    <Codfiscale>PRTGGI80B26H501P</Codfiscale>
    <Profession>Agricoltore</Profession>
    <Statociv>Coniugato</Statociv>
    <Scolarita>LAUREA</Scolarita>
    <Ptel1>06</Ptel1>
    <Telefono1 />
    <Ptel2>06</Ptel2>
    <Telefono2 />
    <Cellulare />
    </Anagrafica>
    </Anagraficas>

    coem faccio ad estrarre soli i seguenti child

    <Anagrafica>
    <Idpaz>00000000001</Idpaz>
    <Cognome>Proietti</Cognome>
    <Nome>Gigi</Nome>
    <Indirizzo>via 29 Settembre</Indirizzo>
    <Cap>00100</Cap>
    <Comune>ROMA</Comune>
    <Citta />
    <Prov>RM</Prov>
    <Regione>LAZIO</Regione>
    <Sesso>M</Sesso>
    <Nato_Il>1980-02-26</Nato_Il>
    <Nato_In>ROMA</Nato_In>
    <Eta>24</Eta>
    <Codfiscale>PRTGGI80B26H501P</Codfiscale>
    <Profession>Agricoltore</Profession>
    <Statociv>Coniugato</Statociv>
    <Scolarita>LAUREA</Scolarita>
    <Ptel1>06</Ptel1>
    <Telefono1 />
    <Ptel2>06</Ptel2>
    <Telefono2 />
    <Cellulare />
    </Anagrafica>

  2. #2
    dopo aver caricato il file XML se fai il debug del filmato ti trovi tutti i percorsi possibili x estrarre i dati che ti servono...

  3. #3
    flash mi mette a disposizione Firstchild e nodechild ..dell'ultimo non sono sicura....
    ma quale metodo devo usare per scendere sijo alla parte cehmi serve?
    Con i metodi ceh ti ho espost sopra mi estrae la priam parte

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.