Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-10-2007, 06:12 PM
Member
 
Join Date: Jul 2007
Posts: 1
samfuerte is on a distinguished road
Send a message via ICQ to samfuerte Send a message via MSN to samfuerte
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
Sponsored Links
  #2 (permalink)  
Old 07-14-2007, 05:14 PM
Member
 
Join Date: Jul 2007
Posts: 36
boy22 is on a distinguished road
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
Sponsored Links
Reply


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

vB 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 +3. The time now is 12:12 PM.


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