What is best method to validate when schemaLocation is not provided?

Hi,
We have been receiving XML documents with the following root element:
<tns:EASImport xmlns:tns="http://www.xyz.com/asg/EASInsertionImport/"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.xyz.com/asg/EASInsertionImport/ EASInsertionImport.xsd">
The EASInsertionImport schema is registered in the Oracle database. The XML document is stored in a staging table and the following pl/sql code successfully validates the file:
<plsql>
SELECT XMLTYPE (xml_data)
INTO l_xml
FROM pr_interactive_import
WHERE interactive_import_id = pInImportId;
l_xml.schemavalidate ();
</plsql>
Now we are receiving XML files from another source that are not including the schemaLocation attribute. So the above validation check fails. So my question is, what methods do others use to validate XML documents when the schemaLocation is not present?
My initial thoughts were that I could parse the root element and determine which schema to use by looking at the xmlns:tns attribute and then set the schema appropriately within my pl/sql logic and then validate. Fairly soon, we also need to support different versions of these xml documents so we will have multiple schemas registered in the database. Are there any other options than parsing the root element for the schema? Seems that there should be some setting for Oracle to figure this out automatically as the schemaLocation is an optional attribute.
Any help with this is greatly appreciated.
Thanks,
Alan

Hi Marco,
I've updated xdbconfig as explained in that document, but it doesn't appear to have had any affect.
DECLARE
v_cfg XMLType;
BEGIN
select insertChildXML
DBMS_XDB.cfg_get(),
'/xdbconfig/sysconfig',
'schemaLocation-mappings',
XMLType('<schemaLocation-mappings xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"><schemaLocation-mapping>
<namespace>http://www.harris.com/asg/EASInsertionImport/</namespace>
<element>tns:EASImport</element>
<schemaURL>EASInsertionImport.xsd</schemaURL></schemaLocation-mapping></schemaLocation-mappings>'),
'xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"'
into v_cfg
from dual;
DBMS_XDB.cfg_update(v_cfg);
COMMIT;
END;
But the pl/sql call:
PROCEDURE validate_xml (pInImportId INTEGER)
IS
l_xml XMLTYPE;
BEGIN
SELECT XMLTYPE (xml_data)
INTO l_xml
FROM pr_interactive_import
WHERE interactive_import_id = pInImportId;
l_xml.schemavalidate();
END validate_xml;
Still produces Oracle error: ORA-19030: Method invalid for non-schema based XML Documents. ORA-06512: at "SYS.XMLTYPE", line 345
Again, here is the root element for my xml document:
<tns:EASImport xmlns:tns="http://www.harris.com/asg/EASInsertionImport/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Given that this root element contains a namespace, I also tried specifying a value of "tns:EASImport" instead of "EASImport" in the "<element>" element of the xdbconfig file. As far as I can tell, the values for the namespace and schemaURL elements are correct. The schemaURL element does match the schema_url column value in dba_xml_schemas.
Do you see any other configuration issues that I may have missed?

Similar Messages

  • Whats the best method to cut out hair?

    Im using photoshop Cs4 - whats the best method to cut out hair from a background?

    I just had to do a quick search, because I was not sure when the Refine Edge was introduced, but it appears you do have it in CS4.  Check out this tutorial, but ignore all the stuff about paths.  Make a rough selection with Quick select - it shares a location on the tool bar with the Magic Wand, so don't confuse the two.
    Having made the rough selection, open Refine Edge.  I remember it took me a while to get the hang of it, but tutorials will help
    http://www.youtube.com/watch?v=bxKPUW1vYEg
    The above tutorial deals specifically with CS4.  This next one is probably the best real world use of Refine Edge I've seen, because it uses a difficult subject (as opposed to the easy selections so many tutorials fob you off with)
    http://www.youtube.com/watch?v=ssJRkbkHAa4

  • HT1937 What is best method to boost network signal iPhone 5

    I live on the lower level of the apartment complex with the woods and hills I get no service unless I go on my patio which gets maybe 2 bars.  How do I figure out what my best option will be when installing a signal booster. I don't have a wifi issue just network

    Check with your carrier and see what they have available. AT&T has Microcells available that use your broadband internet connection to provide you with a boosted signal at home.

  • How to access the Oracle from Unix when SID is not provided?

    How to access the Oracle from Unix when SID is not provided.
    User Name : xxx
    Password : yyy
    SID : SID
    I use to access it using below command from Unix prompt:
    sqlplus xxx/yyy@SIDNow since I dont have SID, how to access the Oracle DB from Unix Box?
    User Name : xxx
    Password : yyy
    Service Name : zzz
    Regards,
    Sunny.

    Hi Ajay
    Thanks for the suggesstion :)..It worked as well.
    The Actual problem was in the "tnsnames.ora" file where in I need to make entry for the new SERVICE name.
    Now I am able to connect it properly.
    Regards,
    Sunny.

  • When bouncing- what's best method for smallest file size/highest quality?

    I am in the process of embedding 3 mp3's into a PDF to submit as a portfolio. The PDF also has text, and two scores included, and with the 3 embedded mp3's it can't be more than 10mb.
    So my question is: When bouncing a project out of Logic, what is the best method for getting the smallest file size, but retaining the best audio quality? And once it's out of Logic and it is an mp3 or other type of audio file, is there a best format for compressing it further, and still maintaining the relative quality?
    I bounced out the three projects into wav's. Now I am using Switch for Mac to compress them down to smaller Mp3's. I basically need them to be about 3 mb each. Two of the recordings sound OK at that size, but they are just MIDI(one project is piano and string quartet, the other is just piano- all software instruments. The recording that combines MIDI and Audio and has more tracks (three audio tracks and 10 Midi/software instrument tracks)and sounds completely horrible if I get it under 5 mb as an mp3. The problem is that I need all three to equal around 9mb, but still sound good enough to submit as a portfolio for consideration into a Master's program.
    If anyone can help I would really appreciate it. Please be detailed in your response, because I am new to logic and I really need the step by step.
    Thank you...

    MUYconfundido wrote:
    I am in the process of embedding 3 mp3's into a PDF to submit as a portfolio. The PDF also has text, and two scores included, and with the 3 embedded mp3's it can't be more than 10mb.
    So my question is: When bouncing a project out of Logic, what is the best method for getting the smallest file size, but retaining the best audio quality?
    The highest bitrate that falls within your limits. You'll have to calculate how big your MP3's can be, then choose the bitrate that keeps the size within your limit. The formula is simple: bitrate is the number of kilobits per second, so a 46 second stereo file at 96 kbps would be 96 x 46 = 4416 kbits / 8* = 552 kBytes or 0.552 MB. (*8 bits = 1 Byte)
    So if you know the length of your tracks you can calculate what bitrate you need to keep it within 10 MB total.
    I consider 128 kbps the lowest bearable bitrate for popsongs and other modern drumkit based music. Deterioration of sound quality is often directly related to the quality of the initial mix and the type of instruments used in it. Piano(-like) tones tend to sound watery pretty quickly at lower bitrates, as do crash and ride cymbals. But don't take my word for it, try it out.
    And once it's out of Logic and it is an mp3 or other type of audio file, is there a best format for compressing it further, and still maintaining the relative quality?
    You can only ZIP the whole thing after that, but that is just for transport. You'll have to unzip it again to use it. And no, you cannot compress an MP3 any further and still play it.
    I bounced out the three projects into wav's. Now I am using Switch for Mac to compress them down to smaller Mp3's.
    That is silly, you could have done that in Logic, which has one of the best MP3 encoders built in. And how good encoders are will especially come out at bitrates around or below 128, which you might be looking at.
    I basically need them to be about 3 mb each.
    So, one more scrap of info we need here: how long are those three pieces, exactly? I'll calculate the bitrate for you - but please bounce 'm directly out of Logic as MP3's. They will very probably sound better than your WAV-conversions made with Switch.
    !http://farm5.static.flickr.com/4084/4996323899_071398b89a.jpg!
    Two of the recordings sound OK at that size, but they are just MIDI(one project is piano and string quartet, the other is just piano- all software instruments. The recording that combines MIDI and Audio and has more tracks (three audio tracks and 10 Midi/software instrument tracks)and sounds completely horrible if I get it under 5 mb as an mp3. The problem is that I need all three to equal around 9mb, but still sound good enough to submit as a portfolio for consideration into a Master's program.
    Length of the piece? And does the .Wav bounce you have sound OK?

  • Purchasing new iMac (27 i5), what is best method to transfer programs/files/documents from 24" iMAC?  What is the best method to remove personal data from OS?

    Purchasing a new iMac (27 i5), what is the best method to transfer programs/files,documents from a 24" iMac?
    What is the best method to remove personal data from the 24" iMac?

    Use setup assistant which is offered when you setup your new Mac.  It will transfer information from a Time Machine backup, Clone or another Mac.
    It's best to do this during setup to avoid issues with duplicate IDs.
    Regards

  • F110:  What is best method in voiding an EFT payment after check run?

    What is the best method in voiding or reversing an EFT payment after a check run (F110)?
    Thanks!

    have you figureed it out?
    if I didn't remember wrong, we first find the clearing document number in proposal log, and used FBRA to reset the clearing items, then reverse the document
    I am also interested in setting a dummy check number for EFT, anyone can throw some ideas here?
    thanks
    Keqin

  • Whats the best method to deploy sccm 2012 client

    Hello what is the best method to deploy SCCM 2012 client, is there a script that should be used as sometimes the client push fails. In particular pushing the client to server 03 /08/12 types.
    Thankyou
    SCCM Deployment Technician

    Ultimately, the best method is whatever works for you. Every environment is different and has unique constraints and requirements. You first need to learn out each of the methods and what they do to be able to properly evaluate which will work best for you.
    Kind of like mining for gold, who cares how you got it out of the ground, once you get it out, you're rich :-) But if you rely on someone else telling you what the best way was for their mine, you may not be doing it the best way for your mine thus you need
    to geological surveys, exploration, trial and error, etc. In other words, you need to do some real grunt work.
    Often, using multiple methods is best though because each has its pros and cons (yes, even my startup script -- thanks for the cheerleading Michael and Tim). But as mentioned, it all comes down to you learning about your environment and the different
    methods available to make the best choice. If there was only one "best" way to do it, there wouldn't be multiple available and none of us would really be needed.
    Jason | http://blog.configmgrftw.com

  • What is best method for transferring iTunes library from PC to iMac?

    I have a new iMac.  I have authorized it with my iTunes account.  My current iTunes library is on a Windows Vista PC, not on the same network.  What is the best method for me to use to transfer the iTunes library from the PC to the iMac?

    iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    Quick answer if you let iTunes manage your music:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Start iTunes with the option (shift on Windows) key held down and guide it to the new location of the library.
    Macworld - How to transfer iTunes libraries between PC and Mac - http://www.macworld.com/article/46248/2005/08/shiftitunes.html
    Move an iTunes library from a Windows PC to a Mac - http://www.macworld.com/article/1146958/move_itunes_windows_mac.html

  • Most recent update changed all font sizes. What is best method to change back to to preexisting Fonts

    The most recent update changed all font sizes (smaller). What is the best method to enlarge?

    yeah, that's what I ended up doing late last night because the white font against pale gray background was driving me nuts. I hadnt changed anything. been using the same theme for about 4 months but then all of a sudden, like I said, the font color mysteriously changed.
    anyway, thanks for your help.

  • What is best method for designing InfoCube?

    Hi BW Guru`s,
    I have some doubts on InfoCube designing.
    I have a scenario like,  I have 25 Characteristics ( Customer, Sales Org, Brand, Material, Material Group etc..) and 10 keyfigures (Sales, Revenue, Amount,etc..). By using these objects how to design the Infocube. But I know the normal design process. Does any body tell me best design method of Infocube and it should not effect any kind of performance issues ( load performance and Query performance).
    good points will assiagn.
    Thanks in advance,
    venkat

    hi,
    I have a scenario like, I have 25 Characteristics ( Customer, Sales Org, Brand, Material, Material Group etc..) and 10 keyfigures (Sales, Revenue, Amount,etc..). By using these objects how to design the Infocube. But I know the normal design process. Does any body tell me best design method of Infocube and it should not effect any kind of performance issues ( load performance and Query performance).
    As you dont have much charecteristics and key figures to design your cube, create Dimensions for CUSTOMER, SALES DATA, MATERIAL, BRAND etc. and put the logically related charecteristics into the dimensions.
    For example: Customer Dimension( Customer ID, Customer name, customer Address etc.)
    try to create the smaller Dimensions for performance reasons.
    assigning points is the way to say thanks in sdn
    regards
    vadlamudi

  • What is the default staging mode when it is: (not specified) ?

    Hi All,
    What is the default staging mode when none is specified?
    As per docs, there are three: stage, no stage and external stage
    http://docs.oracle.com/cd/E17904_01/apirefs.1111/e13952/taskhelp/deployment/SetAServerStagingMode.html
    Many thanks.
    Running Weblogic 10.3.5.0 on OEL.

    "stage" directory means that the EAR file will be temporarily copied to that location and will be used only when the application source directory is not available OR when the administration server is down.
    It is like a local copy of the source directory for your application.
    Sometimes, during restart/redeployment, the managed server could pick the application files from the stage directory.
    But, in general if you use the "Update" option in "Deployment", the files in the stage directory are replaced by the files from the "source" directory.
    What I suspect here is in PROD, if you might have any permission issues with the stage directory?
    Can you please check that the stage directory is owned by the user running the server process AND that the directory permissions is set to 755. And not only directory the files also should inherit the same ownership and permissions.
    That is the only thing I can suspect.
    Arun

  • When ipod connect via usb to my computer what is best method to disconnect.

    i have connected my ipod to my computer, via usb   but I am not sure what is the best way to disconnect;  i have been simply pulling it out of the computer.  But I think I lost my music downloads when last I did this

    Ty testing after plugging your laptop into the wall, your laptop may be reducing power to the USB port.
    For more general info and tips, take a look at this Apple doc -> iOS: Troubleshooting USB connection

  • What is best method for getting most capacity when burning DVDs?

    Supposedly there's 4.7 gigs on your average one layer DVD that you get in a spindle at the office supply store, but I've never got that much on one.
    This Apple error message is frustratingly backwards and rediculous:
    "Files 001 is too large to fit on disc. Remove some files and try again."
    I don't want to take files out one at a time and try again and again and again and again. I want the exact amount of space available when I insert the DVD. Is this too complicated for a computer company like Apple to figure out?
    What do you guys do to streamline? Partitions? How big? TIA!

    You are falling for the same old Madison Avenue hype that affects all computers and computer storage devices. Salesmen think that a megabyte is 1 million bytes, but in reality, all computers consider a megabyte to be 1024,000,000 bytes. This leads to the common problem of not actually getting 80GB with an 80GB drive (actually formats to something like 74GB). A 1TB drive actually formats to 931GB.
    A 4.7GB DVD actually holds 4.37GB of data. A Dual Layer 8.5GB DVD (sometimes referred to as DV9) actually holds about 7.9GB of data. In addition, a very small portion of every disk is used to keep track of the files on the disk.
    Mac, Windows, Linux - no operating system agrees with Salesmen
    Message was edited by: dechamp

  • What is best method to overcome jerky video export ?

    Hi
    Flash CS5.
    A basic fundamental issue here, getting a decent movie exported from flash.
    I have a 60fps movie (25 was jerky motion [png images as MC’s classic tweened across screen] and after various fps tests 60 was settled on)  with MC’s cars and humans and other items, all MC’s have 60fps timelines, cars and humans with reflections moving across screen. It all plays fine in Flash with ctrl enter. Export it as an avi and play with Quicktime and the action is not just jerky, vehicle enters stage, stops, 5 secs later it jumps halfway across, etc etc, it should run smoothly all the way.
    Likewise mov.
    As the swf is smooth, played via browser, published file set etc, I reckoned converting that would be better.
    I have used an swf to avi converter (iWisoft) , tried all settings highest bitrate, mov wav avi, all are jerky, vehicles move but in a slightly jumpy way, you see double roof panels etc.
    I have seen a thread
    http://forums.adobe.com/thread/747600 with an apparent solution.
    saying play movie on timeline by hitting enter and watch the fps vary, well mine stays steady at 60 !
    It then says export at 5 fps, allows coding of each and every frame, so I alter the 60 to 5 on timeine and then export movie at 5fps as avi.
    Play avi and the reflections are solid not translucent, so that’s no good. If it means going into every MC and altering the fps also to 5 that’s far too much to do. I have MC’s in MC’s in MC’s like a russian doll !  Would not converting all the MC’s to 5fps  be the cause of loss of reflections ?
    What a crazy thing to have to do after creating the movie. Tell us this before we buy flash.
    However I try for a convert to 60fps, using VirtualDub and the result plays in Quicktime with jerkiness. In VLC Media Player its warped and grey, total mess.
    The ‘Correct’ marked post in the thread above didn’t work at all.
    Any other  ideas, as posters in that thread were commenting on a lack of Adobe input to this issue being faced by various bods, creating movies in Flash that look fine but with an inability to get them as mpeg avi etc is bad news.
    Is there an official method decreed by Adobe on this now. ?
    What actually truly works ?
    Envirographics

    This isn't  a Dreamweaver question as much as it is an SEO question.
    Web searches reveal results based on content inside semantic HTML; not their URLs.   So a link to index.html carries the same approximate weight as a link to http://yourdomain.com.
    The main diff is that DW cannot manage absolute links for you.  It can only manage links that are document or site root relative.
    Nancy O.

Maybe you are looking for

  • Disabling one input field if i enter text in second inputfield

    Hi, I am new to WebDynpro. My problem is very simple. I have two input fields. When i enter text in one input field i want the second input field to be disabled & Vice versa. The idea is that i want to give the user the option to enter in only 1 inpu

  • Server-side includes in cs5

    have used all previous versions of dw. no prior problem with server-side includes. now, they are not showing up in design view. Yes, I have marked preferences to include hidden items/server side includes. any thoughts anyone?

  • Original picture changed while saving the edited one

    Hi, I am an absolute beginner using Camera Raw. I just edit a picture in Camera Raw 5.7. When I was finished I saved the edited picture using a new name. Unfortunatly the original picture has also changed. So now I have two identical edited pictures

  • Mac Book Pro Intel Core Duo 2 overheating and turning off

    I've been having this nasty problem with my Mac Book Pro Intel Core Duo 2 (2.8 Ghz, 4 MB 1067 MHz DDR3 RAM, bought in August 2009) for quite a while, but recently it's intensifying. It starts to overheat badly, and then randomly turns itself off if n

  • Stopping the clock 'screen saver'?

    I love my Classic iPod. It has my entire music collection in it. But it's very fristraiting when I want to quickly look at it to see the name of the track and the clock is displayed! I have a watch for the time! Can I stop this annoying 'screensaver'