Maximum input payload size(for an XML file) supported by OSB

Hey Everyone,
I wanted to know, what is the maximum payload size that OSB can handle.
The requirement is to pass XML files as input to OSB and insert the data of the XML files in the oracle staging tables. The OSB will host all the .jca,wsdl, xml, xml schema and other files required to perform the operation.
The hurdle is to understand, what is the maximum XML file size limit, that OSB can allow to pass through without breaking.
I did some test runs and got the following output,
Size of the XML file:  OSB successfully read a file of size, 3176kb but failed for a file of size 3922kb, so the OSB breakpoint occurs somewhere between 3-4 MB, as per the test runs.
Range of number of Lines of XML:  102995 to 126787, since OSB was able to consume a file with lines (102995) and size 3176kb but broke for a file with number of lines (126787) and size 3922kb.
Request to please share your views on the test runs regarding the OSB breakpoint and also kindly share the results, if the same test has been performed at your end.
Thank you very much.

Hey Everyone,
I wanted to know, what is the maximum payload size that OSB can handle.
The requirement is to pass XML files as input to OSB and insert the data of the XML files in the oracle staging tables. The OSB will host all the .jca,wsdl, xml, xml schema and other files required to perform the operation.
The hurdle is to understand, what is the maximum XML file size limit, that OSB can allow to pass through without breaking.
I did some test runs and got the following output,
Size of the XML file:  OSB successfully read a file of size, 3176kb but failed for a file of size 3922kb, so the OSB breakpoint occurs somewhere between 3-4 MB, as per the test runs.
Range of number of Lines of XML:  102995 to 126787, since OSB was able to consume a file with lines (102995) and size 3176kb but broke for a file with number of lines (126787) and size 3922kb.
Request to please share your views on the test runs regarding the OSB breakpoint and also kindly share the results, if the same test has been performed at your end.
Thank you very much.

Similar Messages

  • XML publisher report not generating output for huge XML files

    Changed Depreciation Projections Report output type to XML.
    Defined a Data Definition and a new Data Template (RTF) for this report.
    Ran the Depreciation Projection Report to generate the XML output.
    Ran the XML Report Publisher report to generate teh PDF/Excel output of the above report.
    Output generated for smaller XML files. When XML size is big, the program is running for hours without generating the output.
    Teh RTF template is basically a matrix report in which the number of columns in the report is based on the number of periods the report is run for.
    The same is not working in the Desktop version also. The system is hanging when i try to view the preview pdf.
    The XML file size is approximately 33 MB.
    Please let me know if there is any way we can increase the memory size to see the output.
    Thanks,
    Ram.

    for publisher use Category: E-Business Suite

  • Maximum hard drive size for 350 MHz slot loading?

    Hello,
    What is the maximum hard drive size for a 350 MHz slot loading imac?
    I am aware of a 128 GB limit on imacs. Does the 128 GB hard drive limit apply to all imac CRTs or just the earlier models?
    Here are the specs of my imac:
    Blueberry 350 MHz
    Slot loading CD-ROM drive,
    6 GB hard drive
    Is the maximum hard drive size limit of 127GB apply to this particular model?
    Thanks

    Yes, the last CRT iMac was in 2001. The first machines with built-in greater than 127 GB support were released in June 2002, as this article explains:
    http://docs.info.apple.com/article.html?artnum=86178
    So all CRT iMacs have that limiation.
    http://support.apple.com/specs/imac/
    The 8 GB limit is explained here:
    http://docs.info.apple.com/article.html?artnum=106235

  • Unable to establish a for loop in custom rtf template for seeded xml file

    Hi Experts ,
    I am Unable to establish a for loop in custom rtf template for seeded xml file. i am using <?:for-each:G_BSALINE?> FORM FIELD .....<?:FOR-EACH?END> .AM i missing something?
    Please help.
    Thanks

    Hi,
    Need more information about your XML data structure; however based on the code you provided, the synax does not look right; you have some colon sign where it is not needed etc... You could use the following (although not quite sure if you want to use Form Filed to group by or just display), but look at the example provided below.
    <?for-each-group:G_BSALINE?> FORM FIELD .....<?end for-each-group?>
    Example code:
    <?for-each-group:G_INVOICE_NUM;./INV_TYPE?>
    xxxxxxxxxx
    <?end for-each-group?>
    Thanks!

  • How can I set the maximum number of restarts for my PDF files?

    I want sent my PDF to a friend,but I just allow him see it only twice.
    How can I set the maximum number of restarts for my PDF files?
    My software edition is Acrobat X

    In the old days when PDFs were only opened on desktops and only in Acrobat or Reader, scripting could fake security features and people were generally convinced. As there are so many ways to open a PDF without scripts ever being run (from mobile devices to in-browser display, or simply opening the file in Illustrator), none of that works anymore.

  • Source Reformat menu item disabled for some XML files, but not all

    For some reason, the 'Reformat' option isn't available for some of my XML files (in Source menu it's disabled, in the right-click pop up menu it's not even there). For example in my META-INF folder it's enabled for .wsdl files but not .xml files. In the same project, it's enabled for all .xml files in the WEB-INF folder.
    Any idea what's going on?
    TIA

    Thanks to everyone for their response. But - it is NOT a copyright issue , it is NOT a DRM issue, it is not a Faber College double secret probation encoding issue.
    This is a simple .wmv file, that I have copied, burned, created a disk image, made a copy of and sent to the UK, Germany, Ireland and even New Jersey. It has been played on a MacBook Pro, a MacBook, a Dell whatever, a Sony stand alone DVD player, an LG DVD player. At least three nieces or nephews, and at least 2 canines have put it through ISO 9XXX rigors.
    The problem is that Apple Quick Time 7 Pro with Flip4Mac Pro "can't handle it"
    It opens fine, it plays fine --- but when I try to "output" it via the FILE menu - all of the options
    Share ...
    Export ...
    Export to Web ...
    are greyed out.
    I know nothing abour codecs and wrappers but I tihnk that this is the problem.
    What should I know about the file?
    Ffor example, years ago, all you needed to know about a Mac file was the "Creator" and the "Type" - both were 4 character codes. something like ADOB for Adobe and PMK2 for Pagemaker 2.0.
    Any help identifying the file and what I can use to get it onto my iPhone will be appreciated.
    Thank you.

  • Correct adapter to use for an XML file

    Hi,
    My current scenario for our business partner is that we are sending them an 850 and 856 then an XML file.
    For 850 and 856, we are using AS2 adapter. For the XML file, could I still use the same adapter?  Or I need to use File adapter instead?
    My scenario for the xml file is that an IDoc is converted to an XML file.  This XML file is then sent to the business partner.
    Please advise.
    Thanks very much.
    Regards,
    Lex

    Hi VJ,
    I just found out that I could also use the AS2 adapter to send the xml file to the trading partner.
    Thanks for your kind response.
    Regards,
    Lex

  • How-to use Excel for the XML file input?

    Hello all,
    Following our discussion with Gerhard Steinhuber on the very nice tutorial from Horst Schaude , "How to upload mass data via XML File Input" , I am starting this new discussion.
    In the comments section of this previous cited tutorial, Rufat Gadirov explains how to use a generated XML from Eclipse instead of your XSD file as your source in Excel.
    However, in spite of all the instructions, I am still facing the same issue in Excel when I try to save my file as XML : "The XML maps in this workbook are not exportable".
    What I try to do is to create one or more Sales Orders with multiple Items in it from a XML File Input, using excel to enter data.
    The part with the File input is working (if I directly upload my file to the webDAV, it creates a sales order instance with multiple items).
    The only missing part is the Excel data input that I cannot make work. Any help on this matter would be greatly appreciated.
    Here is my XML file that I try to use as a source in Excel before inputing data from Excel:
    <?xml version="1.0" encoding="UTF-8"?>
    <p:MySalesOrderUploadedIntegrationInputRequest xmlns:p="http://001365xxx-one-off.sap.com/YUUD0G3OY_" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <MessageHeader>
        <CreationDateTime>2015-03-02T12:00:00.000Z</CreationDateTime>
    </MessageHeader>
        <List actionCode="01" listCompleteTransmissionIndicator="true" reconciliationPeriodCounterValue="0">
            <MySalesOrderUploaded>
              <MySalesOrderUploadedID>idvalue0</MySalesOrderUploadedID>
              <MyBuyerID schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeID="token">token</MyBuyerID>
              <MyDateTime>2015-03-02T12:00:00.000Z</MyDateTime>
              <MyName languageCode="EN">MyName</MyName>
              <MyBillToParty schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyBillToParty>
              <MyDateToBeDelivered>2001-01-01</MyDateToBeDelivered>
              <MyEmployeeResponsible schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyEmployeeResponsible>
              <MySalesUnit schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MySalesUnit>
                <MyItem>
                    <MyItemID>token</MyItemID>
                    <MyItemProductID schemeAgencyID="token" schemeID="token">token</MyItemProductID>
                    <MyItemDescription languageCode="EN">MyItemDescription</MyItemDescription>
                    <MyProductTypeCode>token</MyProductTypeCode>
                    <MyRequestedQuantity unitCode="token">0.0</MyRequestedQuantity>
                    <MyConfirmedQuantity unitCode="token">0.0</MyConfirmedQuantity>
                    <MyNetAmount currencyCode="token">0.0</MyNetAmount>
                </MyItem>
            </MySalesOrderUploaded>
            <MySalesOrderUploaded>
              <MySalesOrderUploadedID>idvalue0</MySalesOrderUploadedID>
              <MyBuyerID schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeID="token">token</MyBuyerID>
              <MyDateTime>2015-03-02T12:00:00.000Z</MyDateTime>
              <MyName languageCode="EN">MyName</MyName>
              <MyBillToParty schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyBillToParty>
              <MyDateToBeDelivered>2001-01-01</MyDateToBeDelivered>
              <MyEmployeeResponsible schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyEmployeeResponsible>
              <MySalesUnit schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MySalesUnit>
                <MyItem>
                    <MyItemID>token</MyItemID>
                    <MyItemProductID schemeAgencyID="token" schemeID="token">token</MyItemProductID>
                    <MyItemDescription languageCode="EN">MyItemDescription</MyItemDescription>
                    <MyProductTypeCode>token</MyProductTypeCode>
                    <MyRequestedQuantity unitCode="token">0.0</MyRequestedQuantity>
                    <MyConfirmedQuantity unitCode="token">0.0</MyConfirmedQuantity>
                    <MyNetAmount currencyCode="token">0.0</MyNetAmount>
                </MyItem>
            </MySalesOrderUploaded>
        </List>
    </p:MySalesOrderUploadedIntegrationInputRequest>
    Thank you all for your attention.
    Best regards.
    Jacques-Antoine Ollier

    Hello Jacques-Antoine,
    I suppose that as you have tried to construct a map from the schema, you have taken the elements from the List level down. In this case I also can't export the map.
    But if you take the elements from the level MySalesOrderUploaded down, you'll get the exportable map (screenshots)
    Best regards,
    Leonid Granatstein

  • Bouncy Castle Encryption for Large XML Files?

    Hi,
    I am trying to encrypt files > 8 KB using the KeyBasedLargeFileProcessor Utility class of Bouncy Castle.
    It's encrypting the file. But, unable to decrypt the same encrypted file. Hence it's encrypting incorrectly.
    While trying to decrypt the encrypted file, it says "It was encrypted with a key (4E616D65) that does not exist"
    Please suggest what change needs to be made in the 'encryptFile' method where it says -
    "OutputStream cOut = cPk.open(out, new byte[1 << 16]);"
    I tried changing the value, but it doesn't work. The maximum file size that we may encrypt is around 3 MB.
    The files that are being encrypted / decrypted are XML files.
    Any inputs are highly appreciated.
    Thanks,
    Tan

    While trying to decrypt the encrypted file, it says "It was encrypted with a key (4E616D65) that does not exist" So use the same key you encrypted with.
    Please suggest what change needs to be made in the 'encryptFile' method where it says -
    "OutputStream cOut = cPk.open(out, new byte[1 << 16]);" Do you have some evidence that that's where the problem is?

  • Change font size in an XML file

    I bought a template and this page is the text on the opening
    page. The Title is bold and a bigger font than the next paragraph
    and the first line of the data is what I really want in the tittle
    but the line is a bit to long so I'm looking to change the size of
    the font. I see no code that makes the tittle bold and a bigger
    text so i'm thinking it must be tied to the template. Please if
    someone can help I would be greatly appreciated.
    It's been 15 years since I messed with a web page. Also one
    last question. Look at my site dkdaniels.com and the bottom of the
    first page left side where copyright is at there is a file called
    settings.xml and there is a place to change that info which I did,
    but also on the right it sasy designed by and your suppose to be
    able to imput your name and I see no such info in the settings file
    so does anyone know where one can edit that?
    Many Thanks
    DK

    .oO(dkdaniels)
    >I bought a template and this page is the text on the
    opening page. The Title is
    >bold and a bigger font than the next paragraph and the
    first line of the data
    >is what I really want in the tittle but the line is a bit
    to long so I'm
    >looking to change the size of the font. I see no code
    that makes the tittle
    >bold and a bigger text so i'm thinking it must be tied to
    the template. Please
    >if someone can help I would be greatly appreciated.
    An XML file alone is pretty useless. For the Web there
    usually has to be
    a script or a stylesheet to turn the XML into HTML which a
    browser can
    understand. So check that stylesheet or whatever else there
    might be.
    > It's been 15 years since I messed with a web page. Also
    one last question.
    >Look at my site dkdaniels.com and the bottom of the first
    page left side where
    >copyright is at there is a file called settings.xml and
    there is a place to
    >change that info which I did, but also on the right it
    sasy designed by and
    >your suppose to be able to imput your name and I see no
    such info in the
    >settings file so does anyone know where one can edit
    that?
    There's no content on that site. All I get is a blank/black
    page.
    Micha

  • Write XML CLOB 10 MB in size to an XML file

    Hi,
    I am trying to export a table into an XML file. Using various examples, I have learned that is really easy to handle objects smaller that 32767 bytes (characters).
    The problem is working with big chunks. My XML CLOB is just over 10 MB in size. I can easilly break it into smaller pieces but then I risk to write chr(10) in the middle of a XML Tag (which happened). I have an idea of finding a way around the problem but there are two issues:
    1. DBMS_LOB.instr function returns 0 if offset grows above appx 1100.
    2. I tried this in oreder to avid the limitation from item 1.:
    for c = 1..dbms_lob.getlength(CLOB) loop
    dbms_lob.read(CLOB,c,1,MyString);
    if MyString = chr(10) then
    utl_file.put_line(MyLine);
    MyLine := '';
    else
    MyLine := MyLine || MyString;
    end if;
    end loop;
    This way I generate perfect XML structure, and it takes about an hour of cpu time to create 2.3 MB file. I have tried to run ir for a big one, and it took just over 7 hours to get to 10.2 MB when I had shut it down.
    Does anybody has any suggestions?

    utl_file.put(...) will write the contents of the buffer without a newline
    utl_file.put_line will write the contents of the buffer plus a newline character. So, if you use utl_file.put_line(largebuffer) you will get a newline character after the buffer that may break tags.
    The following should produce the string:
    <tag>
    in a file:
    utl_file.put(fil, '<ta');
    utl_file.put(fil, 'g>');
    the following PL/SQL code will produce the string:
    <ta
    g>
    in a file:
    utl_file.put_line(fil, '<ta');
    utl_file.put_line(fil, 'g>');
    Are you saying that utl_file.put() is putting newlines in a file?
    This can be because you are not setting MAXLINESIZE for the file to 32767 (or >= your buffer size ) in fopen:
    UTL_FILE.FOPEN (
    location IN VARCHAR2,
    filename IN VARCHAR2,
    open_mode IN VARCHAR2,
    max_linesize IN BINARY_INTEGER) <<<<<<<<<<< set this to 32767 >>>>>>>>>>>>>>>>>>
    RETURN file_type;
    Larry

  • I want to load large raw XML file in firefox and parse by DOM. But, for large XML file the firefox very slow some time crashed . Is there any option to increase DOM handling memory in Firefox

    Actually i am using an off-line form to load very large XML file and using firefox to load that form. But, its taking more time to load and some time the browser crashed. through DOM parsing this XML file to my form. Is there any option to increase DOM handler size in firefox

    Thank you for your suggestion. I have a question,
    though. If I use a relational database and try to
    access it for EACH and EVERY click the user makes,
    wouldn't that take much time to populate the page with
    data?
    Isn't XML store more efficient here? Please reply me.You have the choice of reading a small number of records (10 children per element?) from a database, or parsing multiple megabytes. Reading 10 records from a database should take maybe 100 milliseconds (1/10 of a second). I have written a web application that reads several hundred records and returns them with acceptable response time, and I am no expert. To parse an XML file of many megabytes... you have already tried this, so you know how long it takes, right? If you haven't tried it then you should. It's possible to waste a lot of time considering alternatives -- the term is "analysis paralysis". Speculating on how fast something might be doesn't get you very far.

  • Multiple xsd's for one xml file

    Hi Experts,
    My scenario is HTTP to IDoc. My client is sending me XML file as input. I have got 4 XSD's from that XML file. I imported them into PI with giving references by using new importing method with refenences. I have got 4 XSD's imported succesfully into PI with the references in external references tab.
    Tha problem is each XSD is creating multiple messages(splitted) in PI. I can't use any one message in mapping becuase no message has full message to map with the output. One message has reference to the other message.
    Please suggest me how to proceed...
    Thanks-
    Ramesh.

    There should be a Main XSD which will refer the other (4) XSDs....right now you seem to be importing the XSDs independently.
    If XSD1 is referring XSD2, XSD2 is referring XSD3 and so on.....then XSD1 will form your Main XSD and then each XSD will have a separate reference to the next XSD.....all the XSDs need to be imported in XI.
    For example, create Data-types DT1, DT2, DT3, DT4 and provide a reference between them....DT2 in DT1, DT3 in DT2, DT4 in DT3....ultimately DT1 will refer all the other strcutures.....I hope this is what you are looking for.

  • Maximum WPA2 key size for Apple TV (gen 2 & 3)

    Does anyone know the maximum key size for WPA2?  I am using a Airport Extreme with a key size of 63 characters and the Apple TV doesn't seem to accept it.  Before I reconfigure the whole network, I would like to know the max key size versus trial and error (kind of a pain to use the remote to input the characters).

    Ok.. in order to help other users i will post this..
    I have resolved the issue... it was rather simple and dumb...
    I never use windows media player ever.. i do not like it and can not stand it.. because in my case it was a brand new windows installation this fix will only apply to certain users..
    because it was a brand new windows installation.. i had never clicked on windows media player.. apparently streaming settings are embedded into windows media player for the windows 7 OS...    in past installations that i have used for years.. i simply never ever clicked on windows media player, as i never had a reason to.. i use itunes for my ipad, iphone etc.. etc... 
    by accident and shear luck i decided to click on windows media player.. and of course go through the express settings....  after i did this all of my streaming problems to my apple tv gen2 disapeared... HD movies now start almost instantly... so as i stated above apparently there are media streaming settings embedded into the OS through windows media player... doesnt make any sense to me as i never use the program.. but whatever that fixed my issue..
    so for any of you windows 7 people out there using a windows 7 pc as your itunes sync computer and using that itunes library to stream to your apple tv... make sure you have done the initial setup at min.. of windows media player.. i still left itunes as my default player....  everything now works flawlessly... infact for whatever reason.. even in an HD movie my network almost has half the movie synced now accross the bar before the movie starts so now my apple tv is blazing fast....
    i have been struggling with this for 2 days now and simply never gave it a thought that windows media player would ever have anything to do with itunes streaming a totally seperate program.. but it did..
    i hope this helps other people with similar problems.
    good luck

  • Sax Parser for loading XML file

    We have a requirment by which we need to load huge XMl file in our DB everyday.
    THe XML file format is like --
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
    <emp>
    <ename>aaa</ename>
    <sal>3000</sal>
    </emp>
    <emp>
    <ename>bbb</ename>
    <sal>5000</sal>
    </emp>
    <dept>
    <name>productiong</name>
    <location>USA</location>
    <dept>
    I have written XMl SAX parser to load this file into DB -
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import org.xml.sax.XMLReader;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    import org.xml.sax.Attributes;
    import java.io.*;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    import oracle.xml.sql.*;
    import oracle.sql.*;
    import oracle.jdbc.*;
    import oracle.jdbc.pool.OracleDataSource;
    import java.util.*;
    public class test extends DefaultHandler
    String thisElement="";
    String table_name="";
    String table_name_2="";
    String sql="";
    String value_clause="";
    StringBuffer value_clauseBuffer;
    String Insert_sql="";
    int flag;
    String columnNames="";
    String questionmarks="";
    static String conStr = "jdbc:oracle:thin:@abcd1234:1521:dss501";
    static Connection conn;
    String arrayValues[] = new String[30];
    int j = 0;
    int emptyElementFlag = 0;
    public SurveyReader() throws SQLException, FileNotFoundException, IOException{
    DBConnect("username", "password");
    public static void DBConnect(String username, String password)
    throws SQLException, FileNotFoundException, IOException {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    conn = DriverManager.getConnection(conStr, username, password);
    conn.setAutoCommit(true);
    public void startElement(String namespaceURI, String localName,
    String qName, Attributes atts) throws SAXException {
    thisElement = qName;
    if (thisElement!=table_name){
    columnNames = columnNames + ", " + qName;
    questionmarks = questionmarks +", " + "?";
    emptyElementFlag =0;
    public void characters(char[] ch, int start, int length)
    throws SAXException {
    if (thisElement !="root"){     
    if ((length == 0) && (thisElement !="") ){
    table_name = thisElement;
    sql = " Insert into "+ table_name +"(";
    value_clause="";
    value_clauseBuffer =null;
    columnNames = "";
    questionmarks ="";
    j =0;
    if ((length != 0) && (thisElement!="") && (thisElement!=table_name)){
    emptyElementFlag = 1;
    String s = new String(ch, start, length);
    String newString = s.replaceAll("'", "''");
    // String newString = s;
    if (value_clauseBuffer== null){
    value_clauseBuffer = new StringBuffer(newString);
    else{
    value_clauseBuffer.append(newString);
    public void endElement(String namespaceURI, String localName, String qName)
    throws SAXException {
    if (thisElement !="root"){
    if ((!(value_clauseBuffer == null))||((emptyElementFlag ==0) && (qName !=table_name))) {
    try{
    //value_clauseBuffer.append("', '");
    if (value_clauseBuffer == null){
    arrayValues[j]="";
    else{
    arrayValues[j]=""+value_clauseBuffer;
    j = j+1;
    value_clauseBuffer = null;
    emptyElementFlag =0;
    }catch(Exception e){
    System.err.println(e);
    System.exit(2);
    if (qName == table_name){
    if (!(value_clauseBuffer == null)){
    value_clause = "'"+value_clauseBuffer;
    columnNames =columnNames.substring(1, columnNames.length());
    int paramNumber = j;
    questionmarks =questionmarks.substring(1, questionmarks.length());
    sql = sql + columnNames + " ) values (" + questionmarks +"); ";
    Insert_sql=Insert_sql + sql;
    sql = "Begin "+sql + " End; ";
         try{
         PreparedStatement pstat = conn.prepareStatement(sql);
    for (int i=0; i<=j-1; i++ ){
    int k = i+1;
    pstat.setObject(k, arrayValues);
         ResultSet rset = pstat.executeQuery();
         rset.close();
         pstat.close();
    catch (Exception e) {
    System.err.println(e);
    System.out.print("sql " + sql);
    System.exit(1);
    table_name_2 = table_name;
    thisElement = "";
    public static void main (String args[]) {
    XMLReader xmlReader = null;
    System.out.println("Time " + new java.util.Date());
    try {
    SAXParserFactory spfactory = SAXParserFactory.newInstance();
    spfactory.setValidating(false);
    SAXParser saxParser = spfactory.newSAXParser();
    xmlReader = saxParser.getXMLReader();
    xmlReader.setContentHandler(new SurveyReader());
    xmlReader.setErrorHandler(new SurveyReader());
    InputSource source = new InputSource("short.xml");
    xmlReader.parse(source);
    conn.close();
    } catch (Exception e) {
    System.err.println(e);
    System.exit(1);
    This parser takes 2 hours to laod file of size around 8MB.
    ANy suggestions on improving performance of the parser.
    ANy other approach I should be taking to load this file into DB.
    We are using ORacle 9i DB with Character set UTF 8.
    Thanks!

    String buf = (new String(ch, start, length)).trim();
    if (thisElement != "root"){   
    if ((buf.length() == 0) && (thisElement !="") ){
    It run ok!
    Thanks 58871!
    Now, i want to export oracle table to xml file like :
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
    <emp>
    <ename>aaa</ename>
    <sal>3000</sal>
    </emp>
    <emp>
    <ename>bbb</ename>
    <sal>5000</sal>
    </emp>
    </root>
    Can SAX export to xml format?
    Pham Thanh Tung

Maybe you are looking for

  • HTTP Error 403 - Forbidden Error Accessing Simplest Example

    If I follow the instructions for creating the SIMPLEST example in the "iFS Online Resources" document, everything seems to work until the very last step. When I click on one of my sample objects a new window is launched for the JSP, but it gets an HT

  • BPM Deployment Exception

    Hi ALl, while deploying my BPM application i'm getting this exception, can any body let me know what's could be the problem. Thanks com.sap.engine.services.dc.api.deploy.DeployException: [ERROR CODE DPL.DCAPI.1027] DeploymentException. Reason: ASJ.dp

  • How can I project a video chat to a big screen for an audience to see?

    I want to know how to project a video chat to the large screen?

  • How to open a file(available on Desktop) from SAP?

    Hi, I have created dialog program. when i execute this program, it show one browse button. when user press this browse button, it display a dialog box and user can select file available on their desktop. e.g: Selected file path is  "c:\gaurav.txt" I

  • Strange CPPr Behaviour

    Hi All, I try to play with CPPr and I came with the following to drop all packets to closed ports except RIP: class-map type port-filter match-all closed match  closed-ports class-map type port-filter match-any validPorts match  port udp 520 policy-m