|
Hi,
A customer is proposing to send me data in XML sort of: === <?xml version="1.0" encoding="utf-8" ?> <data activity="blitz">
<domanda>
<testoDomanda>Do you know the following brands?</testoDomanda>
<risposte>
<risposta>BRAND_A</risposta>
<risposta>BRAND_B</risposta>
</risposte>
</domanda>
<domanda>
<testoDomanda>Do you agree with the following statements about BRAND_A?</testoDomanda>
<risposte>
<risposta>It is highly priced</risposta>
<risposta>It has high value</risposta>
<risposta>Other</risposta>
</risposte>
</domanda>
<!-- Altre domande... -->
</data>===Please notice that domanda=question, risposte=answers, altre domande=other questions.
Can I import this data into a SPSS? If so, how can I do that?Thanks, Luca
Luca Meyer
www.lucameyer.com PASW Statistics v. 18.0.1 (13-nov-2009) Mac OS X 10.6.2 (10C540) - kernel Darwin 10.2.0 |
|
You could write a Python routine. Garry From: SPSSX(r) Discussion
[mailto:[hidden email]] On Behalf Of Luca Meyer Hi, A
customer is proposing to send me data in XML sort of: === <?xml
version="1.0" encoding="utf-8" ?> <data activity="blitz"> <domanda> <testoDomanda>Do you know the following brands?</testoDomanda> <risposte> <risposta>BRAND_A</risposta> <risposta>BRAND_B</risposta> </risposte> </domanda> <domanda> <testoDomanda>Do you agree with the following statements about BRAND_A?</testoDomanda> <risposte> <risposta>It is highly priced</risposta> <risposta>It has high value</risposta> <risposta>Other</risposta> </risposte> </domanda> <!-- Altre domande... --></data> === Please notice that domanda=question, risposte=answers, altre domande=other questions. Can
I import this data into a SPSS? If so, how can I do that? Thanks, Luca Luca Meyer
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4974 (20100325) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com |
|
In reply to this post by Luca Meyer-3
You may need some custom programming in Python or XSLT or some other xml-aware tool to massage the data, but the particular xml you posted reads beautifully into Excel 2007 as a data table. I can't attach the actual result as the dragon list servers consumes it in flames, but here is the text activity testoDomanda risposta blitz Do you know the following brands? BRAND_A blitz Do you know the following brands? BRAND_B blitz Do you agree with the following statements about BRAND_A? It is highly priced blitz Do you agree with the following statements about BRAND_A? It has high value blitz Do you agree with the following statements about BRAND_A? Other Regards, Jon Peck p.s. The SPSS Data Access Pack used to include an xml driver, but it didn't work all that well, and I don't know whether some version of it is still included.
Hi, A customer is proposing to send me data in XML sort of: === <?xml version="1.0" encoding="utf-8" ?> <data activity="blitz"> <domanda> <testoDomanda>Do you know the following brands?</testoDomanda> <risposte> <risposta>BRAND_A</risposta> <risposta>BRAND_B</risposta> </risposte> </domanda> <domanda> <testoDomanda>Do you agree with the following statements about BRAND_A?</testoDomanda> <risposte> <risposta>It is highly priced</risposta> <risposta>It has high value</risposta> <risposta>Other</risposta> </risposte> </domanda> <!-- Altre domande... --> </data> === Please notice that domanda=question, risposte=answers, altre domande=other questions. Can I import this data into a SPSS? If so, how can I do that? Thanks, Luca Luca Meyer www.lucameyer.com PASW Statistics v. 18.0.1 (13-nov-2009) Mac OS X 10.6.2 (10C540) - kernel Darwin 10.2.0 |
|
In reply to this post by Luca Meyer-3
|
| Free forum by Nabble | Edit this page |
