FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   splitStrings & xml
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: splitStrings & xml  (Read 284 times)
marza


splitStrings & xml
« on: Nov 29th, 2004, 11:51pm »

hi, i'm new to programming so i hope this is a simple question. i am trying to read in an xml file and then find specific words in it. everything works correctly except for the if statement:
 
----- this all happens in init -----------
 
String lines[] = loadStrings("tree_nested_test.xml");  
String words = join(lines, " ");
String list[] = splitStrings(words);
 
for (int i=0; i < list.length; i++) {
  if(list[i] == "<TREE"){
     println(list[i]);
  }
}
 
-------------------------------------------
 
is there a better way to do this?
 
 
Pages: 1 

« Previous topic | Next topic »