Urgent help importing an XML file

Hi all,
I'm currently exporting my XML files from Magento, the webshop client. However I cannot use the XML task in ETL because I get the error about namedspaces. I can open the XML file itself no problem, it contains a few columns with data, some empty values.
What I do to solve the error is create the script in ETL that converts the XML file so that I can make the SDX schema. The ETL script itself works 
<?xml version="1.0" encoding="utf-8" ?> 
<xsl:stylesheet version="1.0"         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
  <xsl:output method="xml" indent="no" /> 
  <xsl:template match="/|comment()|processing-instruction()"> 
    <xsl:copy> 
      <xsl:apply-templates /> 
    </xsl:copy> 
  </xsl:template> 
  <xsl:template match="*"> 
    <xsl:element name="{local-name()}"> 
      <xsl:apply-templates select="@*|node()" /> 
    </xsl:element> 
  </xsl:template> 
  <xsl:template match="@*"> 
    <xsl:attribute name="{local-name()}"> 
      <xsl:value-of select="." /> 
    </xsl:attribute> 
  </xsl:template> 
</xsl:stylesheet> 
But when I open the newly created file he looks really odd: See below for the initial file and the new file (based on how many times I open the file, i get another weird look...). Please help me out it's killing me :)

Or you can apply a XSLT transform as per http://blogs.msdn.com/b/mattm/archive/2007/12/15/xml-source-making-things-easier-with-xslt.aspx
Arthur My Blog

Similar Messages

  • A query while  importing  an XML file into a Database Table

    Hi,
    I am Creating an ODI Project to import an XML file into a Database Table.With the help of the following link
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/odi_11g/odi_project_xml-to-table/odi_project_xml-to-table.htm
    I am facing a problem while creating Physical Schema for the XML Source Model.
    For the
    Schema(Schema)
    and
    Schema(Work Schema) field they have selected GEO_D.
    What is GEO_D here??
    or
    What I have to select here?
    1) schema of the xml file (NB:-I havn't created any .xsd or .dtd file for my .xml file)
    or
    2)my target servers schema
    Please tell me what I'll do??
    Thanks

    and
    Schema(Work Schema) field they have selected GEO_D.
    What is GEO_D here??This is the schema name which is specified in the XML file .
    What I have to select here?
    1) schema of the xml file (NB:-I havn't created any .xsd or .dtd file for my .xml file)Yes
    2)my target servers schema
    Please tell me what I'll do??
    Thanks

  • Is there a way to import large XML files into HANA efficiently are their any data services provided to do this?

    1. Is there a way to import large XML files into HANA efficiently?
    2. Will it process it node by node or the entire file at a time?
    3. Are there any data services provided to do this?
    This for a project use case i also have an requirement to process bulk XML files, suggest me to accomplish this task

    Hi Patrick,
         I am addressing the similar issue. "Getting data from huge XMLs into Hana."
    Using Odata services can we handle huge data (i.e create schema/load into Hana) On-the-fly ?
    In my scenario,
    I get a folder of different complex XML files which are to be loaded into Hana database.
    Then I gotta transform & cleanse the data.
    Can I use oData services to transform and cleanse the data ?
    If so, how can I create oData services dynamically ?
    Any help is highly appreciated.
    Thank you.
    Regards,
    Alekhya

  • 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?

  • What XML encoding do I use to get APEX to import an XML file?

    Environment:
    APEX 3.1.1.00.09 on AIX 5.3
    SQL Developer 1.5.5 on Windows XP Pro SP3
    Oracle 10.2.0.2 EE on AIX 5.3
    Trying to import an XML file generated from SQL Developer into a table using APEX Import utility.
    I'm getting the error: ORA-19200: Invalid column specification
    All I've done is exported the EMP table from SQL Developer (v. 1.5.5) into an XML file and then tried to load into an empty EMP table in the database (10.2.0.2) using APEX and the Data Load Utility.
    I've tried creating the XML file using different encodings out of SQL Developer but so far an still getting the above error.
    Any help is greatly appreciated.
    -gary

    Hi Scott
    First of all I was successful in exporting and re-importing the EMP table to and from APEX.
    When I exported the EMP table in XML format using SQL Developer, the resulting XML looked very different from the same data exported from APEX. My APEX exported XML looked just like yours. Here are the first 3 rows of the XML file exported from SQL Developer. I'm NOT an XML person so I can't judge whether or not this is valid XML but I can tell you that it doesn't import into an empty EMP table through APEX. I can control the encoding type in SQL Developer and have tried several different flavors.
    <?xml version='1.0' encoding='UTF-8' ?>
    <RESULTS>
         <ROW>
              <COLUMN NAME="EMPNO"><![CDATA[7876]]></COLUMN>
              <COLUMN NAME="ENAME"><![CDATA[ADAMS]]></COLUMN>
              <COLUMN NAME="JOB"><![CDATA[CLERK]]></COLUMN>
              <COLUMN NAME="MGR"><![CDATA[7788]]></COLUMN>
              <COLUMN NAME="HIREDATE"><![CDATA[12-JAN-83]]></COLUMN>
              <COLUMN NAME="SAL"><![CDATA[1100]]></COLUMN>
              <COLUMN NAME="COMM"><![CDATA[]]></COLUMN>
              <COLUMN NAME="DEPTNO"><![CDATA[20]]></COLUMN>
         </ROW>
         <ROW>
              <COLUMN NAME="EMPNO"><![CDATA[7499]]></COLUMN>
              <COLUMN NAME="ENAME"><![CDATA[ALLEN]]></COLUMN>
              <COLUMN NAME="JOB"><![CDATA[SALESMAN]]></COLUMN>
              <COLUMN NAME="MGR"><![CDATA[7698]]></COLUMN>
              <COLUMN NAME="HIREDATE"><![CDATA[20-FEB-81]]></COLUMN>
              <COLUMN NAME="SAL"><![CDATA[1600]]></COLUMN>
              <COLUMN NAME="COMM"><![CDATA[300]]></COLUMN>
              <COLUMN NAME="DEPTNO"><![CDATA[30]]></COLUMN>
         </ROW>
         <ROW>
              <COLUMN NAME="EMPNO"><![CDATA[7521]]></COLUMN>
              <COLUMN NAME="ENAME"><![CDATA[WARD]]></COLUMN>
              <COLUMN NAME="JOB"><![CDATA[SALESMAN]]></COLUMN>
              <COLUMN NAME="MGR"><![CDATA[7698]]></COLUMN>
              <COLUMN NAME="HIREDATE"><![CDATA[22-FEB-81]]></COLUMN>
              <COLUMN NAME="SAL"><![CDATA[1250]]></COLUMN>
              <COLUMN NAME="COMM"><![CDATA[500]]></COLUMN>
              <COLUMN NAME="DEPTNO"><![CDATA[30]]></COLUMN>
         </ROW>
    Maybe I should move this thread to the SQL Developer or XML forums.
    If you have any other suggestions I would be most appreciative.
    Thanks very much for your help.
    -gary

  • Importing a XML file in my INDD template. I get lots of unwanted paragraph breaks

    Hi,
    I am importing a XML file in my INDD template. I get lots of unwanted paragraph breaks where the closing xml tags for elements appear.
    Can someone guide me please to rectify the problem?
    Regards,
    ~shibu

    Here is the screen shot from INDD: Though I manage to get rid 0f them when i close up the XML tag manually, I want a sure-shot solution. Thanks for helping me out.
    and here is the screen shot of the XML coding:
    <para aid:pstyle="4 body text">Another common alkali is potassium hydroxide, KOH.</para>
    <equation><mathphrase>KOH(aq) &#x2192; K<superscript>+</superscript>(aq) + OH<superscript>&#x2013;</superscript>(aq)</mathphrase></equation>
    <qandaset>
    <title aid:pstyle="7 Questions heading"><emphasis role="underline">Questions A</emphasis></title><qandadiv><qandaentry><question><orderedlist numeration="arabic" startingnumber="1">
    <listitem><para aid:pstyle="7 Question text">Two solutions are tested with universal indicator paper. Solution A has a pH of 8 and solution B has a pH of 14. What does this tell you about the two solutions?</para></listitem>
    <listitem><para aid:pstyle="7 Question text">Methyl orange is added to a solution and the solution turns pink. What does this tell you about the solution?</para></listitem><listitem><para aid:pstyle="7 Question text">What does the &#x2018;basicity&#x2019; of an acid refer to?</para></listitem>
    <listitem><para aid:pstyle="7 Question text">Calcium oxide is an example of a base. How do you know this?</para></listitem>
    </orderedlist>
    </question>
    </qandaentry>
    </qandadiv>
    </qandaset>
    </sect1>
    <sect1>
    <title aid:pstyle="3 Heading">What are salts?</title>
    <para aid:pstyle="4 body text">Previously, it was explained that acids contain <emphasis role="bold" aid:cstyle="4 body bold">replaceable hydrogen atoms</emphasis>, and that when <emphasis role="bold" aid:cstyle="4 body bold">metal atoms</emphasis> take their place, a compound called a salt is formed. The names of salts have two parts, as shown:</para>
    <!-- <equation><mediaobject><textobject><figure href="file:///D:/images/reaction2.tif"><title/><para/></figure></textobject></mediaobject></equation> -->
    <para aid:pstyle="4 body text">The table shows the four most common acids and their salt names.</para>

  • How do I import one xml file into 3 separate tables in db?

    I need to utilize xslt to import one xml file into 3 separate tables: account, accountAddress, streetAddress
    *Notice the missing values in middleName, accountType
    sample xml
    <account>
    <firstName>Joe</firstName>
    <middleName></middleName>
    <lastName>Torre</lastName>
    <accountAddress>
    <streetAddress>
    <addressLine>myAddressLine1</addressLine>
    <addressLine>myAddressLine2</addressLine>
    </streetAddress>
    <city>myCity</city>
    <state>myState</state>
    <postalCode>mypostalCode</postalCode>
    </accountAddress>
    <accountId>A001</accountId>
    <accountType></accountType>
    <account>
    I need the following 3 results in 3 separate xml files in order for me to upload into my 3 tables.
    Result #1
    <rowset>
    <row>
    <firstName>Joe</firstName>
    <lastName>Torre</lastName>
    <accountId>A001</accountId>
    <row>
    <rowset>
    Result #2
    <rowset>
    <row>
    <addressId>1</address>
    <city>myCity</city>
    <state>myState</state>
    <postalCode>myPostalCode</postalCode>
    <row>
    <rowset>
    Result #3
    <rowset>
    <row>
    <addressId>1</addressId>
    <addressLineSeq>1</addressLineSeq>
    <addressLine>myAddressLine1</addressLine>
    <row>
    <row>
    <addressId>1</addressId>
    <addressLineSeq>2</addressLineSeq>
    <addressLine>myAddressLine2</addressLine>
    <row>
    <rowset>

    Use XSU to store in multiple tables.
    "XSU can only store data in a single table. You can store XML across tables, however, by using the Oracle XSLT processor to transform a document into multiple documents and inserting them separately. You can also define views over multiple tables and perform insertions into the views. If a view is non-updatable (because of complex joins), then you can use INSTEAD OF triggers over the views to perform the inserts."
    http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14252/adx_j_xsu.htm#i1007013

  • How to import an XML file

    Hi guys
    I want to import an XML file in the physical layer of BI administration tool; after i need to import some oracle table in order to define some relations between thw oracle tabel and the xml file.
    What are the steps that i need to follow/execute to import this xml file in my physical layer?
    thanks in advance
    best reguards

    Hi
    If you have paint rpd, then just refer that.. .
    Normally we import xml db by clicking File > Import > From database.
    And select Connection Type as XML
    for URL, click on browse and navigate to the path where your xml database is located... and import...

  • How to import a XML file into the document?

    Hai,
    i had created a table using xml file....
    Now i want to import that xml file tabel into the document...
    Can any one tell me how to import the xml file into the document?
    thanks
    senthil

    Hai...
    this is senthil...
    i'm beginner for creating adobe indesign plugins..
    i want to import a html file in the document...
    i want to create a table by using html tags and
    that table will be imported into the document..
    How shall i do it?
    can any one plzz explain me?

  • I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file  in that edit  how  to change user roles in that xml it will generate automatic id.h

    I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file  in that edit  how  to change user roles in that xml it will generate automatic id.how to do that in xml file ?

    Thanks john for you are reply.
    I had tried what you sad.I open shared service in that foundation project i had export shared service.after that in import-export file.In that role.csv,user.csv,group.csv.Like this file have.When i open user file added some users after i trying save in excel it shown messgse
    I click yes and save the .csv file and import from share servie. i got error like this
    am i doing right way john.or explain clearly

  • 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

  • Importing itunes xml file..

    Since the other day, about every 1 in 4 times I open itunes, it will stall, then say "importing itunes xml file" before giving me a message that it's a damaged file and then allowing the program to pop up with all the default first-time playlists etc. Why is this happeneing? What can I do to fix this?

    Heya. I'd first make sure you're running the latest version of iTunes:
    http://www.apple.com/itunes/download/
    That alone could be the issue. Always have a current backup of your files when experimenting with the XML file as well.

  • CANNOT IMPORT FCP  .XML FILE INTO PREMIERE PRO CS5

    Hi,
    Camera used:-Sony Pmw Ex3
    Footage       :- XDCAM  sp(1440 * 1080i) PAL
    Edited in      :-final cut pro 7
    Error            :- failed  to import .xml file into premiere pro cs5
    I tried  to import the .xml file into premiere CS5 ,it asked for the media files  to relink .whn i linked the .mp4 files it showed the  error messege "The  selected file cannot be linked becouse it has 2 audio channel(s) and  the clip was created with 1 audio channel(s).
    then i tried to relink the .mov instead of .mp4 file (which i  used in final cut pro on apple machine)i got  the error "Codec missing  or unavailable"
    what should i do???..i almost done all the  editing in final cut pro and i bought the adobe coz i thought i can  finish all the pending FCP projects in Premier Pro..??

    What is the CODEC in your MOV file(s)? MOV is but a "wrapper," like AVI. This ARTICLE will give you some background. It could be that you just need the proper CODEC, or it could be that it is a Mac-only CODEC, and then you will need for the producer to Export in another CODEC, that is PC-compatible.
    This ARTICLE will give you some background on CODEC's, in general.
    Good luck,
    Hunt

  • Can XML import other XML files?

    Is it possible for a XML file to import other XML files? The idea is, to have several separate data in XML files and construct one big XML out of the many smaller XML files. Is there a "import" or "include" tag in XML?

    xml files could be merged with the xslt document() function.

  • Simple import of xml file to database

    It has been a while since I coded in java. I know I could hand code a simple java app which imports an xml file into an oracle db but I was wanting to see if there is any easier way to do it with Jdeveloper, something which takes care of the grunt work for me. Note, I do not need jsp, etc. for the app just a simple plain java app. Is there any doc describing this?
    Thanks,
    Steve
    Edited by: stevendahlin on Sep 5, 2008 12:21 PM

    Hmm...if you use a style sheet to transform the file into standard view object notation, you could import it into an appropriate VO using the method ViewObjectImpl.readFromXML(). My guess is that the standard notation won't be too hard to transform things into; use your favorite XML output solution to output the result of ViewObjectImpl.writeXML() (it's a Node) so you can see the pattern.

Maybe you are looking for

  • Dreamweaver CC Mac OSX 10.9 Crashes when adding new site

    I just recently updated my OSX to 10.9 (Maverick) on my MacBook Pro (2012) and now I cannot add new sites using Site Manager. I tried doing this with both New Sites... and Manage Sites...  menu commands. When I select the root folder for the site in

  • When trying to open pdf from Inbox, it opens Adobe Reader X instead of my Adobe Acrobat 9 Pro?

    It seems my Windows Vista pc did an update on Adobe.  Now when I open a pdf i receive via email, it automatically opens a program called Adobe Reader X instead of my Adobe Acrobat 9 Pro.  How do I force my system to open Pro instead of X?  I want to

  • Batch Processing error: Object variable or With block variable not set - 91

    We are experiencing the following error when trying to execute the FDM Batch Processing of files in our UAT environment. This error is not occuring in our DEV environment. I have seen this error before when the data file had been left open and FDM co

  • Motion Tween Text

    Hello - I am trying to motion tween text and it is not working.  It looks jerky.  I am trying to create a "rubberband" effect on some text and two tutorials I found online used the Motion Tween.  I right click and select Motion Tween and I see the bl

  • Without giving any password  it is getting connected in windows

    in windowsfrom command prompt when i try to login to oracle it is asking for username but when i just press the enter key for password ( without giving any password) it is getting connected? How do i stop it ? Regards Sudharshan