Results 1 to 3 of 3
  1. #1
    lse123 is offline Senior Member
    Join Date
    Oct 2008
    Posts
    116
    Rep Power
    0

    Default I tried find the BUG in this SAX PARSER But NO-RESULT:

    I tried find the BUG in this SAX PARSER But NO-RESULT:

    line 102: output("\nName:" + searchname +....
    //searchname goes to output SUCCESS (endDocument())
    ......................................
    line 149: if (getRest==1 && state == 2) // endElement()
    line 150: searchname=str; // this does not go to line 102

    Can you help?
    Attached Files Attached Files

  2. #2
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    Quote Originally Posted by lse123 View Post
    I tried find the BUG in this SAX PARSER But NO-RESULT:

    line 102: output("\nName:" + searchname +....
    //searchname goes to output SUCCESS (endDocument())
    ......................................
    line 149: if (getRest==1 && state == 2) // endElement()
    line 150: searchname=str; // this does not go to line 102

    Can you help?
    Running your code I got this output




    Carnation
    Dianthus
    4000
    Red


    Lily-Of-The-Valley
    Convallaria
    250
    White


    Violet
    Viola
    900
    Purple


    Total number of different plants was: 3
    Minimum on hand balance is: 250 for plant Lily-Of-The-Valley
    Name:
    OnHand:
    Sci Name:
    color: enter a plant name
    what should be the output and what RESULT are you expecting?

  3. #3
    lse123 is offline Senior Member
    Join Date
    Oct 2008
    Posts
    116
    Rep Power
    0

    Default

    run as
    java FindPlant nameofplan
    eg. nameofplan=Violet
    to get below info for this nameofplan along with other data ...problem does not get the below data?
    Name:
    OnHand:
    Sci Name:
    color:

Similar Threads

  1. Parser API
    By sruti_mohan in forum Advanced Java
    Replies: 0
    Last Post: 06-09-2008, 08:23 AM
  2. DNS name parser 1.2.1
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-14-2007, 09:21 PM
  3. XML Parser
    By samfuerte in forum XML
    Replies: 1
    Last Post: 07-14-2007, 05:14 PM
  4. Parser
    By Peter in forum Advanced Java
    Replies: 2
    Last Post: 07-04-2007, 08:08 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
  •