We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpElectronics,  Serial Library › Reading XML from the Serial Port
Page Index Toggle Pages: 1
Reading XML from the Serial Port (Read 1145 times)
Reading XML from the Serial Port
Jun 29th, 2009, 9:21am
 
[Cross-posted from the Syntax forum]

Hi,

Can XMLElement be used to read xml from a serial port? If so how is it constructed?  The description in the reference seems to suggest there is more detailed documentation on the developer site, but I can't seem to find this now that it has been rolled into the core.

Thanks
Jim
Re: Reading XML from the Serial Port
Reply #1 - Jun 29th, 2009, 9:53am
 
It's obviously a library that was considered useful enough to incorporate into the Processing core; so the full documentation is available in the Processing Developer reference.

Having said that I wouldn't expect it to read directly from the serial port.  I would have thought you should first use Serial to get the data as a string and then use XMLElement to parse it; though you would probably have to do something to ensure that you've got valid XML first...
Page Index Toggle Pages: 1