To insert the xml data's generated dynamically it to orac very very urgent

I AM WORKING IN A PROJECT WHICH RECEIVES THE DATA FROM FLAT FILES
AND CONVERT IT TO XML FILE>
I am in need to convert the xml file generated dynamically through out the year map it to correct datafield it the database and insert it in to oracle data base using java and jsp, servlets.
i also need mechanism to be explained detailed and some sample codeings
of converting the data from database to xml because
and i also need to convert the data taken from sql server7.0 put it in xml file and once again read parse and insert in to oracle database.
some sample codeings of the mechanisma and explaninations.
I am in very very urgent-

Hello sir,
Thanks for the guidence.
I need to insert data's into database columns where i should fetch data from xml file.
please
urgent.

Similar Messages

  • Any way to insert the XML generated from dataTable into the oracle?

    Hi guys,
    I want to know if there is a way to insert the XML generated from dataTable(dataTable.GetXML()) into the oracle?
    Thanks in advance,

    There is o extractor to load assessment cycles; instead you can load dtaa after the assesment cycle is complte in R/3. You can schdeule the job in BW accordingly.
    May I know what exactly is the requirement.
    Ravi Thothadri

  • Reg :  vo.writeXML() how to filter the data before generating the xml data

    Hi team,
    I have table region with multi selection option.
    My requirement is to fetch the data and generate the xml data for the selected rows.
    By using : writeXML() --> it is fetching all the data.
    What are the methods i need to use,so i can fetch only the selected data ?
    Any pointers ?
    -Sridhar

    Hi Peddi,
    i tried the way u mentioned :
    But the new VO2 (Target) VO is having an extra row, iam not understanding how that is getting stored in VO2.
    Can you please review the below query and let me know if any issue.
    public void copyVO()
    int rowCount=0 ;
    OAFXMLVOImpl vo1 = getOAFXMLVO1(); //source
    OAFXMLVOImpl vo2 = getOAFXMLVO2(); //destination
    OAFXMLVORowImpl row2= null ;
    OAFXMLVORowImpl row1 =null;
    if(vo2!=null && vo2.hasNext())
    { vo2.first();
    do
    vo2.getCurrentRow().remove();
    vo2.next();
    while (vo2.hasNext());
    oracle.jbo.Row[] rows = (oracle.jbo.Row[]) vo1.getFilteredRows("check", "Y");
    rowCount = rows.length;
    if(rowCount>0)
    vo2.setMaxFetchSize(0);
    for(int i=0;i<rowCount;i++)
    row1 = (OAFXMLVORowImpl)rows;
    System.out.println("User ID-->"+ row1.getUserId());
    System.out.println("Checked -->"+ row1.getcheck() );
    row2 = (OAFXMLVORowImpl) vo2.createRow();
    row2.setUserId(row1.getUserId());
    row2.setcheck(row1.getcheck());
    vo2.insertRow(row2);
    row2.setNewRowState(row2.STATUS_INITIALIZED);
    } //end of if
    -Sridhar

  • Want attach the XML data file with layout template in Oracle 10g

    Hi All,
    I need a help from you genius guys.
    I am genrating reports in BI with xml the procedure which I am following is as below.
    1. generating XML from the RDF
    2. creating a template in .rtf format
    3.after that loading the xml to the template then getting the required report.
    This all is doing through the given buttons
    But now my requirement is to create the gui from user can select the report and get the desire output file so how we would be able to attach the XML data file with layout template in Oracle 10g.
    If you require more detail please let me knnow.
    Thanks,
    Harry

    I am not using Oracle apps.
    I am using oracle 10g reports and I get something in it like one patch I downloded and one java code is having which creates the batch file ...still I am working on it ..
    If you will get some please share so that it will be helpful.
    Thanks,
    Harry

  • How to store the XML data? file or database?

    i'm frustrate at it.
    If store XML data into files, then when i query any data,how can i search data using relationship as SQL?
    But if store XML data into database.How can i transform the xml data to the data table?
    Can any one give me an clear example.

    XML is perfect for data interchange and readability. However, to make it searchable you should resolve it properly into tables, in accordance of your own choice of model.
    1. Investigate the XML files and resolve the model
    <Person sex="male">John
    <Pet animal="dog">Doggy</Pet>
    <Pet animal="cat">Catty</Pet>
    </Person>
    2. Create the tables in your database, let one or several tables keep the raw xml for retrieval of original xml data.
    --- XMLDocument ---
    id XML_data
    --- Person ---
    id XML_Document_id sex name
    (foreign key)
    --- Pet ---
    id Person_id animal name
    (foreign key)
    3. Resolve data from the xml files and insert it into the database. Do this through your ContentHandler, or from your DOM model.
    --- XMLDocument ---
    id XML_data
    0 <Person>...</Person>
    --- Person ---
    id XML_Document_id sex name
    0 0 male John
    --- Pet ---
    id Person_id animal name
    0 0 dog Doggy
    1 0 cat Catty
    Gil

  • Spry XML data set and dynamic post variables

    Hi,
    I am trying to create an XML data set that has dynamic post
    variables.
    Everytime something is pressed on the page a variable changes
    and I then want to reload the XML data set using the new variable.
    I know I can just pull in an XML with all possible variables
    and filter client side but this would make it way too large.
    Does anyone know what I may need to do.
    I tried this:
    var myVar = 0;
    var dss = new Spry.Data.XMLDataSet (
    '../../cgi-bin/server_details.pl' , 'top' , { method: 'POST' ,
    postData: sid=ajaja21&ip=127.0.0.1&cid=' . myVar ,
    subPaths: [ "auth" , "plugins" , "plugins/plugin" ] , keepSorted:
    "true", sortOnLoad: "plugins/plugin/order", sortOrderOnLoad:
    "descending", useCache: false, loadInterval: 10000 } );
    onclick="myVar=1";
    But the script doesn't understand the post variables sent (it
    does when I remove the . myVar part and put in a static value). I
    think it isn't sending that dynamic variable with the post
    variables.
    Any ideas anyone?
    Thanks

    Well I had it working when I stripped back everything and
    just had the dss data set and a single onclick function, but now
    that I put it back together it hash foobared again.
    Here are the relevant bits of code that I've changed.
    The function to change server id:
    //function to run when changing the server id
    function changeServer ( sid ) {
    //set the url to use the current server id
    dss.setURL = ( '../../cgi-bin/server_details.pl' , { method:
    'POST' , postData:
    'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid='+sid
    //force a reload of the server data
    dss.loadData();
    The inital load of the data set
    var dss = new Spry.Data.XMLDataSet (
    '../../cgi-bin/server_details.pl' , 'yams' , { method: 'POST' ,
    postData:
    'sid=7gv1m3vjvagfl7h7qeefb8iodj8evhmb&ip=127.0.0.1&cid=0' ,
    subPaths: [ "auth" , "plugins" , "plugins/plugin" ] , keepSorted:
    "true", sortOnLoad: "plugins/plugin/order", sortOrderOnLoad:
    "descending", useCache: false, loadInterval: 10000 } );
    And the part that changes the server id
    <td align="left" style="cursor:default; width:174px;"
    onclick="changeServer({dsv::servers/server/@id})">{dsv::servers/server/name}</td>
    I checked that the function is receiving the correct server
    id and I even tried hard coding the cid variable to 2 in the change
    function but it still wasn't changing on the server side.
    Any ideas?
    Thanks

  • Inserting large xml data into xmltype

    Hi all,
    In my project I need to insert very large XML data into xmltype column.
    My table:
    CREATE TABLE TransDetailstblCLOB ( id number, data_xml XMLType) XmlType data_xml STORE AS CLOB;
    I am using JDBC approach to insert values. It works fine for data less than 4000 bytes when using preparedStatement.setString(1, xmlData). As I have to insert large Xml data >4000 bytes I am now using preparedStatement.setClob() methods.
    My code works fine for table which has column declared as CLOB expicitly. But for TransDetailstblCLOB where the column is declared as XMLTYPE and storage option as CLOB I am getting the error : "ORA-01461: can bind a LONG value only for insert into a LONG column".
    This error means that there is a mismatch between my setClob() and column. which means am I not storing in CLOB column.
    I read in Oracle site that
    When you create an XMLType column without any XML schema specification, a hidden CLOB column is automatically created to store the XML data. The XMLType column itself becomes a virtual column over this hidden CLOB column. It is not possible to directly access the CLOB column; however, you can set the storage characteristics for the column using the XMLType storage clause."
    I dont understand its stated here that it is a hidden CLOB column then why not I use setClob()? It worked fine for pure CLOB column (another table) then Why is it giving such error for XMLTYPE table?
    I am struck up with this since 3 days. Can anyone help me please?
    My code snippet:
    query = "INSERT INTO po_xml_tab VALUES (?,XMLType(?)) ";
              //query = "INSERT INTO test VALUES (?,?) ";
         // Get the statement Object
         pstmt =(OraclePreparedStatement) conn.prepareStatement(query);
         // pstmt = conn.prepareStatement(query);
         //xmlData="test";
    //      If the temporary CLOB has not yet been created, create new
         temporaryClob = oracle.sql.CLOB.createTemporary(conn, true, CLOB.DURATION_SESSION);
         // Open the temporary CLOB in readwrite mode to enable writing
         temporaryClob.open(CLOB.MODE_READWRITE);
         log.debug("tempClob opened"+"size bef writing data"+"length "+temporaryClob.getLength()+
                   "buffer size "+temporaryClob.getBufferSize()+"chunk size "+temporaryClob.getChunkSize());
         OutputStream out = temporaryClob.getAsciiOutputStream();
         InputStream in = new StringBufferInputStream(xmlData);
    int length = -1;
    int wrote = 0;
    int chunkSize = temporaryClob.getChunkSize();
    chunkSize=xmlData.length();
    byte[] buf = new byte[chunkSize];
    while ((length = in.read(buf)) != -1) {
    out.write(buf, 0, length);
    wrote += length;
    temporaryClob.setBytes(buf);
    log.debug("Wrote lenght"+wrote);
         // Bind this CLOB with the prepared Statement
         pstmt.setInt(1,100);
         pstmt.setStringForClob(2, xmlData);
         int i =pstmt.executeUpdate();
         if (i == 1) {
         log.debug("Record Successfully inserted!");
         }

    try this, in adodb works:
    declare poXML CLOB;
    BEGIN
    poXML := '<OIDS><OID>large text</OID></OIDS>';
    UPDATE a_po_xml_tab set podoc=XMLType(poXML) WHERE poid = 102;
    END;

  • Error while passing date parameter to the XML data definition

    Hi All,
    I have developed a BI publisher report using XML data definition & RTF template.
    This data definition contains a SQL query in it's CDATA section and runs as a concurrent program(without RDF) . We are looking to pass a date parameter to the SQL query and its not accepting the date parameter. However, when we hardcode SYSDATE in the SQL query in place of the parameter, the report runs fine. In the log file it shows that the parameter is being treated in American date style and we are using DD-MON-RRRR format. I have tried to convert the date format however still the error exists.
    What we did ?
    Created a XML data definition which contains the SQL query in its CDATA section & p_rundate (DATE) parameter.
    Registerd the XML data definition as concurrent program with EXECUTABLE= XDODTEXE and Output format as XML with p_date as a date parameter.
    Looking for any available solution for the same.
    Thanks.

    Hi All,
    I have developed a BI publisher report using XML data definition & RTF template.
    This data definition contains a SQL query in it's CDATA section and runs as a concurrent program(without RDF) . We are looking to pass a date parameter to the SQL query and its not accepting the date parameter. However, when we hardcode SYSDATE in the SQL query in place of the parameter, the report runs fine. In the log file it shows that the parameter is being treated in American date style and we are using DD-MON-RRRR format. I have tried to convert the date format however still the error exists.
    What we did ?
    Created a XML data definition which contains the SQL query in its CDATA section & p_rundate (DATE) parameter.
    Registerd the XML data definition as concurrent program with EXECUTABLE= XDODTEXE and Output format as XML with p_date as a date parameter.
    Looking for any available solution for the same.
    Thanks.

  • Unable to Load the XML data file in to RTF template

    Hi Team,
    We are working on the XML publisher reports,where the xml data is containing the Japanese Characters.
    I am facing an error while loading my xml data which has the japanese characters values in between the XML tags into the RTF Template.Though i have installed Japan fonts in my system,still unable to load the data.
    Could any one please help me out in this regard.
    Thanks in Advance.

    Hi;
    Hi please clearfy below question for can make you fast help
    1. What is your OS?
    2. What is your EBS verison?
    3. What is your DB version and Db character set?
    Also check:
    About Oracle XML Publisher Release 5.6.3 [ID 422508.1]
    Regard
    Helios

  • What is the best way to get rid of duplicates in the XML data?

    Hi all,
    Please help me with the best way to get rid of the duplicates in the XML data. Will a transform with some stylesheet do the trick? I need to read on the stylesheet first, but please tell me if that is possible. I have to deal with XML data that has tons of duplicate data. Please see one section of an XML file. You can see that for each charge, the same defendant information (address, ID numbers, etc) is included. Having 10 charges is not uncommon, so I would have the same data repeated 10 times. I first thought that I would use some temp tables to do that, but I wonder if there were a better way. Thanks a lot. Please see the data below.
    Ben
    <ChargeDispositionNotification>
         <TriggeredDateTime>2006-06-20T08:21:31-05:00</TriggeredDateTime>
              <NotificationEvent>DispositionAdded</NotificationEvent>
                   <ChargeDisposition chargeKey="622212">
                        <Charge chargeKey="622212" chargeVersionKey="2320743">
                             <ChargeSequenceID>1</ChargeSequenceID>
                             <ChargeFiledDate>2006-06-20</ChargeFiledDate>
                             <ChargeStatuteOrdinanceRule statuteKey="719">
                                  <StatuteOrdinanceRuleCite>609.222.1</StatuteOrdinanceRuleCite>
                                  <SeverityLevel>Felony</SeverityLevel>
                                  <ChargeLegalDescriptionText>Assault-2nd Degree-Dangerous Weapon</ChargeLegalDescriptionText>
                                  <MinnesotaOffenseCode>M1000</MinnesotaOffenseCode>
                                  <ChargeDescriptionText>Assault-2nd Degree-Dangerous Weapon</ChargeDescriptionText>
                             </ChargeStatuteOrdinanceRule>
                             <ChargeSubjectReference partyKey="558357"/>
                             <ChargePlea>
                                  <PleaDate>2006-06-20</PleaDate>
                                  <PleaJudge judgeKey="00553C">
                                       <JudgeName>
                                            <PersonGivenName>Thomas</PersonGivenName>
                                            <PersonMiddleName>William</PersonMiddleName>
                                            <PersonSurName>Bibus</PersonSurName>
                                            <PersonFullName>Bibus, Thomas William</PersonFullName>
                                       </JudgeName>
                                       <JudicialAgencyIdentifier>MN025015J</JudicialAgencyIdentifier>
                                  </PleaJudge>
                                  <PleaDescriptionText>Not guilty</PleaDescriptionText>
                             </ChargePlea>
                        </Charge>
                   <DispositionEvent>
                        <ChargeDispositionDate>2006-06-20</ChargeDispositionDate>
                        <ChargeDispositionJudge judgeKey="00553C">
                             <JudgeName>
                                  <PersonGivenName>Thomas</PersonGivenName>
                                  <PersonMiddleName>William</PersonMiddleName>
                                  <PersonSurName>Bibus</PersonSurName>
                                  <PersonFullName>Bibus, Thomas William</PersonFullName>
                             </JudgeName>
                             <JudicialAgencyIdentifier>MN025015J</JudicialAgencyIdentifier>
                        </ChargeDispositionJudge>
                        <ChargeDispositionText>Convicted</ChargeDispositionText>
                        <ChargeDispositionSeverityLevel>Felony</ChargeDispositionSeverityLevel>
                        <ChargeDispositionComment>This is the disposition comment</ChargeDispositionComment>
                   </DispositionEvent>
                        <CourtCaseNumber>
                             <MNCISCaseNumber>
                                  <CountyNumber>10</CountyNumber>
                                  <CaseType>CR</CaseType>
                                  <YearFiled>06</YearFiled>
                                  <SequenceNumber>367</SequenceNumber>
                             </MNCISCaseNumber>
                             <CaseNumberIdentifier caseNumberKey="10CR06367">10-CR-06-367</CaseNumberIdentifier>
                        </CourtCaseNumber>
                        <CaseDefendant partyKey="558357">
                             <PersonID>325193</PersonID>
                             <PartyName partyKey="558357" currentNameIndicator="true">
                                  <StandardName>
                                       <PersonGivenName>James</PersonGivenName>
                                       <PersonMiddleName>John</PersonMiddleName>
                                       <PersonSurName>Jetson</PersonSurName>
                                       <PersonFullName>Jetson, James John</PersonFullName>
                                  </StandardName>
                             </PartyName>
                             <PartyAddress partyCorrespondenceIndicator="true" partyKey="558357" currentKnownAddress="true" undeliverableIndicator="false">
                                  <AddressUSStandard>
                                       <AddressStreetNumber>abc</AddressStreetNumber>
                                       <AddressPreDirectional>Northeast</AddressPreDirectional>
                                       <AddressStreet>1st</AddressStreet>
                                       <AddressStreetType>Boulevard</AddressStreetType>
                                       <AddressPostDirectional>Southeast</AddressPostDirectional>
                                       <AddressUnit>
                                            <AddressUnitType>Building</AddressUnitType>
                                            <AddressUnitNumber>3333333333</AddressUnitNumber>
                                       </AddressUnit>
                                       <AddressCity>St. Paul</AddressCity>
                                       <AddressState>MN</AddressState>
                                       <AddressZipCode>555551234</AddressZipCode>
                                  </AddressUSStandard>
                             </PartyAddress>
                             <PartyBirthData currentBirthdate="true">
                                  <PersonBirthDate>1991-12-11</PersonBirthDate>
                             </PartyBirthData>
                             <InterpreterNeededIndicator>false</InterpreterNeededIndicator>
                             <PersonAssignedIDDetails>
                                  <PersonSSNID>
                                       <ID>111-00-1101</ID>
                                  </PersonSSNID>
                                  <PersonDriverLicenseID currentDriverLicenseIndicator="true">
                                       <ID>J-111-000-111-001</ID>
                                       <IDJurisdictionText>Minnesota</IDJurisdictionText>
                                  </PersonDriverLicenseID>
                                  <PersonFBIID>
                                       <ID>FBIMNJ001</ID>
                                  </PersonFBIID>
                                  <PersonStateID>
                                       <ID>MNJ0001</ID>
                                  </PersonStateID>
                             </PersonAssignedIDDetails>
                             <PersonPhysicalDetails>
                                  <PersonSexText>Male</PersonSexText>
                             </PersonPhysicalDetails>
                             <RepresentedBy>
                                  <ProSeIndicator>true</ProSeIndicator>
                             </RepresentedBy>
                        </CaseDefendant>
                   </ChargeDisposition>
    </ChargeDispositionNotification>
    <ChargeDispositionNotification>
         <TriggeredDateTime>2006-06-20T08:21:31-05:00</TriggeredDateTime>
              <NotificationEvent>DispositionAdded</NotificationEvent>
                   <ChargeDisposition chargeKey="622213">
                        <Charge chargeKey="622213" chargeVersionKey="2320744">
                             <ChargeSequenceID>2</ChargeSequenceID>
                             <ChargeFiledDate>2006-06-20</ChargeFiledDate>
                             <ChargeStatuteOrdinanceRule statuteKey="717">
                                  <StatuteOrdinanceRuleCite>609.221.1</StatuteOrdinanceRuleCite>
                                  <SeverityLevel>Felony</SeverityLevel>
                                  <ChargeLegalDescriptionText>Assault-1st Degree-Great Bodily Harm</ChargeLegalDescriptionText>
                                  <MinnesotaOffenseCode>B1000</MinnesotaOffenseCode>
                                  <ChargeDescriptionText>Assault-1st Degree-Great Bodily Harm</ChargeDescriptionText>
                             </ChargeStatuteOrdinanceRule>
                             <ChargeSubjectReference partyKey="558357"/>
                             <ChargePlea>
                                  <PleaDate>2006-06-20</PleaDate>
                                  <PleaJudge judgeKey="00553C">
                                       <JudgeName>
                                            <PersonGivenName>Thomas</PersonGivenName>
                                            <PersonMiddleName>William</PersonMiddleName>
                                            <PersonSurName>Bibus</PersonSurName>
                                            <PersonFullName>Bibus, Thomas William</PersonFullName>
                                       </JudgeName>
                                       <JudicialAgencyIdentifier>MN025015J</JudicialAgencyIdentifier>
                                  </PleaJudge>
                                  <PleaDescriptionText>Not guilty</PleaDescriptionText>
                             </ChargePlea>
                        </Charge>
                        <DispositionEvent>
                             <ChargeDispositionDate>2006-06-20</ChargeDispositionDate>
                             <ChargeDispositionJudge judgeKey="00553C">
                                  <JudgeName>
                                       <PersonGivenName>Thomas</PersonGivenName>
                                       <PersonMiddleName>William</PersonMiddleName>
                                       <PersonSurName>Bibus</PersonSurName>
                                       <PersonFullName>Bibus, Thomas William</PersonFullName>
                                  </JudgeName>
                                  <JudicialAgencyIdentifier>MN025015J</JudicialAgencyIdentifier>
                             </ChargeDispositionJudge>
                             <ChargeDispositionText>Convicted</ChargeDispositionText>
                             <ChargeDispositionSeverityLevel>Felony</ChargeDispositionSeverityLevel>
                             <ChargeDispositionComment>This is the disposition comment</ChargeDispositionComment>
                        </DispositionEvent>
                        <CourtCaseNumber>
                             <MNCISCaseNumber>
                                  <CountyNumber>10</CountyNumber>
                                  <CaseType>CR</CaseType>
                                  <YearFiled>06</YearFiled>
                                  <SequenceNumber>367</SequenceNumber>
                             </MNCISCaseNumber>
                             <CaseNumberIdentifier caseNumberKey="10CR06367">10-CR-06-367</CaseNumberIdentifier>
                        </CourtCaseNumber>
                        <CaseDefendant partyKey="558357">
                             <PersonID>325193</PersonID>
                             <PartyName partyKey="558357" currentNameIndicator="true">
                                  <StandardName>
                                       <PersonGivenName>James</PersonGivenName>
                                       <PersonMiddleName>John</PersonMiddleName>
                                       <PersonSurName>Jetson</PersonSurName>
                                       <PersonFullName>Jetson, James John</PersonFullName>
                                  </StandardName>
                             </PartyName>
                             <PartyAddress partyCorrespondenceIndicator="true" partyKey="558357" currentKnownAddress="true" undeliverableIndicator="false">
                                  <AddressUSStandard>
                                       <AddressStreetNumber>abc</AddressStreetNumber>
                                       <AddressPreDirectional>Northeast</AddressPreDirectional>
                                       <AddressStreet>1st</AddressStreet>
                                       <AddressStreetType>Boulevard</AddressStreetType>
                                       <AddressPostDirectional>Southeast</AddressPostDirectional>
                                       <AddressUnit>
                                            <AddressUnitType>Building</AddressUnitType>
                                            <AddressUnitNumber>3333333333</AddressUnitNumber>
                                       </AddressUnit>
                                       <AddressCity>St. Paul</AddressCity>
                                       <AddressState>MN</AddressState>
                                       <AddressZipCode>555551234</AddressZipCode>
                                  </AddressUSStandard>
                             </PartyAddress>
                             <PartyBirthData currentBirthdate="true">
                                  <PersonBirthDate>1991-12-11</PersonBirthDate>
                             </PartyBirthData>
                             <InterpreterNeededIndicator>false</InterpreterNeededIndicator>
                             <PersonAssignedIDDetails>
                                  <PersonSSNID>
                                       <ID>111-00-1101</ID>
                                  </PersonSSNID>
                                  <PersonDriverLicenseID currentDriverLicenseIndicator="true">
                                       <ID>J-111-000-111-001</ID>
                                       <IDJurisdictionText>Minnesota</IDJurisdictionText>
                                  </PersonDriverLicenseID>
                                  <PersonFBIID>
                                       <ID>FBIMNJ001</ID>
                                  </PersonFBIID>
                                  <PersonStateID>
                                       <ID>MNJ0001</ID>
                                  </PersonStateID>
                             </PersonAssignedIDDetails>
                             <PersonPhysicalDetails>
                                  <PersonSexText>Male</PersonSexText>
                             </PersonPhysicalDetails>
                             <RepresentedBy>
                                  <ProSeIndicator>true</ProSeIndicator>
                             </RepresentedBy>
                        </CaseDefendant>
                   </ChargeDisposition>
    </ChargeDispositionNotification>

    ds store wrote:
    ClamXav is only a scanner, it can't remove the MacDefender malware.
    Yes, it can. ClamXav scans and quarantines it. It was updated.
    http://www.reedcorner.net/news.php/?p=98
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 

  • How to use XmlModify to sort the XML Data?

    Hello,
    I saw some examples explain how to use XmlModify in BDB XML package. I want to sort the XML data by several elements but my Java program could not work correctly.
    <CustomerData>
    <Transaction>
    <DLSFIELDS>
    <ADR_PST_CD>12345</ADR_PST_CD>
    <CLT_IRD_NBR>002</CLT_IRD_NBR>
    </DLSFIELDS>
    </Transaction>
    <Transaction>
    <DLSFIELDS>
    <ADR_PST_CD>12345</ADR_PST_CD>
    <CLT_IRD_NBR>102</CLT_IRD_NBR>
    </DLSFIELDS>
    </Transaction>
    // many nodes like transaction ...
    </CustomerData>
    My XQuery script was executed successfully in the shell. The script looks as follows:
    "for $i in collection('sample.dbxml')/CustomerData/Transaction order by xs:decimal($i//ADR_PST_CD), xs:decimal($i//CLT_IRD_NBR) return $i".
    The Java code :
    // create XmlManager
    XmlManager manager = // ...;
    // open XmlContainer
    XmlContainer container = // ...;
    XmlQueryContext context = manager.createQueryContext(XmlQueryContext.LiveValues, XmlQueryContext.Eager);
    XmlQueryExpression expression = manager.prepare("for $i in collection('sample.dbxml')/CustomerData/Transaction order by xs:decimal($i//ADR_PST_CD),xs:decimal($i//CLT_IRD_NBR) return $i", context);
    XmlModify modify = manager.createModify();
    XmlUpdateContext uc = manager.createUpdateContext();
    XmlDocument xmldoc = container.getDocument("sample.xml");
    XmlValue value = new XmlValue(xmldoc);
    long numMod = modify.execute(value, context, uc);
    System.out.println("Peformed " + numMod     + " modification operations");
    Could you point out the errors above or offer some suggestion?
    Thanks.

    I have other question of the sorting issue. Here are a large XML need to sort so I have to split it to multiple small XML files. After importing these files, I will use the XmlModify and XQuery to sort them. I'm not clear on the multiple XML files processing.
    1. Can the BDB XML ensure that all these XML files were sorted or how to update all documents with same logic.
    2. If I want export all these sorted documents, how can I ensure these files processed in sequence? Which document needs process first?
    The export method:
    public void export(String outputfile)throws Exception{
    final int BLOCK_SIZE = 5 * 1024 * 1024; // 5Mb
    try{
    File theFile = new File(outputfile);
    FileOutputStream fos = new FileOutputStream(theFile);
    byte[] buff= new byte[BLOCK_SIZE];                         
    XmlResults rs = container.getAllDocuments(new XmlDocumentConfig());               
    while(rs.hasNext()){
         XmlDocument xmlDoc = rs.next().asDocument();
         XmlInputStream inputStream = xmlDoc.getContentAsXmlInputStream();                    
         long read=0;
         while(true){
         read = inputStream.readBytes(buff, BLOCK_SIZE);
    fos.write(buff,0,(int)read);                    
         if(read < BLOCK_SIZE) break;
    inputStream.delete();
    xmlDoc.delete();
    rs.delete();
    //MUST CLOSE!
    fos.close();               
    catch(Exception e){
    System.err.println("Error exporting file from container " + container);
    System.err.println(" Message: " + e.getMessage());
    Thanks.

  • How to fetch the xml data in webdynpro java

    Hi all,
    i have an xml data which contains the fields as 1.user type, 2. client, 3.vendor number
    in webdynpro java how i validate or fetch the details of  the user type, when ever user login's in portal i can show some data to user 'A' and invisible to user 'B', based on the xml data.
    help me in doing step by step'
    Thanks&Regards
    charan

    Hi
    Follow the steps .
    This is the XML file .
    <?xml version="1.0"?>
    <company>
         <employee>
              <firstname>Tom</firstname>
              <lastname>Cruise</lastname>
         </employee>
         <employee>
              <firstname>Paul</firstname>
              <lastname>Enderson</lastname>
         </employee>
         <employee>
              <firstname>George</firstname>
              <lastname>Bush</lastname>
         </employee>
    </company>
    Java Code of this to fetch the details.
    public class XMLReader {
    public static void main(String argv[]) {
      try {
      File file = new File("c:\\MyXMLFile.xml");
      DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
      DocumentBuilder db = dbf.newDocumentBuilder();
      Document doc = db.parse(file);
      doc.getDocumentElement().normalize();
      System.out.println("Root element " + doc.getDocumentElement().getNodeName());
      NodeList nodeLst = doc.getElementsByTagName("employee");
      System.out.println("Information of all employees");
      for (int s = 0; s < nodeLst.getLength(); s++) {
        Node fstNode = nodeLst.item(s);
        if (fstNode.getNodeType() == Node.ELEMENT_NODE) {
               Element fstElmnt = (Element) fstNode;
          NodeList fstNmElmntLst = fstElmnt.getElementsByTagName("firstname");
          Element fstNmElmnt = (Element) fstNmElmntLst.item(0);
          NodeList fstNm = fstNmElmnt.getChildNodes();
          System.out.println("First Name : "  + ((Node) fstNm.item(0)).getNodeValue());
          NodeList lstNmElmntLst = fstElmnt.getElementsByTagName("lastname");
          Element lstNmElmnt = (Element) lstNmElmntLst.item(0);
          NodeList lstNm = lstNmElmnt.getChildNodes();
          System.out.println("Last Name : " + ((Node) lstNm.item(0)).getNodeValue());
      } catch (Exception e) {
        e.printStackTrace();
    BR
    Satish Kumar

  • How do I insert the current date to hidden field?

    I have a form for updating personal information.  There is a field in the table called "dateupdated" that I would like to have on the form as a hiddent field that will automatically get the latest date (now).
    Any idea's how I can set the hiddden field to current date?
    Thanks,  Dennis

    You don't need a hidden field to do that. Depending on the database you're using, you can either use a TIMESTAMP column (in MySQL) that is automatically updated, or you can use a SQL function to insert the current date.
    For example, in PHP, you can use NOW() like this in a SQL query:
    $insertSQL = sprintf("INSERT INTO date_test (created, message) VALUES (NOW(), %s)",
                           GetSQLValueString($_POST['message'], "text"));

  • Oracle BI Administration Tool 11g - Fields have the XML data type

    I'm using Oracle BI Administration Tool 11.1.1.3.0 and I need to import Metadata an Oracle table where same fields have the XML data type.
    Please, there is someone can tell me what I must do to define these fields in Administration Tool?
    Regards.

    Hi,
    in u r RPD -->Try to select import Connection Type as : XMLA then give it the URL of u r analysis services 2000 then u can able to import it.
    refer:
    http://www.biblogs.com/2008/02/01/obiee-hybrid-olap-reporting-using-ms-analysis-services-oracle/
    http://www.rittmanmead.com/2007/11/essbase-integration-with-obiee-101331/
    Thanks
    Deva

  • Filtering the XMLs that get generated from IDOC

    Hi All,
    I have requirement to filter the XML files those get generated when a BP relationship is created. The required configuration has been done. The XMLs are getting generated, but I want to generate the XML is only if it is Contact Person Relationship.
    Can somebody tell me how I can achieve it?
    Regards,
    - Prasenjit

    I am using an extended version of CRMXIF_PARTNER_REL_SAVE IDOC and in TCODE we21, I created an XML File port. Can we filter the IDOCs from which the XML will be generated, so that we can select the IDOCs we want to generate the XML from?
    Regards,

Maybe you are looking for

  • How to use a select statement with chinese characters?

    I am currently developing a java servlet<using tomcat 4.x> which allows me to use select statement to retrieve results from the Microsoft SQL Server 2000 database. I am using a simple form to get the parameter for querying. The main problem i'm facin

  • Portal Performance Trend Report

    Hi Portal Gurus, I have one request. For ABAP Based system we can get historical performance report. But for Portal , how we can get daily / weekly or monthly based report for performance. We have Mercury Tool to get report for few 'Pages' based on u

  • Adding custom fields to FPE1/2/3 transaction screen

    Hi guys, I need to add custom fields from table DFKKOP to transactions FPE1/2/3 under ADDITIONAL DATA area while manually entering NEW BUSINESS PARTNER ITEM. The transaction is not BDT enabled and does not have a screen exit. The user exit and BaDI d

  • [Solved] Starcraft 2 crashe with wine bunblebee nvidia driver

    After the upgrade of yesterday (2013/05/12) my starcraft II (under wine) crashes. After a downgrade of the nvidia driver ( and linux kernel ) my SCII is running once again perfectly, so I guess there is something wrong between the new nvidia driver (

  • Why can't I get a free replacement for my iPad cracked screen?This is however not the case for others???

    My friend dropped my sling bag which contained my 3rd gen iPad.Only when I reached home 30 mins later,then did I realise the LCD screen was cracked.This is the second time my iPad screen has cracked.The first time round,my father dropped it thanks to