I am having a real problem with parsing and I dont know how to deal with it. Im working on a database that has a very untypical return of information . When you make a request the response is in plain text and I have no idea how to parse it.
The result of a query looks like this:
error=0;
---
name= Pen
detailname= TextMarker Highlighter Pink
---
There is no html, XML or json involved - The result litterally comes back like this.
I have no idea on how to parse plain text in Java. How do I parse for example, so I only get the information following name= or any other of the categories? I have tried using JSoup, but I cant figure it out. Could anyone with experience shed some light on how I can filter this?
Thank you
Paul