Help needed- newbie trying to setup xerces XML pasrer

Hello all,
I am new to Java and XML.
I am trying to write a simple java program that will use the xerces parser and will read the XML file.
I have installed xerces 2.8.0 and put in on a specific location on my hard drive.
I also added the xercesImpl.jar file to the CLASSPATH variable.
I am trying to compile this code:
import org.xml.sax.XMLReader;
public class SAXParserDemo {
public void performDemo(String uri) {
System.out.println("Parsing XML File: " + uri + "\n\n");
// Instantiate a parser
XMLReader parser = new SAXParser();
public static void main(String[] args)
if (args.length != 1)
System.out.println("Usage: java SAXParserDemo [XML URI]");
System.exit(0);
}//IF
String uri = args[0];
SAXParserDemo parserDemo = new SAXParserDemo();
parserDemo.performDemo(uri);
}//MAIN
The error I get is on this line : XMLReader parser = new SAXParser(); stating that it cannot find SAXParser.
What am I doing wrong? is there something else I need to import?
Help will be much appreciated.
Sorry for the newbie question.
Cheers,
Mike

The error I get is on this line : XMLReader parser =
new SAXParser(); stating that it cannot find
SAXParser.
What am I doing wrong? is there something else I need
to import?Well, yeah. Your code shows you already know how to use the "import" statement. The compiler says it can't find SAXParser, and you correctly suspect that you need to import something. So the logical step: you need to import SAXParser.
But you don't know what package it's in, right? Well let me just look it up in the API documentation for you... here it is... javax.xml.parsers.SAXParser. Take note of the existence of documentation for the next time you have this sort of question.
http://java.sun.com/j2se/1.5.0/docs/api/

Similar Messages

  • Help needed.. trying to display video to external TV

    Hey guys,
    I am trying to setup my T61P lappy to display video to my external TV via the VGA port. I was able to get  the desktop background to display on the Samsung LCD tv but could not see anything else such as desktop items.
    I set the laptop up using the fn-f7 option in presenter mode. Not sure what is going on here to not see info on my TV. was trying to watch a movie on the TV with no luck..
    Thanks
    T61P(6459-CTO) T9300 @ 2.5 GHz, 4g ram, Quadro FX 570M, Vista Bus. 64Bit, 160gig 7200 rpm HD, WSXGA disp.
    Solved!
    Go to Solution.

    I have a new Lenovo T61, that my company bought me, i personally have a Toshiba laptop , that has an S-video output on it, i have to, on occasion, run powerpoint from it to a TV. Where it then comes out of the TV. And into a projector, for some of the shows that we do. My , or there Lenovo, only has the female VGA. Output for another monitor, but the driver that is in my Toshiba appears to be the same as in the Lenovo T61, so where can i get a VGA to S-video, or RCA. cable, and will this work for the: Intel Graphics media Accelerator, 6.14.10.4860. It runs XP in it,because of all the private, programs that we have were written for XP. Please help! I.T. Is always to busy, and only the top guy seems to know what he is doing,  which means I just get someone who spends 4 hours, making calls to him, and then telling me, he will get back to me soon! HEEEEEEEEEElp! i'm not a real computer wizz, but i figured out how to do it on my Toshiba, so if i could find the cable i think i could get-r-done, I'm sick of using my computer, for there shows.
    Message Edited by DaveUK on 01-10-2009 10:33 PM

  • Help needed with Java 1.4 and xml Runtime problem

    I am working on a java 1.3 and JAXP1.1 written code. Now I want to compile and run it using J2SE 1.4. Here are the import statements from the existing code.
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    import org.xml.sax.Locator;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import org.xml.sax.Attributes;
    import org.xml.sax.XMLReader;
    import org.xml.sax.InputSource;
    import java.sql.*;
    import java.net.*;
    import java.io.*;
    When I run the existing(using java 1.3 and Jaxp1.1) code I have to include the files crimson.jar and jaxp.jar in the windows 2000 CLASSPATH and works fine.
    But when I compile and run it using J2SE 1.4 which has the built in support for the saxp, I thought that I don't have to specify any CLASSPATH for the new 1.4 so I don't specify any Classpath and it gives me the Microsoft "ClassFactory cannot find the requested class" error which means that even thought the new java 1.4 has the xml classes as libraries yet it still requies some .jar files to be listed in the CLASSPATH.
    If I am right then what path will work(i.e what jar class I need to add to the CLASSPATH).
    Thanks for your help.
    RA.

    Thanks for your reply,
    I think I didn't specify when the error occurs. The ClassFactory related error occurs when I run the program, it compiles without any error.
    From what I understood somewhere in the java 1.4 docs, that the new 1.4 has the xml libraries built in by default so one doesn't need to give the classpaths just like we don't give any CLASSPATH for using swing and many of the other java packages. That is one thing.
    Second thing is that I also tried to use the java_xml_pack-spring02 and java_xml_pack-summer02; but non of them include the crimson.jar and the jaxp.jar files in them which are the 2 .jar files that makes the program run fine when used under the java 1.3 with combination of the jaxp1.1(which was downloaded seperately and then the CLASSPATH for it was set.).
    Can you please help what .jar files do I need to use instead. I tried to use the ones that the new java_xml_pack-spring02 and java_xml_pack-summer02 has for the jaxp in them.
    Thanks again.
    RA

  • Help needed in AP Check Printing R12 XML Tags

    Hi,
    I have taken the standard template and am trying to customize the template for the requirement. I have also generated the XML file.
    I have to restrict the no of invoices to 17 and if only one invoice is there other 16 blanks should print. if I am printing data for single check/invoice number the output is fine. The problem is with multiples sites, the invoice numbers are getting repeated., i..e., for two supplier sites the two invoices are getting printed along with one check number and details and then two invoices with the other check are getting printed in another page.
    I tried to use innergroup_And_V_First_rec= <?for-each@section:OutboundPaymentInstruction?><xsl:variable xdofo:ctx="incontext" name="inner_group" select=".//OutboundPayment"/><?for-each:$inner_group?><?if:(position()-1) mod $no_of_lines_per_page=0?><xsl:variable name="first_rec" xdofo:ctx="incontext" select="position()"/>
    But is not woriking..
    Im not able to attach the template here
    But below is what my template looks like..
    Group: OutboundPaymentSortByCheckNumber
    V_no_of_lines_per_pageV_inner_group_And_V_First_rec
    ChooseWhen Void by Overflow
    ************************** VOID **************************                                                                                                                       **** VOID ****
    ************VOID************                                                                 ************VOID************
    ************VOID************                                                                
    End when
    Otherwise
    Invoice No.     Invoice Date     Description     Gross Amount     Discount     Net Amount
    Grp:DocumentPayable
    ChooseWhen Setup Check
    Document Seq          Invoice No     *********          Document Description               *******          Payment Amt
    End when               
    OtherwiseDocument Seq
    If_For
    Invoice No
    filler_chk
    Invoice Date
    Document Description
    Doc Gross Amt
    t.00
    tt.00ef
    End_filer
    PLEASE DETACH AND RETAIN THIS STATEMENT AS RECORD OF YOUR PAYMENT.     0.00
    t.00
    tt.00
    <?call-template:Header?>
    <?template:countdown?>
    Temp_Param
    Recursive_Template
    <?end template?>
    <?template:Header?>
    End otherwise
    End Choose
    EndGrp:DocumentPayable 
    page_breakEnd_if_And_For_loopBelow will be printing the check details.
    Please help.
    Thanks and Regards.

    HI,
    I played with it for some days trying to debug and found that there is a box which is hidden which has 2 lines and PER written. U may have to drag the box to a next page to see the box completely and type in the name of the person for signature and then put the box again. I did that and now it looks fine:)

  • Newbie trying to query an XML field in Clob

    I've been unsuccessfully trying to query XML data in a CLOB field today without much success.
    The clob field stores approvals (Edited, Reviewed, Published) for each version.
    I'm trying to get the latest version (in this case 13) and what state (name) it is at (in this case 'Reviewed')
    Below is an example of the table and field with a single XML column...
    desc WIKI.OS_PROPERTYENTRY
    Name                                              Null?       Type
    ENTITY_NAME                                         NOT NULL VARCHAR2(125)
    ENTITY_ID                                         NOT NULL NUMBER(19)
    ENTITY_KEY                                         NOT NULL VARCHAR2(200)
    KEY_TYPE                                               NUMBER(10)
    BOOLEAN_VAL                                               NUMBER(1)
    DOUBLE_VAL                                               FLOAT(126)
    STRING_VAL                                               VARCHAR2(255)
    TEXT_VAL                                               CLOB
    LONG_VAL                                               NUMBER(19)
    INT_VAL                                               NUMBER(10)
    DATE_VAL                                               DATE
    SQL> select xmltype(text_val) from wiki.os_propertyentry where entity_id = 7274716 and entity_key = 'com.comalatech.workflow.approvals';
    XMLTYPE(TEXT_VAL)
    <ApprovalChecks>
      <ApprovalCheck>
        <name>Edited</name>
        <version>7</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2008-10-31 13:47:25.638 NZDT</date>
         <comment>Initial import from Word document without change</comment>
          </Approver>
        </approvers>
        <weight>10</weight>
        <id>1</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Reviewed</name>
        <version>7</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2008-10-31 13:47:30.532 NZDT</date>
         <comment/>
          </Approver>
        </approvers>
        <weight>20</weight>
        <id>2</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Signoff</name>
        <version>7</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2008-10-31 13:47:32.532 NZDT</date>
         <comment/>
          </Approver>
        </approvers>
        <weight>30</weight>
        <id>3</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Edited</name>
        <version>8</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2008-11-02 10:54:07.903 NZDT</date>
         <comment>Updated references re Wiki, removed unwanted sections</comment>
          </Approver>
        </approvers>
        <weight>10</weight>
        <id>4</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Reviewed</name>
        <version>8</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2008-11-02 10:54:10.552 NZDT</date>
         <comment/>
          </Approver>
        </approvers>
        <weight>20</weight>
        <id>5</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Signoff</name>
        <version>8</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2008-11-02 10:54:13.161 NZDT</date>
         <comment/>
          </Approver>
        </approvers>
        <weight>30</weight>
        <id>6</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Edited</name>
        <version>9</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2009-11-13 08:53:00.649 NZDT</date>
         <comment>Testing approval information</comment>
          </Approver>
        </approvers>
        <weight>10</weight>
        <id>7</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Edited</name>
        <version>9</version>
        <approvers>
          <Approver>
         <approved>false</approved>
         <user>bgra030</user>
         <date>2009-11-13 08:53:13.830 NZDT</date>
         <comment/>
          </Approver>
        </approvers>
        <weight>10</weight>
        <id>8</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Edited</name>
        <version>12</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2009-11-23 11:08:14.666 NZDT</date>
         <comment>Changes due to self auditing, using Study Audit Checklist and DM Study Checklist</comment>
          </Approver>
        </approvers>
        <weight>10</weight>
        <id>9</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Reviewed</name>
        <version>12</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2009-11-23 11:08:20.345 NZDT</date>
         <comment/>
          </Approver>
        </approvers>
        <weight>20</weight>
        <id>10</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Signoff</name>
        <version>12</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2009-11-23 11:08:23.997 NZDT</date>
         <comment/>
          </Approver>
        </approvers>
        <weight>30</weight>
        <id>11</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Edited</name>
        <version>13</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2011-10-31 10:42:37.703 NZDT</date>
         <comment>No change, just change of name of a linked page</comment>
          </Approver>
        </approvers>
        <weight>10</weight>
        <id>12</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Reviewed</name>
        <version>13</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2011-10-31 10:42:40.596 NZDT</date>
         <comm
    1 row selected.My query is way off,... I can't even get it to run, let alone getting the record I want without some hard coding...
    Can anyone help?
    Thanks in advance.
    select y.y_name, y.y_version, z.z_approved, z.z_user, z.z_date, z.z_comment
    from WIKI.os_propertyentry t,
         XMLTABLE('$p/ApprovalChecks/ApprovalCheck'
                  PASSING t.text_val as "p"
                  COLUMNS y_name       VARCHAR2(30) PATH 'ApprovalCheck/name',
                          y_version    NUMBER       PATH 'ApprovalCheck/version',
                          Approver     XMLTYPE      PATH 'ApprovalCheck/approvers/Approver/*') y,
         XMLTABLE('$a/Approver'
                  PASSING y.Approver as "a"
                  COLUMNS z_approved  VARCHAR2(8)   PATH 'Approver/approved',
                          z_user      VARCHAR2(30)  PATH 'Approver/user',
                          z_date      DATE          PATH 'Approver/date',
                          z_comment   VARCHAR2(100) PATH 'Approver/comment') z
    where entity_id = 7274716 and entity_key = 'com.comalatech.workflow.approvals'
    and   t.name = 'Reviewed'
    and   t.version = 13;
               PASSING t.text_val as "p"
    ERROR at line 4:
    ORA-00932: inconsistent datatypes: expected - got CLOB

    Further to the above, the query returns a single record okay,...
    SQL > l  
      1  with all_versions as (
      2    select c.title, y.y_name, y.y_version, z.z_approved, z.z_user, z.z_date z_date, z.z_comment,
      3           row_number() over( order by to_timestamp_tz(z_date, 'YYYY-MM-DD HH24:MI:SS.FF3 TZD') desc ) as rn
      4    from wiki.os_propertyentry t, wiki.content c,
      5         XMLTABLE('$p/ApprovalChecks/ApprovalCheck'
      6               PASSING xmltype(t.text_val) as "p"
      7               COLUMNS y_name       VARCHAR2(30) PATH 'name',
      8                    y_version       NUMBER       PATH 'version',
      9                    Approver       XMLTYPE      PATH 'approvers/Approver/*') y,
    10         XMLTABLE('$a'
    11               PASSING y.Approver as "a"
    12               COLUMNS z_approved  VARCHAR2(8)   PATH '/approved',
    13                    z_user      VARCHAR2(30)  PATH '/user',
    14                    z_date      VARCHAR2(30)  PATH '/date',
    15                    z_comment      VARCHAR2(100) PATH '/comment') z
    16    where c.contentid = t.entity_id
    17    and   c.spaceid = (select spaceid from wiki.spaces where spacename = 'Quality')
    18    and   entity_id = 7274716
    19    and entity_key = 'com.comalatech.workflow.approvals'
    20    )
    21  select title, y_name, y_version
    22  from all_versions
    23* where rn = 1
    SQL> /
    TITLE                           Y_NAME                          Y_VERSION
    Quality Audits (NIHI-5001)     Signoff                     17
    1 row selected.... but I want to now query on all records, not just one.
    When I comment out the clause (and entity_id = xxxxx) I now get an error. I should have got ~300 records,.... what do I need to do to make this work?
    SQL > 18
    18*   and   entity_id = 7274716
    SQL> > c /and/-- and
    18*   -- and     entity_id = 7274716
    SQL > l
      1  with all_versions as (
      2    select t.entity_id, c.title, y.y_name, y.y_version, z.z_approved, z.z_user, z.z_date z_date, z.z_comment,
      3           row_number() over( order by to_timestamp_tz(z_date, 'YYYY-MM-DD HH24:MI:SS.FF3 TZD') desc ) as rn
      4    from wiki.os_propertyentry t, wiki.content c,
      5         XMLTABLE('$p/ApprovalChecks/ApprovalCheck'
      6               PASSING xmltype(t.text_val) as "p"
      7               COLUMNS y_name       VARCHAR2(30) PATH 'name',
      8                    y_version       NUMBER       PATH 'version',
      9                    Approver       XMLTYPE      PATH 'approvers/Approver/*') y,
    10         XMLTABLE('$a'
    11               PASSING y.Approver as "a"
    12               COLUMNS z_approved  VARCHAR2(8)   PATH '/approved',
    13                    z_user      VARCHAR2(30)  PATH '/user',
    14                    z_date      VARCHAR2(30)  PATH '/date',
    15                    z_comment      VARCHAR2(100) PATH '/comment') z
    16    where c.contentid = t.entity_id
    17    and   c.spaceid = (select spaceid from wiki.spaces where spacename = 'Quality')
    18    -- and     entity_id = 7274716
    19    and entity_key = 'com.comalatech.workflow.approvals'
    20    )
    21  select entity_id, title, y_name, y_version
    22  from all_versions
    23* where rn = 1
    wikiprod: OPS$IT_DBA > /
              PASSING xmltype(t.text_val) as "p"
    ERROR at line 6:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00241: entity reference is not well formed
    Error at line 8
    ORA-06512: at "SYS.XMLTYPE", line 272
    ORA-06512: at line 1

  • Urgent Help Needed for WVC210 camera setup :)

    Please help!  I am trying to set up a Cisco WVC210 surveilance camera at one of the stores owned by the company I work for.  Its a small business and I am the closest they have to an I.T person !! I have plenty of experience with software but not much on networking so need some idiot proof guidance !   The "administrative guide" is not worth the paper it is printed on!!
    The store has a fixed IP address of 212.9.##.### I connected the camera using ethernet cable.  Set the camera up using the software for the camera, with static ip address of 192.168.0.23.  Set the SSID of the camera to that of the router (a Netgear one).  It worked fine.  I went to unplug so I could have it wireless and NOTHING !!  It did work one time (no idea what i did differently!) but it would not work over the internet which is what we need it to do!  I need the whole thing password protected too! 
    Is there ANYONE who can help me please???  I am at the point of running away from my work and never returning !!!! :s
    Thank you

    Hi Jodie,
    Thank you for posting. In order to make the camera connect wirelessly, first set up the wireless settings in the camera to match the router. I usually open the router configuration page and copy and paste the SSID and Security Passphrase to the camera to avoid error. The next step is to unplug the ethernet cable and power cord from the camera. Then plug only the power back in and the camera should connect wirelessly.
    For remote access to the camera you will need to forward port 80 to the LAN IP address of the camera. (192.168.0.23) This is done in the router. If you need help with port forwarding, you can search the web or call Netgear for assistance.
    If you continue to need assistance with the camera, the fastest and easiest way to get assistance is to call Cisco Small Business Support. www.cisco.com/go/sbsc
    Please go to www.cisco.com and click on "Register" in the upper right to create a user ID. This will allow our engineers to create a case for you.

  • Help needed! Trying to get my life back on track.

    Hello everyone, Long story short, years ago when I was in college and immediately after graduation I ran up several credit cards trying to stay afloat without having to move back in with my parents. A judgement was gotten against me by discover, which was for 3k~. I settled with them for 2k, and sent the last payment today. I got it in writing that the judgement will be "cancelled." I assume this will stay on my credit report, but will be marked as settled? I have two other accounts in collection, and they have both been sold I don't know how many times. I called them a few months ago (probably a bad idea), and offered to settle. They both wouldnt budge much, so I told them it wouldn't work and ended the call. These are the accounts I need help/advice. Information taken from Credit Karma: Calvary Portfolio ServicesOriginal Creditor Citi BankOriginal opened date: Feb 24, 2015 (this doesnt make any sense, since I quit making payments on the card in around 2012)Balance: $1,101 Portfolio Recovery AssociatesOriginal Creditor GE CAPITAL RETAILOriginal opened date: May 20, 2013 (this also doesnt make sense, but I may be mistaken)Balance $720.When I spoke to these guys they had transferred it over to a lawyer in my state. I dont know if it is scare tactics or they actually intend to sue. What should I do? Any advice would be much appreciated.

    Just so I understand, the original balance was $1,700 and you've paid $1,950 to Discover and they offered to vacate if you paid in full, but that would of been a higher amount as it included additional fees? I would try to contact Discover to let them know that you paid the $1,950 as agreed and to find out how to now get it vacated. (don't bring up the other fees). They will highly likely direct you to the attorney. If so, do the same with them. Push very hard to get the judgement vacated now that you've held up your side of  the bargain. If they won't budge but counter that if you pay more they'll vacate, get something in writing and continue making payments or get something in writing that shows the judgement has been satisifed. That might not get it vacated but it would likely sufficient for a future lender to approve you for a mortage, etc.  I'd wait to hit up those other beasts once you know how you'll proceed with this one. Then, save up the full amount and contact each one, one at a time and try to settle for less if they delete. Keep saving and going on to the next one. Yes, another one might sue you. They'll likely threaten to at the least. keep your chin up! You're being proactive. Stay on the grid and work hard and you'll be fine.

  • Re: Help needed in AP Check Printing R12 XML Tags

    Hi,
    I am trying to print the 'Overflow' Image on top of the check area in first page instead of 0.00. and nicely align the check print on the bottom of the 2nd page. I am unable to keep the number of invoices stub as static so that check can be static. Please send me if you have the check print .rtf with overflow logic in it for R12.1.3
    Thx,
    Srini.

    There can be any 'n' number of <Form1>'s in one
    XML.Not if you want the XML to be valid there can't. You would need a root element around all the <Form1>'s to make it valid.
    The technique I was using is,
    1. Convert to clob
    2. User dbms_instr find the location of <Form1> in a
    loop
    3. For every occurence of <Form1> I find
    <TotalEarnings> value and check if this is greater
    than 1 million.
    4. If true, I use dbms_instr to get the values of all
    the tags inside <Form1>
    5. The drawback of using dbms_instr is that it gets
    the value of first occurence of whatever sting we
    supply.In this case
    dbms_instr(xml,'<Gender>',position of Form1) will not
    return null whereas it will return "Female" from the
    next form. This is wrong as it doesnt belong to the
    person who earns more than a million.
    Can anyone suggest a way to fetch the values that
    only belong to the form of the person who earns more
    than a million?Why on earth are you using dbms_instr for this? Oracle has built in XML functionality for use against XMLTYPE data, such as the ExtractValue method and the use of XPATH expressions.
    I'd suggest you start reading some of the manuals regarding XML functionality in Oracle rather than trying to manually parse it all.

  • Help needed badly Insert text data from xml files into tables

    Hi all, I have asked to do insertion of text from a xml file into tables upon receiving using pro*c. i've done quite an amount of research on xml parser in c but there wasn't much information for mi to use for implementation...
    Guys don't mind helping me to clarify few doubts of mine...
    1. Where can i get the oracle xml parser libs? Is it included when i installed oracle 8i?
    2. Is there any tutorials or help files for xml parser libs where i can read up?
    I need the xml parser to recognise the tags, followed by recognising the text after the tags.
    eg. xml format
    <studentID> 0012 </studentID>
    <student> john </student>
    <studentID> 0013 </studentID>
    <student> mary </student>
    text willl be inserted into tables like this:
    studentID | student
    0012 | john
    0013 | mary
    by the way i'm using oracle 8i on HP-UX. Thanks in advance.

    I can answer one of of your questions at least
    1. Where can i get the oracle xml parser libs? Is it included when i installed oracle 8i?You need the XML XDK. You can use http://www.oracle.com/technology/tech/xml/xdkhome.html as your starting point. I believe the 9i version works for 8i.
    I have no pro*c experience so I can't offer any other suggestions regarding how to do this in pro*c.

  • Help needed in Mapping servlet in web.xml file

    Hi Can anyone please tell me what am doing wrong here. I can't see this servlet in my url. Please help.
    <servlet>
    <servlet-name>HelloWorld</servlet-name>
         <servlet-class>HelloWorld</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloWorld</servlet-name>
    <url-pattern>/com/jci/fi/application/eems/HelloWorld/*</url-pattern>
    </servlet-mapping>
    package com.jci.fi.application.eems;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloWorld extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("<html>");
    out.println("<body>");
    out.println("<head>");
    out.println("<title>Naveen Wants to goto TollyWood......!</title>");
    out.println("</head>");
    out.println("<body>");
    out.println("<h1>Hello World!</h1>");
    out.println("</body>");
    out.println("</html>");

    your web.xml shoould be something like this...
    <servlet>
    <servlet-name>HelloWorld</servlet-name>
    <servlet-class>com.jci.fi.application.eems.HelloWorld</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloWorld</servlet-name>
    <url-pattern>HelloWorld</url-pattern>
    </servlet-mapping>
    Hope this helps..
    CK

  • Help  needed  in inserting  into column  of XML type

    i have requirement of inserting data into column of xml type
    eg
    cust product cost
    1 a 3
    1 b 7
    1 c 5
    now required result should
    <PROD-LIST>
    <a>3</a>
    <b>7</b>
    <c>5</c>
    </PROD-LIST>
    Please let me know how to achieve this , i was trying write function , it was working for one values ,but how to do if many values exist .

    Take a deep breath, then retype this putting in all the words and punctuation you missed out the first time until it makes sense.
    Your sample data, for example, could be better formatted using the [pre] and [/pre] tags to preserve formatting and put in a table format. Similarly with your output. Why are two of the numbers floating around freely in your xml but the 3rd isn't?

  • Help needed Newbie

    Hi i am new to the apple iphone and i have version 1.4 and i am trying to install coummunity sources so i can down load more applications why is it saying that its done but i have no ican to see please help anyone

    The installation of any applications on the phone is not supported in the locked version of the phone. If you have modified your phone, you have voided the warranty of the phone and have lost support from Apple and this forum.

  • Real Time Help Needed: Disk Warrior and Setup Assistant

    My system disk crashed a couple of days ago. I installed a clean system on a firewire attached disk and ran Disk Warrior against the failed drive. DW says the disk is too damaged to replace the directory structure. So, I'm in the process of copying over files that it was able to provide access to via the Preview disk. However, I'm wondering whether I can run setup assistant against the Disk Warrior Preview disk to get back the content of the keychain? I had a lot of passwords stored and don't have a backup.
    Anybody offer any help?

    Actually, I just remember another step that probably has something to do with this.
    The directory entries for ~/Library/Mail and the individual mailboxes were corrupt, so Disk Warrior recovered the contents and put them in two arbitrarily named folders. I copied the contents of the Library/Mail folder into the new system's Library/Mail folder. However, I wasn't sure where to put the mailboxes. I looked on my other Mac system and it had a Mailboxes folder inside the Library/Mail folder, so I created new folder called Mailboxes and copied the recovered mailboxes into the new folder.
    Another point that's probably related. The MessageRules.plist file exists in the Library/Mail folder, but the I don't see the rules when I open Mail.app. It looks like Mail.app isn't seeing the contents of Library/Mail.
    Any thoughts?

  • Help needed !  How to find out 'XML Difference' using XDK

    I'm using oracle.xml.differ.XMLDiff.
    I have set XML files.
    Then calling generateXSLFile("somefile")
    While running facing :
    Exception in thread "main" java.lang.NullPointerException
    at oracle.xml.differ.XMLDiff.generateXSL(XMLDiff.java:383)
    at oracle.xml.differ.XMLDiff.generateXSLFile(XMLDiff.java:330)
    at XMLDiffTest.main(XMLDiffTest.java:38)
    Same prob if I use setDocuments(xd1,xd2) ....
    What is the way out ?
    Does anyone have any sample code ?
    TYI
    Kaniska

    To compare XML documents with the XMLDiff class.
    -Add /lib/xml.jar and /lib/xmlparserv2.jar to the Classpath.
    -Parse the two documents to be compared with the DOMParser.
        DOMParser parser=new DOMParser();
                 parser.parse("file://c:/xmlFile1.xml");
    XMLDocument document1=parser.getDocument();
    XMLDocument document2;-Create an object of type XMLDiff
    XMLDiff xmlDiff=new XMLDiff(); -Set the documents to be compared.
    xmlDiff.setDocuments(document1, document2);-Compare the XML documents.
    boolean diff=xmlDiff.diff();If diff is 'true', the documents are different.
    -Generate the XSLT for the differences between the XML documents.
    xmlDiff.generateXSLFile("diff.xslt");

  • Help needed as trying to convert illustrator file to TIFF but problems!!

    I have produced artwork on illustrator and trying to save it as TIFF file but the once saved the file size is considerably smaller. How do i save ai. file to tiff without compromising on size???
    Thanks
    Donna

    Try opening the .ai file using Photoshop.  You should be met with a size and resolution dialog box.  But, have you set an invisible holding line around your artboard?  For instance, let's say your artwork is 5x7".  Create a No Fill, No Stroke rectangle sized at 5x7", place it on the artboard edge and lock it.  Then, use Export > .tiff.  That should hold the size to 5x7" at whatever resolution you chose in the Export As dialog.

Maybe you are looking for

  • HT4972 is it possible to update iphone 3gs to iOS 5 or more?

    I've been told that it's possible to get the most upto date iOS on my iphone 3gs, but everytime I try to update it only goes to 4.1, I'm beginning to wonder if it is even possible or if there is another way of doing it that I haven't yet tried.  I ha

  • Firefox closed tab group after power outage. Need to recover.

    I had months worth of tabs opened and have firefox set to "show windows and tabs from last time." While I had firefox open with all these tabs I lost power to my entire house. When power came back I turned on my computer and open firefox to find out

  • Syntax error in program CL_AC_METRIC_REPOSITORY=======CP When going to managed system configuration in solman 7.1

    Dear SAP Gurus, Good Morning. I'm getting error in managed system configuration in solman 7.1. Error is like The system preparation and Basic configuration in working fine, but when we are going to click the managed system configuration Error getting

  • Audio; can I have 2 running sound tracks?

    Hi All- I have 1/2 a dozen clips in the time line and I have disabled the audio from all (inspector--->Audio---->uncheck Channel Config). These clips are all Irish dance ("Lord of the Dance" type), the audio on the clips is no good, hence I disabled

  • DxO Optics Pro - Aperture plug-in?

    Hi, The Apple list of plug-ins includes DXO Optics Pro.  I've got a trial version of v9.0 & have it running fine as a image editor.  Anyone know how to install it as a plug-in? Have searched several places & mostly found that it does not work as a pl