Results 1 to 2 of 2

Thread: XML Parser

  1. #1
    samfuerte is offline Member
    Join Date
    Jul 2007
    Posts
    1
    Rep Power
    0

    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

  2. #2
    boy22 is offline Member
    Join Date
    Jul 2007
    Posts
    36
    Rep Power
    0

    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)

Similar Threads

  1. JSP Parser????
    By chathu03j in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 04-10-2008, 01:08 PM
  2. DNS name parser 1.2.1
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-14-2007, 09:21 PM
  3. Parser
    By Peter in forum Advanced Java
    Replies: 2
    Last Post: 07-04-2007, 08:08 AM
  4. Dom Parser
    By Marcus in forum Advanced Java
    Replies: 2
    Last Post: 07-02-2007, 07:47 AM
  5. DKP Log Parser 1.4.1
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 06-25-2007, 09:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •