Illegal combination when importing xml file into xmltype column

I have the following control file.
LOAD DATA
CHARACTERSET UTF8
INFILE *
INTO TABLE IMPORTRAWXML TRUNCATE
SITEID constant 0
,VENDORID constant 17
,SITEFORMATID constant 2
,"\\plutonium\outcomes\AHA GWTG-Outpatient\Programs\DataTransfer\LoadTest\V17_standard_test.xml" filler char(1000)
,RAWDATA LOBFILE ("\\plutonium\outcomes\AHA GWTG-Outpatient\Programs\DataTransfer\LoadTest\V17_standard_test.xml")
TERMINATED BY EOF
)When I run it using sqlldr command line I get the following error:
SQL*Loader-350: Syntax error at line 1.
Illegal combination of non-alphanumeric characters
<?xml version="1.0" encoding="ISO-8859-1"?>Does anyone have any idea what I am doing wrong here? If I remove the fully resolved path (both the control file and xml file are in the same folder) it tells me it can't find the file to load.
HELP!!!!
Thanks,
Eva

evaleah wrote:
I have made sure all my home settings are correct in my registry editor and they are. Another thing to note is the control file I am using works 100% perfectly, beautifully when called from Toad for Oracle. It is when called from the command line utility that it fails. Is there anyway to determine what the difference could be?
So we know that I can work (toad works), but it doesn't yet work in a "cmd" environment.
Just as any other program Toad is also a client and uses NLS and other environment settings. Maybe these are stored in the registry, maybe the are being set by Toad by reading a configuration file while it is started or while running.
As said, on Windows its tricky...
Setting properties in the registry will not mean that they are the same a "cmd" window or maybe not even been set.
If you execute / run "cmd" then the "set" statement/command will output the environment settings that will be used during the livetime of that "cmd" session.
C:/> setIn my laptop environment (windows 7 64 bit) it will show the following
C:\>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\marco\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=00-00-000
ComSpec=C:\Windows\system32\cmd.exe
DEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\marco
LOCALAPPDATA=C:\Users\marco\AppData\Local
LOGONSERVER=\\AMISNT
MpConfig_ProductAppDataPath=C:\ProgramData\Microsoft\Windows Defender
MpConfig_ProductCodeName=AntiSpyware
MpConfig_ProductPath=C:\Program Files\Windows Defender
MpConfig_ProductUserAppDataPath=C:\Users\marco\AppData\Local\Microsoft\Windows
Defender
MpConfig_ReportingGUID=CA08B82B-EF0A-4107-89D8-ED5BB37E7515
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\oracle\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Win
dows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PERL5LIB=c:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWin32-x64;c:\oracle\prod
uct\10.2.0\db_1\perl\5.8.3\lib;c:\oracle\product\10.2.0\db_1\perl\site\5.8.3;c:\
oracle\product\10.2.0\db_1\perl\site\5.8.3\lib;c:\oracle\product\10.2.0\db_1\sys
man\admin\scripts;
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 10, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=170a
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\marco\AppData\Local\Temp
TMP=C:\Users\marco\AppData\Local\Temp
USERDNSDOMAIN=AMIS
USERDOMAIN=AMIS
USERNAME=marco
USERPROFILE=C:\Users\marco
VBOX_INSTALL_PATH=C:\Program Files\Sun\VirtualBox\
VSEDEFLOGDIR=C:\ProgramData\McAfee\DesktopProtection
windir=C:\Windows
C:\>The only thing that identifies that I have Oracle installed is set in the %PATH% variable and %PERL5LIB%. From the path setting you can also deduct that I have Oracle 11 and Oracle 10 software installed. So when I execute "sqlldr" what NLS settings will it use and which tnsnames.ora alias for example to connect to the database...?
You can you do it and see what happens...
C:\>sqlldr
SQL*Loader: Release 11.2.0.1.0 - Production on Wed May 12 20:36:25 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
Usage: SQLLDR keyword=value [,keyword=value,...]
Valid Keywords:
...So it will pick the first "sqlldr" in the %PATH% environment setting. But what about NLS...? As said to be absolute sure you will have to set it in your environment.
C:/> set ORACLE_HOME="C:\oracle\product\10.2.0\db_1"
C:\> set
Path=C:\oracle\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Win
dows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PERL5LIB=c:\oracle\product\10.2.0\db_1\perl\5.8.3\lib\MSWin32-x64;c:\oracle\prod
uct\10.2.0\db_1\perl\5.8.3\lib;c:\oracle\product\10.2.0\db_1\perl\site\5.8.3;c:\
oracle\product\10.2.0\db_1\perl\site\5.8.3\lib;c:\oracle\product\10.2.0\db_1\sys
man\admin\scripts;
ORACLE_HOME="C:\oracle\product\10.2.0\db_1"
C:\> echo %ORACLE_HOME%
"C:\oracle\product\10.2.0\db_1"Because if I enter "sqlldr" it will pick the executable from the 11.2 install, but the ORACLE_HOME is set to the wrong environment
Executing sqlldr now will give me an error
C:\>sqlldr
Message 2100 not found; No message file for product=RDBMS, facility=ULMessage 21
00 not found; No message file for product=RDBMS, facility=UL
C:\>Another thing you can notice now is that from that output alone, you can't deduct the Oracle "sqlldr" version anymore. Setting the ORACLE_HOME environment to either 10.2 or 11.2 will cause "sqlldr" to execute normally (at least thats how it looks) BUT in the case of the oracle 10.2 setting it will use the wrong message files etc. At least not the correct software versions / files "sqlldr" is shipped with. So you can (and most of the time) will get strange errors.
C:\> set ORACLE_HOME=C:\oracle\product\10.2.0\db_1
C:\>sqlldr
SQL*Loader: Release 11.2.0.1.0 - Production on Wed May 12 20:45:00 2010
C:\>set ORACLE_HOME=C:\oracle\product\11.2.0\dbhome_1
C:\>sqlldr
SQL*Loader: Release 11.2.0.1.0 - Production on Wed May 12 20:49:50 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
Usage: SQLLDR keyword=value [,keyword=value,...]
...In the registry you can find a lot of those variables are set for ORACLE_HOME, ORACLE_BASE, SQLPATH, maybe TNS_ADMIN, ORACLE_SID, NLS_LANG. You can find the variables IN the registry on two places. The most common one is the SYSTEM wide environment settings under //HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE and in my case for 11.2 under //HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE/KEY_OraDb11g_Home1.
You could overrule this for to be active on "my user session", my login session as account "marco" under //HKEY_CURRENT_USER/Software/Oracle, but no one using Windows is doing this.
Besides the "cmd" and registry environment, there is a different place as well were you can set these parameters. In windows go to "start", click "control panel", click "system", click tab "Advanced" and then click on the button on the bottum with "Environment Variables". Here you can see the distinction between user and system wide variables as well. Here you can also set NLS_LANG, ORACLE_HOME etc. If I am not mistaken than these will be the default values used in a fresh "cmd" window session. But they can and will interfere with programs you start via clicking them. For example something a Java program like SQL Developer (and/or Toad). If those values are not overrulled by the program by for example using his own variables from a config file or else, those sessings from the "system" / control panel item will be used. If it is the wrong mix, you will encounter strange issues.
Setting ORACLE_HOME and ORACLE_BASE will be used by a lot of derived other settings for example the default place SQL*Net drivers and tnsnames aliases etc will be checked. For example setting the ORACLE_HOME to
C:\> set ORACLE_HOME=C:\oracle\product\10.2.0\db_1will result in that the tnsnames aliases from
C:\> set ORACLE_HOME=C:\oracle\product\10.2.0\db_1\NETWORK\adminwill be used and NOT the ones maybe needed from
C:\oracle\product\11.2.0\dbhome_1\NETWORK\adminYou can overrule this behavior by setting the TNS_ADMIN variable. By default, most explicit form for example on linux and Unix, the following rule will be used by Oracle
1) .tnsnames.ora in the home directory of the user
2) standard default: $ORACLE_HOME/network/admin
3) behavior can be overruled via setting $TNS_ADMINThe fact that you are able via Toad to execute it correctly proves you that it can be done. But Toad uses in your session "SQL*Net" or JDBC or ODBC or ADO or ? via its own configuration environment settings that are being set on which values...?
Both Oracle and Toad use the OSI model (http://en.wikipedia.org/wiki/OSI_model), both have to follow the same rules. There hasn't been changed that much over the years, character set conversions are done in the "two task common" layer of the data transport on either side (client/server) when data travels between a client and server. And don't forget a database can be also be a client when for instance database links are being used. One of the reasons to read old manuals because there the basics are still perfectly explained: http://download.oracle.com/docs/cd/A57673_01/DOC/net/doc/NWUS233/ch2.htm#twotask (Oracle 7.3.4 Networking Manual).
This long long story is just to show you that you have more control if you set variables explicitly in a "cmd" window (and or in a linux/unix shell (as long as the session isn't "forked")) BUT you will have to be precise. Check the environment a set those environment variables that control / that are being used by "sqlldr" (and that are probably more then you realised, for example that SQL_PATH variable is the default directory where SQL*Plus is looking and saving its "SQL" and spool "LIS" files).
HTH

Similar Messages

  • Import XML file into rpd file

    Hi Gurus,
    it seems to be very easy to import XML files into repos, but I could find suitable driver in my ODBC Data Source Administrator.
    Could You help me?
    Many thanks in advance!
    Regards
    Laszlo

    you can't see view Data option for all types of sources... it depends on call interface and source you are using..
    go and check the xml files and open them physically .. you'll see the data..

  • How to Import XML file into SAP B1

    Dear All,
    I have a scenario like,
    I am receiving a XML file from a 3rd party application for the daily Creation,Update of Item Master,BP Master, Marketing Documents. I want to import this file into SAP B1 through its approp objects. I understand DTW has limitation in its file types (Semicolo,Tab,Comma,ODBC). How do i do this ? Please guide me.
    Thanks,
    Thanga Raj K

    Hy folks,
    I´m frim Brasil and I've been studying the tool EFM (Eletronic File Manager) to learn more about it!
    There I saw that we can extract to XML "any" infomation from the database we want, mainly through the GEP.
    However, as I've seen, this Add-On can not import any XML file into SBO, unless for the BFP wich can be imported in conjunction with the BTHF Add-on.
    So I ask: how is it possible to import XML data into SBO database? Is it possible to be done through the EFM? or  it´s really necessary to write a code specifically to do that?
    Besides, I know that de B1iSN fit to this necessity... but when I tried to use it, by the custom "object" for BP, for example, there are some data wich the mapping conteined in this custom "process" that can not be imported... I tried to understand how to map those other fields not imported by the custom but this has been dificult to me as I am a implementation consultant focused in administrative process not on development...
    Could you please help me with this subject!
    Thanks a lot,
    Denis

  • How can I combine 200+ XDP (XML) files into one spreadsheet or database for analysis?

    Hi all,
    I've got 200+ XDP files that were created by entering data into a LiveCycle PDF form 200+ times and then exporting the data as XDP 200+ times.
    Now, I want to view all the data at once (for example, in an Excel Spreadsheet or database) so I can look for trends in the data or come up with a summary (for example, 180 of 200 responses answered Question 1 'Yes'). The form does have some image fields, but I don't need to see or analyse those fields.
    I'm a bit of a newbie. Is there an easy way to do this? Thanks!
    - John

    I had a similar goal to gather data from a folder full of XDPs into a spreadsheet to track user behaviors, capture commonly entered values, and run reports.
    If you are familiar with Python, I highly recommend creating a simple script using Python 2.6 and the elementTree (effbot.org) libraries.
    Since I cut my teeth on this project, I found it helpful to break down the script's tasks into individual parts. The material and examples for getting a folder's contents, writing variables in lists, and using elementtree is as terrific as it is scattered in location and diverse in implementation.
    1. Grab an xdp in your directory ( for book in path: )
    2. Parse the xml by using the elementtree iterator
    3. Assign your element's values to variables during iteration
    if element.name == 'dataNode':
         variable = element.text
    4. At the end print your variables with deliminators between each (I used a pipe "|" because commas were commonly used in our forms)
    print "%s|%s|%s|%s|%s" % (currentFileName, variable1, variable2, variable3, variable4)
    Once you are happy with the data printed out to your console; and each row corresponds to a xdp, stream the output to a file and import that file into Excel in a CSV-style text import (specifying your deliminator during the import process)
    so if your script that does the above is called "xdpGrabber.py", run:
    $ python xdpGrabber.py >> xdpSpreadSheet.txt
    and open xdpSpreadSheet.txt in excel.
    There are some gotchas here - repeating nodes can be tricky, and heavily nested or scattered xml structures will add much more complexity to the script.  However, if you are only looking for certain fields that always come in the same order when reading the xdps from top to bottom you can get them using simple "if element.name == 'stuff'" references in the order they appear - as elementtree parses from top to bottom.
    If this is appealing to you, I suggest you run one of your sample xdps against the example script given here: http://www.xml.com/pub/a/2003/02/12/py-xml.html
    I used Python 2.6 and elementtree on a windows XP laptop.  I would routinely create spreadsheets from 3000+ xdps, each with 50-100KB of data, in under 15 minutes.  I'm guessing the real bottleneck is streaming the output to disk. There isn't much out there that can compete with elementtree for speed reading xml!
    If you need some assistance getting started  feel free to reply here or message me for an example script.
    Good luck!
    -Kasey (scriptocratch)

  • No sound when importing MTS files into Premiere Pro?

    Hey guys, I'm editing a film for my Drama Assessment at school. I used a Canon HD Camcorder which saves files as .MTS extension. My problem is that when i import the files into Premiere Pro CS5 there appears to be no sound???? CAN ANYONE HELP ME PLEASE!!!

    if you can hear the audio  with media player or with any other player in your computer then check settings
    EDIT--PREFERENCES--AUDIO HARDWARE AND CLICK ON ASIO SETTINGS.
    another dialog box will appear and in that under
    INPUT AND OUTPUT TAB
    MAKE SURE ALL THE OPTIONS/BOXES SHOULD BE CHECKED .
    DO NOT FORGET TO UPDATE TO 5.0.3

  • FCP 5.1 crashes when importing XML files

    Hi,
    I just upgraded to final cut studio and when importing subtitle files on xml I get a crash with this script:
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNPROTECTIONFAILURE (0x0002) at 0x00000000
    Thread 0 Crashed:
    0 com.apple.CoreFoundation 0x907d0920 CFURLCopyLastPathComponent + 52
    1 ...lCutPro.Plugins.XML Support 0x062ab468 PrivateUUDecode + 30704
    2 ...lCutPro.Plugins.XML Support 0x062acbc4 PrivateUUDecode + 36684
    3 ...lCutPro.Plugins.XML Support 0x062ad214 PrivateUUDecode + 38300
    4 ...lCutPro.Plugins.XML Support 0x062ad548 PrivateUUDecode + 39120
    5 ...lCutPro.Plugins.XML Support 0x062ad4d4 PrivateUUDecode + 39004
    6 ...lCutPro.Plugins.XML Support 0x062ad4d4 PrivateUUDecode + 39004
    7 ...lCutPro.Plugins.XML Support 0x062c1e3c InstantiateFCPObjects + 2144
    8 ...lCutPro.Plugins.XML Support 0x0627d26c EnableMetadataEditor(long, KGDictInt*) + 3596
    9 ...lCutPro.Plugins.XML Support 0x06280ec8 PluginMainEntry(long, long, KGDictInt*, void*) + 11864
    10 com.apple.FinalCutPro 0x00150244 HandleMenuCommand(long, unsigned char, unsigned char, unsigned char, KGErrorCode (*)(long, long, KGDictInt*, void*), void*) + 332
    11 com.apple.FinalCutPro 0x00150424 HandleCommand(long, unsigned char, unsigned char, unsigned char) + 236
    12 com.apple.FinalCutPro 0x00153ac8 pKGHandleCommand(long) + 156
    13 ...FinalCutPro.Plugins.Browser 0x01843c74 ProcessCommand(long, BrowserCmdRec*, BrowserRec**, KGDictInt*) + 23788
    14 ...FinalCutPro.Plugins.Browser 0x0187c168 GetDefaultTimecodeWidth() + 7524
    15 ...FinalCutPro.Plugins.Browser 0x0187f414 ComputeLayoutInfo(BrowserRec*) + 2924
    16 ...FinalCutPro.Plugins.Browser 0x018851b0 ComputeLayoutInfo(BrowserRec*) + 26888
    17 com.apple.FinalCutPro 0x002acca4 pKGViewMessage(long, long, KGDictInt*, KGViewRecord*) + 17596
    18 ...FinalCutPro.Plugins.Browser 0x0188253c ComputeLayoutInfo(BrowserRec*) + 15508
    19 ...FinalCutPro.Plugins.Browser 0x018851b0 ComputeLayoutInfo(BrowserRec*) + 26888
    20 com.apple.FinalCutPro 0x002a2f4c pKGViewPopupMenu(KGViewRecord*, KGMenuRec*, KGPoint*, long, unsigned char) + 376
    21 ...FinalCutPro.Plugins.Browser 0x0183d834 PopupBackgroundMenu(BrowserRec*, KGPoint*, long) + 1464
    22 ...FinalCutPro.Plugins.Browser 0x01880d58 ComputeLayoutInfo(BrowserRec*) + 9392
    23 ...FinalCutPro.Plugins.Browser 0x018851b0 ComputeLayoutInfo(BrowserRec*) + 26888
    24 com.apple.FinalCutPro 0x002ac9d4 pKGViewMessage(long, long, KGDictInt*, KGViewRecord*) + 16876
    25 ...FinalCutPro.Plugins.Browser 0x0188253c ComputeLayoutInfo(BrowserRec*) + 15508
    26 ...FinalCutPro.Plugins.Browser 0x018851b0 ComputeLayoutInfo(BrowserRec*) + 26888
    27 com.apple.FinalCutPro 0x002a589c PPassMouseEvent(KGPanelRecord*, KGDictInt*, long) + 1400
    28 com.apple.FinalCutPro 0x002afa68 pKGPanelMessage(long, long, KGDictInt*, KGViewRecord*) + 416
    29 com.apple.FinalCutPro 0x00254470 ServicesPanelsMessageProc(long, long, KGDictInt*, KGPanelRecord*) + 120
    30 com.apple.FinalCutPro 0x00255b28 BrowserMessageProc(long, long, KGDictInt*, KGPanelRecord*) + 84
    31 com.apple.FinalCutPro 0x002a4fd0 pKGPanelWindowProc(long, long, KGDictInt*, void*) + 96
    32 com.apple.FinalCutPro 0x002bc838 pKGSendWindowMessage(KGWindowRec*, long, long, KGDictInt*) + 140
    33 com.apple.FinalCutPro 0x00156860 HandleMouseDown(OpaqueEventRef*) + 1032
    34 com.apple.FinalCutPro 0x0015710c HandleWindowMouseDown(OpaqueEventRef*) + 296
    35 com.apple.FinalCutPro 0x003e6388 WindowMouseEvents(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 28
    36 com.apple.HIToolbox 0x931d7794 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692
    37 com.apple.HIToolbox 0x931d6eec SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372
    38 com.apple.HIToolbox 0x931ddc8c SendEventToEventTarget + 40
    39 com.apple.HIToolbox 0x93269e58 HandleMouseEventForWindow(OpaqueWindowPtr*, OpaqueEventRef*, unsigned short) + 236
    40 com.apple.HIToolbox 0x933cc9c8 HandleMouseEvent(OpaqueEventRef*) + 368
    41 com.apple.HIToolbox 0x931ddff8 ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 496
    42 com.apple.HIToolbox 0x931d79e4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1284
    43 com.apple.HIToolbox 0x931d6eec SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372
    44 com.apple.HIToolbox 0x931ddc8c SendEventToEventTarget + 40
    45 com.apple.HIToolbox 0x9321e9a0 ToolboxEventDispatcher + 92
    46 com.apple.HIToolbox 0x9321e92c HLTBEventDispatcher + 16
    47 com.apple.HIToolbox 0x9321cee4 RunApplicationEventLoop + 148
    48 com.apple.FinalCutPro 0x0015394c KGMainEvent(void*) + 52
    49 com.apple.FinalCutPro 0x002c1004 main + 64
    50 com.apple.FinalCutPro 0x00002b64 _start + 340
    51 com.apple.FinalCutPro 0x00002a0c start + 60
    Any clues?
    Dual G5 2.0 ghz   Mac OS X (10.4.6)  

    appreciate that, but what we need to do is find out if its a problem with the import function or the files you are importing ... best way is to use the export xml function which we know shoud provide a compatible xml to test with the import xml function

  • "PLS-00172: string literal too long" When Writing XML file into a Table

    Hi.
    I'm using DBMS_XMLStore to get a XML file into a db table. See the example below, I'm using that for my PL/SQL format. Problem is that because there're too many XML elements that I use in "xmldoc CLOB:= ...", I get "PLS-00172: string literal too long" error.
    Can someone suggest a workaround?
    THANKS!!!
    DECLARE
    insCtx DBMS_XMLStore.ctxType;
    rows NUMBER;
    xmldoc CLOB :=
    '<ROWSET>
    <ROW num="1">
    <EMPNO>7369</EMPNO>
    <SAL>1800</SAL>
    <HIREDATE>27-AUG-1996</HIREDATE>
    </ROW>
    <ROW>
    <EMPNO>2290</EMPNO>
    <SAL>2000</SAL>
    <HIREDATE>31-DEC-1992</HIREDATE>
    </ROW>
    </ROWSET>';
    BEGIN
    insCtx := DBMS_XMLStore.newContext('scott.emp'); -- get saved context
    DBMS_XMLStore.clearUpdateColumnList(insCtx); -- clear the update settings
    -- set the columns to be updated as a list of values
    DBMS_XMLStore.setUpdateColumn(insCtx,'EMPNO');
    DBMS_XMLStore.setUpdateColumn(insCtx,'SAL');
    DBMS_XMLStore.setUpdatecolumn(insCtx,'HIREDATE');
    -- Now insert the doc.
    -- This will only insert into EMPNO, SAL and HIREDATE columns
    rows := DBMS_XMLStore.insertXML(insCtx, xmlDoc);
    -- Close the context
    DBMS_XMLStore.closeContext(insCtx);
    END;
    /

    You ask where am getting the XML doc. Well, am not
    getting the doc itself.I either don't understand or I disagree. In your sample code, you're certainly creating an XML document-- your local variable "xmldoc" is an XML document.
    DBMS_XMLSTORE package needs
    to know the canonical format and that's what I
    hardcoded. Again, I either don't understand or I disagree... DBMS_XMLStore more or less assumes the format of the XML document itself-- there's a ROWSET tag, a ROW tag, and a then whatever column tags you'd like. You can override what tag identifies a row, but the rest is pretty much assumed. Your calls to setUpdateColumn identifies what subset of column tags in the XML document you're interested in.
    Later in code I use
    DBMS_XMLStore.setUpdateColumn to specify which
    columns are to be inserted.Agreed.
    xmldoc CLOB :=
    '<ROWSET>
    <ROW num="1">
    <KEY_OLD> Smoker </KEY_OLD>
    <KEY_NEW> 3 </KEY_NEW>
    <TRANSFORM> Specified </TRANSFORM>
    <KEY_OLD> Smoker </KEY_OLD>
    <VALUEOLD> -1 </VALUEOLD>
    EW> -1 </VALUENEW>
         <DESCRIPTION> NA </DESCRIPTION>
    </ROW>
    ROWSET>';This is your XML document. You almost certainly want to be reading this from the file system and/or have it passed in from another procedure. If you hard-code the XML document, you're limited to a 32k string literal, which is almost certainly causing the error you were reporting initially.
    As am writing this I'm realizing that I'm doing this
    wrong, because I do need to read the XML file from
    the filesystem (but insert the columns
    selectively)...What I need to come up with is a proc
    that would grab the XML file and do inserts into a
    relational table. The XML file will change in the
    future and that means that all my 'canonical format'
    code will be broken. How do I deal with anticipated
    change? Do I need to define/create an XML schema in
    10g if am just inserting into one relat. table from
    one XML file?What does "The XML file will change in the future" mean? Are you saying that the structure of the XML document will change? Or that the data in the XML document would change? Your code should only need to change if the structure of the document changes, which should be exceptionally uncommon and would only be an issue if you're adding another column that you want to work with, which would necessitate code changes.
    I found an article where the issue of changing XML
    file is dealt by using a XSL file (that's where I'd
    define the 'canonical format'), but am having a
    problem with creating one, because the source XML is
    screwed up in terms of the format:
    it's not <x> blah </x>
    <x2> blah </x2>
    x2="blah" x3="blah> ...etc
    Can you point me in the right direction, please?You can certainly use something like the DBMS_XSLProcessor package to transform whatever XML document you have into an XML document in an appropriate format for the XMLStore package and pass that transformed XML document into something like your sample procedure rather than defining the xmldoc local variable with a hard-coded document. Of course, you'd need to write appropriate XSL code to do the actual transform.
    Justin

  • Import XML file into ABAP WD

    Hi,
    Is there any way to upload an XML file into ABAP WD?
    I just saw a blog for Java WD.
    <a href="/people/johann.marty/blog/2006/10/03/create-a-web-dynpro-tree-from-an-xml-file:///people/johann.marty/blog/2006/10/03/create-a-web-dynpro-tree-from-an-xml-file
    Is there a similar facility in ABAP WD?
    Regards,
    Haresh.

    hey u can do this by using CALL Transformation id.. command..
    here is the example code where i wrote this to convert it DATA to XML format...it may help u..
      DATA : BEGIN OF l_xml_tab OCCURS 0,
              a(100) TYPE c,
             END OF l_xml_tab.
      DATA : xml_out TYPE string .
      DATA : lw_xml_tab LIKE LINE OF l_xml_tab.
    XML
      CALL TRANSFORMATION id "('ID')
      SOURCE tab = gt_outtab[]
      RESULT XML xml_out.
    Convert to TABLE
      CALL FUNCTION 'HR_EFI_CONVERT_STRING_TO_TABLE'
        EXPORTING
          i_string         = xml_out
          i_tabline_length = 100
        TABLES
          et_table         = l_xml_tab.
      OPEN DATASET p_lgfil1 FOR OUTPUT IN BINARY MODE.
      LOOP AT l_xml_tab INTO lw_xml_tab.
        TRANSFER lw_xml_tab TO p_lgfil1.
      ENDLOOP.
      CLOSE DATASET p_lgfil1.

  • Trouble getting audio files when importing R3D files into CS5.5 Prem Pro

    Importing R3D files into Premiere Pro CS5.5 works for Video but the audio doesn't convert properly.   There is an audio file included in the R3D file that PP can see but it just has a few spikes.
    This same file played in REDcine-X plays the video/audio just fine.   Is there some audio setting in Premiere Pro that I should be setting?
    Oddly enough if I use REDcine-X to output a RED Trim file and then import it into PP, the audio file is shown separately and is imported correctly.   This of course involves a file conversion step in the workflow and a step that we are hoping to avoid.

    In order to import all kinds of  r3d, we had better convert it to adobe more compaitble video format like dv, mpeg, avi
    You may refer to the following step by step guide on how to convert .r3d movies at Convert R3D to ProRes, MOV, AVI, MP4, WMV, 3GP, MKV
    The guide applies to:
    Convert R3D to ProRes 4444, 422, 422 (HQ), 422 (LT), and 422 (Proxy) to fast import any version of Final Cut Pro or Final Cut Pro X.
    Convert R3D to MOV, MP4 to import R3D to iMovie for easy editing or to play R3D in QuickTime, iTunes, iPad, iPod, iPhone, Apple TV.
    Convert R3D to AVI, WMV, MPG to edit R3D in Avid, Adobe Premiere, Sony Vegas, Windows Movie Maker or play R3D in Windows Media player, Xbox 360, Microsoft Surface.
    Convert R3D to FLV, WebM, H.264, MP4 for upload R3D video files to YouTube
    Convert R3D to DV, VOB, ASF, SWF, RM, 3GP, OGV, FLAC, OGG, MP3, WAV, WMA, AC3, AIFF, WMA and etc.

  • How to insert large xml file to XMLType column?

    Hi,
    I have a table with one column as XMLType(Binary XML storage option and Free Text Indexing). When i try to insert a large XML as long as 8kb, i'm getting an error ORA-01704:string literal too long.
    Insert into TEST values(XMLTYPE('xml HERE'));
    How to insert large XML values to XMLType column?
    Regards,
    Sprightee

    For a large XML file, you basically have two options - you can load the string directly as an XMLType, or you can load the string as a CLOB and cast it on the database side to an XMLType.
    If you decide to load the XML as XmlType client-side, then you may be interested to know that versions of Oracle after 11.2.0.2 support the JDBC 4.0 SQLXML standard. See the JDBC driver release documentation here:
    http://docs.oracle.com/cd/E18283_01/java.112/e16548/jdbcvers.htm#BABGHBCC
    If you want to load as a CLOB, then you'll need to use PreparedStatement's setClob() method, or allocate an oracle.sql.clob object.
    For versions before 11.2.0.2, you can create an XMLType with a constructor that includes an InputStream or byte[] array.
    HTH
    Edited by: 938186 on Jun 23, 2012 11:43 AM

  • I need to know how to import xml files into indesign cs6.

    My client wants to send me xml text files to import into Indesign for a multi-page publication. I don't have a clue where to start. Can you point me to a tutorial that would help me figure this out?
    I have a sample file that looks like this:
    <?xml version="1.0"?>
    <providers>
      <provider>
        <name>Bow Valley College</name>
        <description>Putting the Community back in college&#x2026;in the Bow Corrid
    ANY TIME, ANY PLACE, ANY PATH, ANY PACE LEARNING.
    Designated as the comprehensive community college for Calgary &amp; its
    surrounding region, Bow Valley College offers you learning opportunities
    through flexible delivery options, including classrooms, online or self
    paced modules. Whether you are taking a course for interest, to enhance
    your career skills or to finish high school you have access to all of the
    traditional Bow Valley College student supports.
    Visit our website [2] or come see us at our Canmore campus.
    BOW VALLEY LEARNING COUNCIL MEMBER.
    Links:
    [1] http://www.bowvalleycollege.ca/bow-corridor.html
    </description>
        <contact_information>Canmore Campus
    Provincial Building, 800 Railway Ave.
    Canmore, AB&#xA0; T1W 1P1
    OFFICE HOURS: 8:30am - 4:30pm, Monday - Friday (except from 12 - 1pm)
    PHONE: (403) 678-3125
    FAX: (403) 678-3127
    BANFF CAMPUS: Lower Level, Banff YWCA, 102 Spray Ave., Banff (ONLY OPEN
    WHEN COURSES OFFERED).&#xA0;</contact_information>
        <email>[email protected]</email>
        <website>www.bowvalleycollege.ca/bow-corridor</website>
        <registration_information>Cancellation policy: Once your course has begun no refunds or credits will
    be given. Compassionate grounds may be considered with official
    documentation. There are no refunds, transfers, or credits if you cancel
    within one week of the course start date.
    BY PHONE: (403) 678-3125. Payment by Visa or Mastercard
    IN PERSON: Canmore Campus, Provincial Building, 800 Railway Ave., Canmore.
    Payment by cash, Visa or Mastercard.
    &#xA0;
    FUNDING ASSISTANCE&#xA0;MAY BE AVAILABLE FOR THOSE ON A LOW INCOME ON SOME
    COURSES. PLEASE ASK FOR MORE INFORMATION.</registration_information>
        <courses>
          <course>
            <title>Computer Basics/Windows 7 - Instructor led, Canmore</title>
            <description>An instructor will lead the class through the basic features of Microsoft
    Windows, the Internet and Email. Find out how to start programs, create,
    save and organize your files and use the online help feature. You&#x2019;ll also
    get an introduction to surfing the internet and setting up an email
    account. This course is designed for those with little or no computer
    experience &#x2013; and is still our most popular course. 18 HR COURSE.</description>
            <schedule_entries>
              <entry>
                <date>Mon 6:30 - 9 pm, Oct 7 - Dec 2</date>
                <date>Thu 6:30 - 9 pm, Oct 10 - Dec 5</date>
              </entry>
            </schedule_entries>
          </course>
          <course>
            <title>Word 2010 Introduction - Self-paced</title>
            <description>Explore the basics of Microsoft Word to produce professional letters and
    documents. This course guides you through the effective use of the Word
    Ribbon and Quick Access Toolbar. You&#x2019;ll learn how to efficiently edit,
    move and copy text; manipulate fonts; apply bullets and numbering; borders
    and shading; insert and re-size Clip Art; enter headers and footers; insert
    page numbers; set alignment and indents; and change page settings. You&#x2019;ll
    learn to use the AutoCorrect feature and finish documents using the
    spelling, thesaurus and grammar features.
    Self-paced, 18 hr course.
    Prerequisite recommended: Computer Basics or equivalent experience.</description>
            <schedule_entries>
              <entry>
                <date>Mon 7:30 - 9 pm, Oct 7</date>
                <date>Thu 7:30 - 9 pm, Dec 5</date>
              </entry>
            </schedule_entries>
          </course>
          <course>
    AND SO ON...FOR 64 PAGES WORTH OF CONTENT
    HELP!!!
    SGAREN

    Hello Sally,
    First, I have only heard/read good things about the book Steve recommends. It is on my to buy list one day. Been awaiting a long deserved vaction to pick it up to read.
    I approach XML files pretty much like I do any text file I am sent in that I will import or copy/paste a text file into a frame in ID and begin setting my styles. With XML, though, I first clean it up, move closing tags up to their logical close lines, remove spurious codes that mean something in HTML but don't necessarily belong in the XML file (like &#x2019 which is an apostrophe so I do a search and replace. But for &#xA0; which is a non-breaking space I simply search and replace with a regular space in general), and make sure the XML validates.
    Validation is much like making sure an HTML page is formed properly. I use an XML editor (XML BluePrint) and a text editor (UltraEdit) for these tasks. If I had to only have one or the other, I suppose the XML editor is what I would use.
    I always show the import options when I import the XML and make sure that I link to the file.
    So once a sample of the XML is on a page in ID (via File | Import XML), I highlight text within a tag, say like in your example above, the Providor name, and make it like I want and then create a new style. I generally name the styles as per the XML tag. Later on, that makes mapping tags to styles a little easier.
    Once I set up all the styles preliminarily, I map the tags to styles. You can do that either via the Tags palette or via the Structure Pane that will appear once the XML is imported. In both cases, it is found via the flyout menu at the top right of their respective windows.
    After mapping my styles to the tags, I select the root element in the Structure Pane (the topmost element. In your sample above it is "providors" and delete it. This removes the XML in your ID file. But the styles and tags are still present.
    Then I import the XML again and look to makes sure all the tags/elements are styled as intended. I then correct any errors/ommissions. Then...I'll delete the XML again and import the full XML file.
    I can upload what I did with your XML sample above so you can compare it to your source file if you would like. You would then see how/where I moved tags. Now, moving the tags is only "necessary" to avoid all the extra blank paragraphs. That can be accomplished by ID's search/replace, too. But I like to start out with the XML cleaned up, so I take the few minutes to do it.
    Take care, Mike

  • Importing XML files into FCP 6

    I recorded some footage using a Panasonic P2camera. I sent the files across to my media drive using fire wire but when I try to import the XML files from my media drive into FCP it tells me: *Please choose a translation document file*. Do I need a driver ? What am I doing wrong ?

    There should be a text file along with the P2 media you recorded. That has to be transfered as well.

  • Problems when importing multiple files into key frames

    I'm creating an interactive flash application that uses hundreds of individual renders from a 3d modelling app.  The image file size is 800 x 600.  Each sequence that i import to the stage is around 120 images and each gets put into a separate key frame.  The problem is, often when I import batches of files into flash the program crashes and stops responding. The problem gets worse after each succesful import ie. after importing the first lot of files, its unlikely that the second lot of files will import.
    Interestingly, I dont have this problem on my pc.  So I can  do all the importing on my pc, but when I try and compile the swf file my pc does not create a file and sometimes crashes.  So I am having to import on my pc and compile the swf on my mac.
    Anyone else having similar problems? is there a better way of going about this?

    flash is limited to 16,000 frames.
    use several swfs and load them into a main swf.

  • Hyperlink issues when importing Frame files into RoboHelp 10.

    When I import a Frame file into RoboHelp 10, the text preceding a hyperlink is also mangled with the hyperlink in the output.
    For example,
    The following online file supplements the information in this guide. Release notes are available on the Support site at
    https://support.example.com.
    How do you prevent the text that precedes the link from being munged together with the link?
    Shuba

    Have you placed the hypertext marker within a character tag?
    If there's no character tag, then the para, and not the phrase, is your active hypertext area in FM and all electronic output.
    For more info, see p511 of my book.
    -Matt
    Matt R. Sullivan
    co-author Publishing Fundamentals: Unstructured FrameMaker 11

  • No audio when importing mp4 files into iTunes.

    Since recently, whenever I import an MP4 of M4V file into iTunes, it either deletes the audio, or the video becomes shocky.
    When I play the same files in VLC they do work. That is great and all, but since I use Apple TV I need them to work in iTunes.
    I've tried to delete and re-import the files. I've also tried to download different versions of the same files, which also didn't work.
    To me it seems like the problem lies within iTunes.. but I'm not really a computer wiz.
    Anyone else have this problem and know how to fix this?
    Thanks in advance.

    Does your friend have EXACTLY the same computer software and hardware?
    More information needed for someone to help... please click below and provide the requested information
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840

Maybe you are looking for