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 › How to get XML from a URL
Page Index Toggle Pages: 1
How to get XML from a URL? (Read 287 times)
How to get XML from a URL?
Jul 16th, 2008, 4:43am
 
A very simple striaght forward question. Does anyone know how?
Re: How to get XML from a URL?
Reply #1 - Jul 16th, 2008, 8:21am
 
Just use the XML Import library.

Example:

import processing.xml.*;

void setup() {
 XMLElement xml = new XMLElement(this, "http://cafe.elharo.com/feed/atom/");
 int numEntries = xml.getChildCount();
 println(numEntries);    
}
Page Index Toggle Pages: 1