Searching an XML file with a Java Program from Command Line

mash

New Member
I'm writing a java program to be able to search a file when run from the command line, and it return if the term was found and where. My command line code:\[code\] java SearchFile test\Simp.txt hello\[/code\]and it will succeed, and tell me that it's found at index 0 on line one. If I change the txt to xml, it won't work. I'm just wondering, is this a command line problem (that it doesn't like xml files) or can I account for it in my code somewhere (parsing etc?)Thanks if you can help :D
 
Back
Top