First of all I would like to send greetigs to every member of this forum and to any other member in any other forum.
Now to my subject:
I have made a parser that reads an XML file and sends the output in a txt or xml form. So far so good.
Now I want to use a datasource file (txt file) and compare it with the parser's output just to get some specific attributes that are (or are not) in xml file.
i.e. I have a datasource file like this:
pCursor [REF CURSOR]
JasperReports XML document fields:
<field name="name1" class="java.lang.String"/>
<field name="name2" class="java.lang.String"/>
<field name="status" class="java.util.Date"/>
<field name="employeename" class="java.lang.String"/>
So, I want to find out which variables in datasource are not used in given templates, and other like this.
Any idea on how will I compare the two files?
Thanks a lot in advance
you can use the output of DOS (or Unix) from java
o you can use BufferString to compare the files (you read line by line and try to find out if the attribute or tag searched is there)