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.
Page Index Toggle Pages: 1
XML String (Read 631 times)
XML String
Apr 13th, 2010, 4:30am
 
Hi,
This might be a dumb question:
I am reading from a socket into a string. Can I use the XMLElement construct to parse the string without writing it to a file? I can't find a way to convert between the two types...??
Re: XML String
Reply #1 - Apr 13th, 2010, 4:51am
 
It is not in the official reference (but in the developer JavaDoc) as it is a somewhat advanced usage, but XMLElement accepts also either a String (the XML data) or a Reader as parameter.
Page Index Toggle Pages: 1