AnsweredAssumed Answered

Trying to parse text file (started off as a .plist file)

Question asked by rebelbroker on Jun 10, 2009
Latest reply on Jun 10, 2009 by comment_1

Title

Trying to parse text file (started off as a .plist file)

Post

Hey All,

 

I am trying to come up with the best way to parse a pretty big text file with data laid out as follows:

 

 

<key>Version</key><string>1.0</string><key>Locale</key><string>en-US</string><key>BuildID</key><string>1.0.4</string>

 

 It goes on like that for pages where the Key is the field name and the string is what goes into the field.

 

I started off trying to just import it, this failed no matter what I tried. The files starts off as a .plist. I tried simply changing the extension to XML - no go. I tries using a .plist to .xml converter (which did the conversion) but even after that was not able to import it into Filemaker 9.

 

I then tried just importing the entire texd file into a single global field, then trying to parse it with a script and have not managed to get too far with that.

 

Am I missing something really simple here? There has got to be an easier way to get all this stuff into FMP.

 

Thanks,

 

Outcomes