Hi guys
Im working with data extraction of the web. I tried to use examples like the following
String[] rawhtml;
String [] shows;
String html;
int j = 0;
 
void setup(){
  rawhtml = loadStrings("<a href="http://www.bochcenter.org/buy/show-listing" target="_blank" rel="nofollow">http://www.bochcenter.org/buy/show-listing</a>");
  shows = new String[75];
}
 
void draw(){
  for(int i = 0; i < rawhtml.length; i++){
    if(rawhtml[i].indexOf("<div class=\"show-title\">") >= 0){
      shows[j] = rawhtml[i+3];
      j++;
    }
  }
  printArray(shows);
}
But when I compile, I realized that the loadStrings() argument will not work, because of “//” inside, so I don’t know how processing will understand the xml parameters mixed with string letters, or Im wrong in something
Thanks