|
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?
|
|
|
|
|