Import from XML

hi...
i hav some data from flat files which i hav converted to xml files. is there some way i cud use sqlloader to import this into a table. i do not want to involve hibernate in between.
thanx in advance

In reponse to your question, I've posted a thread at http://www.oraclepoint.com/topic.php?filename=98&extra=page%3D1
Please register first and then download the winrar zip file.
In that package, please read the instruction first (.rtf file) for details.
Hope it helps.
Message was edited by:
R.Wang

Similar Messages

  • How to place multiple column tables in InDesign Layout by importing from XML

    Hi,
    I've an XML file that I need to import into InDesign Document. All the cell elements from Table tag  turn out be a "single column Table"..! How do I place a 2x2 or 3x2 tables in InDesign document while importing from an XML?
    Please help..!
    Thanks,
    Basav

    I might note that I am using InDesign CS 5, and importing from a document stored in docx format.

  • Data Import from XML Format file

    I want to import data  from XML file format.Can i do it ? If yes then please give me more details in the step.

    Pl read the below link.
    It will be helpful.
    SAP Business One Application
    Jeyakanthan

  • Tsql import from xml to table - sql server 2012 = (o row(s) affected)

    Hello,
    here is my XML header and footer:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <streetAndCities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <record>
    <rowIndex></rowIndex>
    <cityCode></cityCode>
    <cityName></cityName>
    <streetCode></streetCode>
    <streetName></streetName>
    </record>
    </streetAndCities>
    with a bunch of <record></record> tags with data inside....
    I'm trying to import data from my XML file to my new and empty table with the following code:
    DECLARE @xml XML
    SELECT @xml = x.y
    FROM OPENROWSET( BULK 'c:\st.xml', SINGLE_CLOB ) x(y)
    INSERT INTO tblCitiesStreets(rowIndex, cityCode, cityName, streetCode, streetName)
    SELECT
    x.y.value('(Column[@Name="rowIndex"]/text())[1]', 'INT') rowIndex,
    x.y.value('(Column[@Name="cityCode"]/text())[1]', 'NVARCHAR(255)') cityCode,
    x.y.value('(Column[@Name="cityName"]/text())[1]', 'NVARCHAR(255)') cityName,
    x.y.value('(Column[@Name="streetCode"]/text())[1]', 'NVARCHAR(255)') streetCode,
    x.y.value('(Column[@Name="streetName"]/text())[1]', 'NVARCHAR(255)') streetName
    FROM @xml.nodes('Root/DataRow') AS x(y)
    but the output I get is 
    (0 row(s) affected)
    and of course when I select * from tblCitiesStreets, the table is empty.
    what is wrong with the code?
    regards

    Nothing's wrong with your code. You're working with the wrong file OR - I guess - you have copied those XPath expressions without further looking at them..
    This works with your XML:
    DECLARE @xml XML = N'
    <streetAndCities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <record>
    <rowIndex>1</rowIndex>
    <cityCode>2</cityCode>
    <cityName>3</cityName>
    <streetCode>4</streetCode>
    <streetName>5</streetName>
    </record>
    </streetAndCities>';
    SELECT Record.value('rowIndex[1]', 'INT') rowIndex ,
    Record.value('cityCode[1]', 'NVARCHAR(255)') cityCode ,
    Record.value('cityName[1]', 'NVARCHAR(255)') cityName ,
    Record.value('streetCode[1]', 'NVARCHAR(255)') streetCode ,
    Record.value('streetName[1]', 'NVARCHAR(255)') streetName
    FROM @xml.nodes('streetAndCities/record') AS StreetsAndCities ( Record );

  • Importing from XML to Excel - need to know how to append to existing Excel file

    Hello,
    I have several XML files that I will need to import into one Excel spreadsheet. I have been able to figure out how to import an XML file to an Excel file but when I import a second XML file, the contents of the second XML overwrite the Excel spreadsheet.
    I am looking for an option to append. Thanks in advance
    private void XmlToExcel(string xmlFilePath, string excelFilePath)
    object misValue = System.Reflection.Missing.Value;
    DataSet Trans_ds = new System.Data.DataSet();
    Trans_ds.ReadXml(xmlFilePath);
    Excel.Application excel = new Excel.Application();
    excel.Application.Workbooks.Add(true);
    System.Data.DataTable table = Trans_ds.Tables[0];
    Worksheet worksheet = (Worksheet)excel.ActiveSheet;
    Range excelRange = (Excel.Range)worksheet.get_Range("A" + worksheet.Rows.Count, Type.Missing);
    int lastRow = excelRange.get_End(XlDirection.xlUp).Row;
    int ColumnIndex = 0;
    int rowIndex = lastRow++;
    foreach (System.Data.DataColumn col in table.Columns)
    ColumnIndex++;
    excel.Cells[lastRow, ColumnIndex] = col.ColumnName;
    foreach (DataRow row in table.Rows)
    rowIndex++;
    ColumnIndex = 0;
    foreach (DataColumn col in table.Columns)
    ColumnIndex++;
    excel.Cells[rowIndex + 1, ColumnIndex] = row[col.ColumnName];
    worksheet.StandardWidth = 20.0;
    worksheet.SaveAs(excelFilePath, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue);
    excel.Quit();
    releaseObject(worksheet);
    releaseObject(excel);

    See if this helps.  I opened the old excel file and added the new rows into the existing workbook.
    private void XmlToExcel(string xmlFilePath, string excelFilePath, Boolean append)
    object misValue = System.Reflection.Missing.Value;
    DataSet Trans_ds = new System.Data.DataSet();
    Trans_ds.ReadXml(xmlFilePath);
    Excel.Application excel = new Excel.Application();
    Excel.Workbook Bk = excel.Workbooks.Add(true);
    System.Data.DataTable table = Trans_ds.Tables[0];
    Excel.Worksheet worksheet = (Excel.Worksheet)excel.Worksheets[1];
    Excel.Range excelRange = (Excel.Range)worksheet.get_Range("A" + worksheet.Rows.Count, Type.Missing);
    int lastRow = excelRange.get_End(Excel.XlDirection.xlUp).Row;
    int ColumnIndex = 0;
    int rowIndex = lastRow++;
    foreach (System.Data.DataColumn col in table.Columns)
    ColumnIndex++;
    excel.Cells[lastRow, ColumnIndex] = col.ColumnName;
    foreach (DataRow row in table.Rows)
    rowIndex++;
    ColumnIndex = 0;
    foreach (DataColumn col in table.Columns)
    ColumnIndex++;
    excel.Cells[rowIndex + 1, ColumnIndex] = row[col.ColumnName];
    worksheet.StandardWidth = 20.0;
    if (append == false)
    worksheet.SaveAs(excelFilePath, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue);
    else
    //open old workbook
    Excel.Workbook oldworkbook = (Excel.Workbook)excel.Workbooks._Open(
    excelFilePath,
    Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
    Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing,
    Type.Missing, Type.Missing);
    //get first sheet in workbook
    Excel.Worksheet oldxlSht = (Excel.Worksheet)oldworkbook.Worksheets[1];
    //get column A of old worksheet to find last row in sheet
    Excel.Range xlRange = (Excel.Range)oldxlSht.get_Range(
    "A" + oldxlSht.Rows.Count, Type.Missing);
    int LastRow = xlRange.get_End(Microsoft.Office.Interop.Excel.XlDirection.xlUp).Row;
    int newrow = LastRow + 1;
    //get last row of new worksheet
    xlRange = (Excel.Range)worksheet.get_Range(
    "A" + oldxlSht.Rows.Count, Type.Missing);
    LastRow = xlRange.get_End(Microsoft.Office.Interop.Excel.XlDirection.xlUp).Row;
    // copy rows of new worksheet to old worksheet
    xlRange = (Excel.Range)worksheet.Rows["1:" + LastRow, Type.Missing];
    xlRange.Copy(oldxlSht.Rows[newrow, Type.Missing]);
    oldworkbook.Save();
    excel.Quit();
    releaseObject(oldxlSht);
    releaseObject(worksheet);
    releaseObject(excel);
    jdweng

  • Export to XML / import from xml

    I would like to save my data (from various tables) in an XML document, and later re-import it to the database.
    I am using Oracle 8.0. What are my best option? I saw there's a PL/SQL demo package DBXML on this site. But is there something that does the opposite direction (i.e., the import part)?

    OTN has a sample app that might interest you:
    XML Flight Finder queries the database and converts the result set to an XML document. It also takes input from a user, converts it to XML, then writes it to the database.
    Regards,
    -rh

  • Partial import from XML file

    Hello,
    I need to import some specific nodes from a large XML file, into an Oracle table, containing columns not necessarily labeled identical to the XML nodes.
    Can it bee done from within HTMLDB?
    Thanks for the help,
    Arie.

    Arie,
    You can certainly upload files with HTML DB, search the forum for file upload. Once you uploaded your XML file, you can parse it and process it however you want using Oracle’s XML DB features. You can post XML DB specific questions here:
    XML DB
    Regards,
    Marc

  • Captivate 8 glossary import from xml not working

    Hi,
    I am trying to import glossary of 110 words into captivate 8 using xml file.  It says successfully imported but nothing shows up in the glossary table.  I checked the xml file several times, it looks OK but still unable to import it to captivate 8.
    Has anyone have the same problem? How can I solve this?
    Thanks for your help.
    Many thanks,
    Senait

    Hello,
    Please, you really should upgrade to 5.0.2.630. Have a look at the Captivate blog, you'll find where you can download the upgrade:
    captivate-5-patch
    Lilybiri

  • Tables with varying columns imported from XML

    Hi,
    I have an XML file for a product catalog. Each product has Name, SKU, Image, Description and a Table with some data in it. Each table is different is size, varying number of columns and rows.
    I have anchored objects for some of the elements like Image or SKU in my template.
    When I load the XML I check 'Clone repeating elements' upon import so I can maintain the various anchored frames for my elements. However it breaks the tables. It appears that each new table is trying to copy the previous table's exact number of rows and columns. If I uncheck this option then I get the tables in right but I lose the rest of the formatting.
    Any idea how I can handle this?
    Thanks,
    Luke

    Luke,
    We had the same problem doing a table of data that had varying columns and rows. For us, this was handled by adding table information such as cell width and cellstyle on the incoming XML (generated through a backend system that was also gathering the data into XML files, through using xml templates). We found that placeholder tables were not an option if you wanted the columns to be flexible, so instead the tables were being built by the XML.
    If you are not using a backend system or don't have a way to customize the incoming data, I think you may be able to use XSLT as an intermediate way to apply more information to the XML (cell widths, etc) I am copying dummy tables below to show how the XML we used looked coming into the Indesign document. This code would all be contained within opening and closing "Root" tags in the XML. There are 3 separate tables (one called Summary, one actually called Table and one called Legend), each with its own cell widths and number of rows. The data container holds all tables, and a table growing in length will push the next table down on the page (or to the next page).
    Note that each table has a different tag (name), but is described as a table through the information contained in its opening tag's attributes. We also used both namespaces (4.0 and 5.0) to take advantage of cellstyle as well as pstyle tags in the table body, allowing each cell and copy block to be styled differently when needed.
    <data>
            <Summary xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/" aid:table="table" aid:trows="1" aid:tcols="2">
                <Cell aid:table="cell" aid:ccolwidth="200" aid:theader="" aid:ccols="1" aid:crows="1" aid5:cellstyle="myHighlightCellstyle" aid:pstyle="myBoldParagraphStyle">A brand<superScript>®</superScript> statement</Cell>
                <Cell aid:table="cell" aid:ccolwidth="130" aid:ccols="1" aid:crows="1" aid5:cellstyle="myHighlightCellstyle" aid:pstyle="myTextParagraphStyle">More info beside the brand</Cell>
            </Summary>
            <Table xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/" aid:table="table" aid:trows="3" aid:tcols="4">
                <Cell aid:table="cell" aid:ccolwidth="95" aid:theader="" aid:crows="1" aid:ccols="1" aid5:cellstyle="headerCell" aid:pstyle="headerCellP">Brand</Cell>
                <Cell aid:table="cell" aid:ccolwidth="95" aid:theader="" aid:crows="1" aid:ccols="1" aid5:cellstyle="headerCell" aid:pstyle="headerCellP">Product Name</Cell>
                <Cell aid:table="cell" aid:ccolwidth="70" aid:theader="" aid:crows="1" aid:ccols="1" aid5:cellstyle="headerCell" aid:pstyle="headerCellP">Price</Cell>
                <Cell aid:table="cell" aid:ccolwidth="70" aid:theader="" aid:crows="1" aid:ccols="1" aid5:cellstyle="headerCell" aid:pstyle="headerCellP">Details</Cell>
                <Cell aid:table="cell" aid:ccolwidth="95" aid:crows="1" aid:ccols="1" aid5:cellstyle="regularCell" aid:pstyle="regularCellP">Acme</Cell>
                <Cell aid:table="cell" aid:ccolwidth="95" aid:crows="1" aid:ccols="1" aid5:cellstyle="regularCell" aid:pstyle="regularCellP">Widget</Cell>
                <Cell aid:table="cell" aid:ccolwidth="70" aid:crows="1" aid:ccols="1" aid5:cellstyle="regularCell" aid:pstyle="regularCellP">$9.99</Cell>
                <Cell aid:table="cell" aid:ccolwidth="70" aid:crows="1" aid:ccols="1" aid5:cellstyle="regularCell" aid:pstyle="regularCellP"><Image href="file:///Users/administrator/Desktop/images/widget.tif"></Image></Cell>
                <Cell aid:table="cell" aid:ccolwidth="95" aid:crows="1" aid:ccols="1" aid5:cellstyle="accentCell" aid:pstyle="accentCellP">Smiles Inc</Cell>
                <Cell aid:table="cell" aid:ccolwidth="95" aid:crows="1" aid:ccols="1" aid5:cellstyle="accentCell" aid:pstyle="accentCellP">Happy Widget</Cell>
                <Cell aid:table="cell" aid:ccolwidth="70" aid:crows="1" aid:ccols="1" aid5:cellstyle="accentCell" aid:pstyle="accentCellP">$11.99</Cell>
                <Cell aid:table="cell" aid:ccolwidth="70" aid:crows="1" aid:ccols="1" aid5:cellstyle="accentCell" aid:pstyle="accentCellP"><Image href="file:///Users/administrator/Desktop/images/widget.tif"></Cell>
            </Table>
            <Legend xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/" aid:table="table" aid:trows="1" aid:tcols="1">
                <Cell aid:table="cell" aid:ccolwidth="330.0" aid:crows="1" aid:ccols="1" aid5:cellstyle="legendCell" aid:pstyle="legendCellP">Table legend, or other instruction/info below the table go here.</Cell>
            </Legend>
        </data>

  • HTML bold text, imported from XML problem.

    I have HTML content defined in an external XML file:
    quote:
    <textBody><p>First line of text containing some
    <b>bold words</b>. More text with some <b>bold
    words</b> and then two line breaks.<br /><br
    />Here's some more text with <b>some more bold
    words</b> in the middle of it. Don't you think there's
    something strange about the spacing around these <b>bold
    words</b>? It seems to get worse with each extra appearance
    of a <b>bold word</b>. Thank you <b>for
    reading</b> my text.</p></textBody>
    Here,
    you can see a screenchot of the text rendered on screen from the
    HTML above.
    Many thanks for any help from anybody.

    We think we've got the source of the problem - because the
    textfield displaying the HTML is in a component. We believe the
    letter spacing issue comes about from the component being resized.
    The solution, as far as we can see is to simply use dynamic
    textfields instead of components - OK for future development, but
    what we've done already will need to be fixed by extra spaces in
    various places.
    Thanks for your suggestion Pal_w_g - guess it was your input
    that provided the seed that led to the idea about the component.

  • Trouble with multiline text box reading from xml file

    Hi,
    I have a text area, set to multiline.  For some reason, when my text imported from xml shows up in the box, it starts several lines down into the box.  So for example, my Text box is positioned with the top at the midpoint of my stage, but the text starts about 3/4 down the page, about half way down the text box.  Can someone please tell me why this is happening and what I can do to fix it?
    I noticed that when I put my cursor in the box and move it up and down, the rest of the text 'scrolls' into the frame, but otherwise it's cut off.  please help!
    Thanks,
    Stan

    Could you show your XML?

  • Can't import an xml file

    Hi,
    I am using Captivate 5.5 on Windows. I have an .swf file which needs to have an xml file with it in order for it to behave the way in which it was intended. The developer has said that the two files need to be included in the same folder.
    I have no problem importing the swf file however I can't import the xml file which is called flashParams.xml. I have been editing the xml file in windows notepad and it is working perfectly outside Captivate. However when i try to import the xml, I get the message 'Cannot import XML'. I have been using File/Import/from xml to get the file loaded but no luck. I have also tried dragging it into the library but no luck here either.
    Can anyone suggest what I might be doing wrong and how they would approach what surely must be a very simple task.
    Thanks,
    Nick

    Hi Rod,
    Thanks for the reply.
    I think what I could do is to launch the swf by clicking on a link in the Captivate session to an external url (it will be hosted on Moodle). The one problem I have is that when I do this in Captivate, the slide refuses to pause and moves onto the next slide. What I would like is for the user to be able to click on the link for the url and for the slide to pause until the user clicks on a next button to go to the next slide.
    Nick

  • Adobe not allowing import of XML file captured from Media Express through Black Magic capture card

    I have been going crazy trying to find a way to import the XML files to fix the digitized look Adobe capture gave my footage. Someone help me
    These are not XML from Final Cut. They are files saved from Media Express, a Black magic design program used for Capturing.
    THANK YOU.
    Please email me if you know how to fix this
    [email protected]
    THANKS AGAIN!

    Wouldn't it be more appropriate to open the actual media files captured with the program?

  • From XML (import) for each record automatic new page creation?

    Hello,
    I'm playing around with XML.
    Can someone tell me where to look and help me?
    I load variable data via XML.
    Example content xml:
    <pages>
         <page>
             <id>1</id>
             <article>title page 1</article>
             <info>Info page 1</info>
             <price>price page 1</price>
         </page>
         <page>
             <id>2</id>
             <article>title page 2</article>
             <info>Info page 2</info>
             <price>price page 2</price>
         </page>
         <page>
             <id>3</id>
             <article>title page 3</article>
             <info>Info page 3</info>
             <price>price page 3</price>
         </page>
    </pages>
    I have 1 page classified (ie 3 text boxes). The idea is that for each record in the xml (in this case 1, 2 and 3) a new page is created (Qua layout identical to the page that I had prepared, but with the corresponding data in each box)
    How do I do this?
    Thanks!

    If you need to keep the three parts of your page in separate text frames, you are probably out of luck.
    I can't tell from your question whether you know how to tag frames and import XML content into them. If you don't, the manual is fairly clear on it. However, it states more than once that "InDesign flows merged XML content into existing frames only."  That means that it won't add frames or pages for you -- you can only load XML into tagged frames on the first page and will have to add extra ones by hand.
    If you could rework your design so that all the elements could be accommodated in a single text frame, using paragraph styles to keep them apart, you could just import the XML and map tags to styles, then drag it into a frame on the first pages. If your article style was set to start in a new frame,  everything but the first would go into overset text, which you could deal with in the usual way -- shift-click on the in port of a new frame and InDesign will add the pages you need.

  • Import books.xml from bookstore

    How to import books.xml from distribuitor with request via htpp ?

    I received from adobe XMLSigningSerializer.php working but using admin passorword , is this a secure role ?
    My distribuidor need my sha1 password ?
    // SHA1 of my server password returning raw byte - Working with admin password
    $serverPassword = hash("sha1",$myadminpass,true);
    // Dont work , secure role ?
    //$serverPassword = hash("sha1",$secretKey,true);
    //$serverPassword=base64_decode($secretKey);
    $expiration = date("c", mktime() + 3600);
    $nonce = base64_encode(mt_rand(20000000,30000000000));
    function signNode( $xmlDoc, $xmlNodeToBeSigned, $secretKey )
        $serializer = new XMLSigningSerializer( false );
        $signingSerialization = $serializer->serialize($xmlNodeToBeSigned);
        $hmacData = base64_encode( hash_hmac("sha1", $signingSerialization, $secretKey, true ) );
        $hmacNode = $xmlDoc->createElementNS($ADEPT_NS, "hmac", $hmacData );
        $xmlNodeToBeSigned->appendChild( $hmacNode );
    // XML request
    $request ='<request action="get" auth="builtin" xmlns="http://ns.adobe.com/adept">';
    $request .="<nonce>". $nonce ."</nonce>";
    $request .="<expiration>". $expiration ."</expiration>";
    $request .="<distributor>".$distribuidor."</distributor>";
    $request .="</request>";
    // Load the XML request info DOM because the Adobe seralizer need a xml object.
    $xmlObjectPackage = new DOMDocument('1.0', 'UTF-8');
    $xmlObjectPackage->formatOutput = true;
    $xmlObjectPackage->loadXML($request);
    $packageNodes = $xmlObjectPackage->getElementsByTagName('request');
    foreach ($packageNodes as $packageNode) {
        signNode( $xmlObjectPackage, $packageNode, $serverPassword );
    //echo $xmlObjectPackage->saveXML();die();
        $c = curl_init($requestURL);
        curl_setopt($c, CURLOPT_RETURNTRANSFER,     true);
        curl_setopt($c, CURLOPT_POST,                 true);
        curl_setopt($c, CURLOPT_POSTFIELDS, $xmlObjectPackage->saveXML());
        curl_setopt($c, CURLOPT_HTTPHEADER, array('Content-type: application/vnd.adobe.adept+xml'));
        // Get Response
        echo curl_exec($c);
        curl_close($c);

Maybe you are looking for

  • How can I update the information in the report tab

    Right now I'm running the TestReport callback and generating a string for the Parameters.Report. I would, however, like to be able to write to the report window on the fly through my code. How can I write to the report window at will? Thanks.

  • Problems with image sizes

    There seems to be lots of confusion about image sizes and Apple iBookstore Support  et al simply state that images should not be greater than 2 megapixels. IBook Author Help > Photos and other images,  states:- Important:  When you export your book f

  • Shedule lines problems in md04

    hi all, even thru we split the dep remqt from the monthly to day wise from the planning table entry for the final product and run mrp instead system create the daily schedule line , it give it the single schedule line for the whole month. what will t

  • Haguichi won't build from AUR, and won't build from source tarball.

    I managed to get Hamachi installed. Go me. But I like having a frontend for things like that, so I tried to build Haguichi from the AUR. Didn't work. I downloaded the source tarball, and running ./configure returned the same error as yaourt. redpill%

  • What are the main keyboard shortcuts?

    jip,what are you think?