Jump to content
Sign in to follow this  
TonP

Timestamp parsing

Recommended Posts

I tried to parse the twitter XML reply for friends timelist:

<?xml version="1.0" encoding="UTF-8"?>
<statuses type="array">
<status>
  <created_at>Sat Jan 31 21:14:06 +0000 2009</created_at>
  <id>1165329675</id>

Naturally I tried to get the 'created_at' as a timestamp.

However JKI XML toolkit errored out stating that it 'Doesn't support waveform', I know that timestamp is a sort of waveform.

Error 1 occurred at (Unexpected Datatype ) Get Default Data from TD__ogtk.vi:2 in Get Default Data from TD__ogtk.vi:1->Get Array Element Default Data__ogtk.vi->A5AE8EA5BC9E882D19C00E2FAEC17B15:2->A5AE8EA5BC9E882D19C00E2FAEC17B15:1->Easy Parse XML__JKI EasyXML.vi->XMLStringToStatus.vi

 

Possible reason(s):

 

LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.

To reproduce, get the Twitter friends timeline downloader from LAVA and replace the created_at string in the cluster on XMLStringToStatus.vi with a timestamp.

 

One note, EasyXML will not be able to parse the Twitter timestamp, since it isn't in the correct XML standard form.

 

Ton

Edited by TonP

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.