What is the syntax of XML and HTML for the import of SMS?

For user who dont speak german please use this part of my forum
the-coolest
Beiträge: 2
Registriert: Sa 12. Sep 2009, 12:00

What is the syntax of XML and HTML for the import of SMS?

Beitrag von the-coolest »

Hi,

I would like to know how would the xml and html syntax would be so I would be able to import my messages in "MyPhoneExplorer"

I have this XML file syntax but the software won' accept it. it says "the file contains no messages"

Examlpe:

- <SMSExport>
- <store name="SMS">
<folder name="Deleted Items" />
<folder name="Drafts" />
- <folder name="Inbox">
<message date="12/04/2008 13:45:47" sender=""My Friend" <+00000000>" recipient="">This is my test sms</message>
</folder>
</store>
</SMSExport>
FJ
Site Admin
Beiträge: 32106
Registriert: Mi 15. Feb 2006, 01:16
Wohnort: Tirol
Kontaktdaten:

Beitrag von FJ »

MyPhoneExplorer alsways uses the PDU-data for import. The only exception is CSV-Files since v1.7.4
the-coolest
Beiträge: 2
Registriert: Sa 12. Sep 2009, 12:00

Beitrag von the-coolest »

FJ hat geschrieben:MyPhoneExplorer alsways uses the PDU-data for import. The only exception is CSV-Files since v1.7.4



could you explain how can I do it with the given example? I'm not familiar with the PDU Data. or if you can attach a sample which would better.

Thanks,
FJ
Site Admin
Beiträge: 32106
Registriert: Mi 15. Feb 2006, 01:16
Wohnort: Tirol
Kontaktdaten:

Beitrag von FJ »

The PDU-Format is a common GSM-Standard and its described on many pages in the www. But i think its easier for you to create a well-formed CSV-File cause you need no PDU-data if the rest is OK in the CSV-File.
Zajec
Beiträge: 9
Registriert: So 11. Okt 2009, 20:32
Wohnort: Poland

Beitrag von Zajec »

FJ hat geschrieben:The PDU-Format is a common GSM-Standard and its described on many pages in the www. But i think its easier for you to create a well-formed CSV-File cause you need no PDU-data if the rest is OK in the CSV-File.
FJ, I can not prepare csv file that would be accepted by MyPhoneExplorer. I used version 1.7.4 on Linux.

Could you point me, why following CSV is not accepted by MyPhoneExplorer?

Code: Alles auswählen

"From";"To";"Body";"Time";"Storage";"PDU"
"ASD [+48505505505]";;"Test 1";"2008-10-13 18:38:53";"1";""
"ASD [+48505505505]";;"Test 2";"2008-11-22 17:28:28";"1";""
FJ
Site Admin
Beiträge: 32106
Registriert: Mi 15. Feb 2006, 01:16
Wohnort: Tirol
Kontaktdaten:

Beitrag von FJ »

I just tried the example and it works for me. Please note that you have to import messages first into the SMS-Archive.

You say Linux: As far as i know in Linux the new line is repesented with one Character (&H0A). In Windows its represented with two characters (&H0D + &H0A). Maybe this is the reason
gabri.ns
Beiträge: 10
Registriert: Sa 10. Okt 2009, 09:08
Wohnort: Indonesia

Beitrag von gabri.ns »

in case you doesn't know, there are 3 type of EOL (End Of Line)
UNIX style, using Line Feed (LF, 0x0A)
MAC style, using Carriage Return (CR, 0x0D)
and WIN style, using both of them (CRLF)

you can save it to DOS format to be readable by MPE
and be careful not to include any whitespace in the end of line
i just do it when copying the example text above
it alerting "is a not compatible csv file"

by the way, i tyring to export some data, strip out PDU field, and import again
but, i was warned that "The selected file contains no messages!"
is it because i still using MPE version 1.7.1? :?
Sony Ericssons K320i
Connected using USB Cable
FJ
Site Admin
Beiträge: 32106
Registriert: Mi 15. Feb 2006, 01:16
Wohnort: Tirol
Kontaktdaten:

Beitrag von FJ »

@gabri.ns: You need 1.7.4 for this
gabri.ns
Beiträge: 10
Registriert: Sa 10. Okt 2009, 09:08
Wohnort: Indonesia

Beitrag von gabri.ns »

thanks for the confirmation FJ
i've already download thus version
i just kinda lazy to update it on my computer
but, i'll try it this night
Sony Ericssons K320i
Connected using USB Cable
Zajec
Beiträge: 9
Registriert: So 11. Okt 2009, 20:32
Wohnort: Poland

Beitrag von Zajec »

That's right, that was my issue. MyPhoneExplorer doesn't manage to import from file containing \n instead of \r\n.

FJ: maybe you could modify this in some future release? I don't think many ppl may be hitting that but also fix should be really easy (1LOC?).
Zajec
Beiträge: 9
Registriert: So 11. Okt 2009, 20:32
Wohnort: Poland

Beitrag von Zajec »

gabri.ns hat geschrieben:in case you doesn't know, there are 3 type of EOL (End Of Line)
UNIX style, using Line Feed (LF, 0x0A)
MAC style, using Carriage Return (CR, 0x0D)
and WIN style, using both of them (CRLF)
Actually Mac started to use just "\n" as newline character starting from version 10 of Mac OS I think.
FJ
Site Admin
Beiträge: 32106
Registriert: Mi 15. Feb 2006, 01:16
Wohnort: Tirol
Kontaktdaten:

Beitrag von FJ »

I see what i can do
Antworten