is giving, "Cannot find symbol, symbol: variable parser location: class Open_URL" error
Document doc = parser.build("http://developerlife.com/xmljavatutorial1/AddressBook.xml");
the word parser is underlined in red (I'm using NetBeans)
while this line does not give any errors:
(W/o the commenting out that is)
// Document doc = db.parse(file);
Can you explain how to resolve this?
What is parser supposed to be? Is it a variable? When do you declare it? And what does that other line have to do with that problem?
My apologies -
after hacking around with it and commenting in and out combinations -
what happened: I cut and pasted the offending line with the error into my code and the problem was with the quotation marks.
I finally noticed the ones in error looked different than ones I typed, changing the quotation marks fixed it.
Quotes that originate in MS Word files are usually all f'ed up. Word uses unicode characters for some symbols rather than the original ascii pallet - which has the wonderful side effect of screwing up copy and paste with code.