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 & HelpSyntax Questions › XMLElement with string input
Page Index Toggle Pages: 1
XMLElement with string input? (Read 451 times)
XMLElement with string input?
Nov 18th, 2009, 9:28am
 
is there any way to pass a string (xml format) to XMLElement instead of having to load from a file or url? XMLElement halts my sketch if there's any problems in getting the data (e.g if there's no net connection). LoadStings works, but I can't pass that data to XMLElement, so then maybe I need a different xml parser?

/P
Re: XMLElement with string input?
Reply #1 - Nov 18th, 2009, 9:41am
 
wrapping it in a try/catch solves the problem.

/P
Page Index Toggle Pages: 1