Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-10-2007, 06:12 PM
Member
 
Join Date: Jul 2007
Posts: 1
Rep Power: 0
samfuerte is on a distinguished road
Send a message via ICQ to samfuerte Send a message via MSN to samfuerte
Default XML Parser
Hello,

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:

Procedure: web.ifc_print.print_car_loan_package
Columns:
pIdEmp [NUMBER]
pPackageCode [VARCHAR2]
pPackageNumCredit [VARCHAR2]
pIdCreditArr [VARCHAR2]
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
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 07-14-2007, 05:14 PM
Member
 
Join Date: Jul 2007
Posts: 36
Rep Power: 0
boy22 is on a distinguished road
Default
Hi,
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)
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
JSP Parser???? chathu03j JavaServer Pages (JSP) and JSTL 0 04-10-2008 01:08 PM
DNS name parser 1.2.1 JavaBean Java Announcements 0 07-14-2007 09:21 PM
Parser Peter Advanced Java 2 07-04-2007 08:08 AM
Dom Parser Marcus Advanced Java 2 07-02-2007 07:47 AM
DKP Log Parser 1.4.1 JavaBean Java Announcements 0 06-25-2007 09:49 AM


All times are GMT +2. The time now is 10:57 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org