Handling a schema URL that is also a container

Greetings,
I have two schema URLs, say "http://schema1" and "http://schema1/schema2". I successfully registered the first in Oracle 10g R2 XMLDB. When I attempt to register the second, I receive the following error:
ORA-31002 Path name "http://schema1" is not a container
It would be extremely difficult to change either schema URL. Is this Oracle XMLDB restriction? If so, any suggestions how I might workaround it without changing either URL?

I would tend to argue that it falls into the category of if it hurts please don't do it... Having a SchemaLocationHint that is also a folder that contains another of the XML Schemas makes little or not sense to me unless I'm missing something. I don't think you could represent this model on most file systems..
Are you prepared to modify the XML Schemas during registration in order to get past this problem...
Are you sure you cannot change the schemaLocationHint you are using. This is not the same as changing then nanespace, which would be a real problem. Note that in the following example I changed the schemaURL passed to register schema and the value of the schemaLocation attribute in the import element of the second XML schema. I did not change the namespaces at all..
SQL> begin
  2   dbms_xmlschema.registerSchema(
  3   'http://sample1.xsd',
  4   '<schema xmlns="http://www.w3.org/2001/XMLSchema"
  5    targetNamespace="http://sample1"
  6    xmlns:samp1="http://sample1"
  7    version="1.0">
  8    <simpleType name="departmentIdType">
  9     <restriction base="integer">
10      <enumeration value="10"/>
11      <enumeration value="20"/>
12      <enumeration value="30"/>
13      <enumeration value="40"/>
14     </restriction>
15    </simpleType>
16    <element name="company">
17    <complexType>
18    <sequence>
19     <element name="department">
20      <complexType>
21       <sequence>
22        <element name = "id"   type = "samp1:departmentIdType"/>
23        <element name = "name" type = "string"/>
24       </sequence>
25      </complexType>
26     </element>
27    </sequence>
28    </complexType>
29    </element>
30  </schema>',
31   TRUE, TRUE, FALSE, FALSE);
32  end;
33  /
PL/SQL procedure successfully completed.
SQL> begin
  2   dbms_xmlschema.registerSchema(
  3   'http://sample1/sample2.xsd',
  4   '<schema xmlns="http://www.w3.org/2001/XMLSchema"
  5    targetNamespace="http://sample1/sample2"
  6    xmlns:samp2="http://sample1/sample2"
  7    xmlns:samp1="http://sample1"
  8    version="1.0">
  9    <import namespace="http://sample1" schemaLocation="http://sample1.xsd"/>
10    <simpleType name="departmentIdType">
11     <restriction base="integer">
12      <enumeration value="10"/>
13      <enumeration value="20"/>
14      <enumeration value="30"/>
15      <enumeration value="40"/>
16     </restriction>
17    </simpleType>
18    <element name="company">
19    <complexType>
20    <sequence>
21     <element name="department">
22      <complexType>
23       <sequence>
24        <element name = "id"   type = "samp2:departmentIdType"/>
25        <element name = "name" type = "string"/>
26       </sequence>
27      </complexType>
28     </element>
29    </sequence>
30    </complexType>
31    </element>
32  </schema>',
33   TRUE, TRUE, FALSE, FALSE);
34  end;
35  /
PL/SQL procedure successfully completed.
SQL>

Similar Messages

  • Call to createxml with a schema url does not create schema based xml

    Unfortunately I am unable to post the exact creates that I have done, but I am having a problem and none of my DBA's were able to help me.
    Basically what I have done is, I had existing tables in our database that have legacy data in them. Our ultimate goal is to export information in xml format from the database.
    The first thing I did was to create objects in oracle that wrapped the logic of these tables and filled the objects in based on on ID parameter. There are 3 separate levels of objects. One object that has tables of two other objects each of which has tables of objects themselves.
    After the objects were created, I used a call to dbms_xmlschema.generateschema to generate the schema for these objects. After that I changed the schema so that the names of the elements in the schema were names that i wanted to be. I THOUGHT that this would map my oracle object names to new element names.
    After the schema was generated and changed, I used a call to dbms_xmlschema.registerSchema with the following options:
    local=>true, genTypes=>false, force=>false, GENTABLES=>false, genbean=>false
    I tried it with gentables = true, but unfortunately i don't have access to create these tables and the dba's were not allowing me to because they aren't familiar with the xml capabilities and I couldn't explain why it was necessary. I'm not sure that it is.
    Once the schema was registered, i made a call to xmltype.createxml
    with a call to my object contstructor method as the first parameter, and the schema url that was registered in the database as the second parameter.
    Now, here is my problem. The xmltype result that comes back from the query to createxml does not return the element tag names that i had written in the schema. The tag names are the same as the object names which are the same as it is if i didn't use the schema url at all. Does anyone know what I could possibly be doing wrong? Maybe I am misunderstanding the functionality of creating xml with an oracle xml annotated schema. Please help!

    code tags and formatting are done with square brackets :-) Check out the Formatting Help on the message entry page
    What does the URL resolve to when you view source on the JSP page?
    Try it just "/ViewScores" rather than "/servlet/ViewScores"
    Apart from that, it looks fine to me
    Cheers,
    evnafets

  • What is the best methodology to handle database schema changes after an application has been deployed?

    Hi,
    VS2013, SQL Server 2012 Express LocalDB, EF 6.0, VB, desktop application with an end user database
    What is a reliable method to follow when there is a schema change for an end user database used by a deployed application?  In other words, each end user has their own private data, but the database needs to be expanded for additional features, etc. 
    I list here the steps it seems I must consider.  If I've missed any, please also inform:
    (1) From the first time the application is installed, it should have already moved all downloaded database files to a separate known location, most likely some sub-folder in <user>\App Data.
    (2) When there's a schema change, the new database file(s) must also be moved into the location in item (1) above.
    (3) The application must check to see if the new database file(s) have been loaded, and if not, transfer the data from the old database file(s) to the new database file(s).
    (4) Then the application can operate using the new schema.
    This may seem basic, but for those of us who haven't done it, it seems pretty complicated.  Item (3) seems to be the operative issue for database schema changes.  Existing user data needs to be preserved, but using the new schema.  I'd like
    to understand the various ways it can be done, if there are specific tools created to handle this process, and which method is considered best practice.
    (1) Should we handle the transfer in a 'one-time use' application method, i.e. do it in application code.
    (2) Should we handle the transfer using some type of 'one-time use' SQL query.  If this is the best way, can you provide some guidance if there are different alternatives for how to perform this in SQL, and where to learn/see examples?
    (3) Some other method?
    Thanks.
    Best Regards,
    Alan

    Hi Uri,
    Thank you kindly for your response.  Also thanks to Kalman Toth for showing the right forum for such questions.
    To clarify the scenario, I did not mean to imply the end user 'owns' the schema.  I was trying to communicate that in my scenario, an end user will have loaded their own private data into the database file originally delivered with the application. 
    If the schema needs to be updated for new application features, the end user's data will of course need to be preserved during the application upgrade if that upgrade includes a database schema change.
    Although I listed step 3 as transferring the data, I should have made more clear I was trying to express my limited understanding of how this process "might work", since at the present time I am not an expert with this.  I suspected my thinking
    is limited and someone would correct me.
    This is basically the reason for my post; I am hoping an expert can point me to what I need to learn about to handle database schema changes when application upgrades are deployed.  For example, if an SQL script needs to be created and deployed
    then I need to learn how to do that.  What's the best practice, or most reliable/efficient way to make sure the end user's database is changed to the new schema after the upgraded application is deployed?  Correct me if I'm wrong on this,
    but updating the end user database will have to be handled totally within the deployment tool or the upgraded application when it first starts up.
    If it makes a difference, I'll be deploying application upgrades initially using Click Once from Visual Studio, and eventually I may also use Windows Installer or Wix.
    Again, thanks for your help.
    Best Regards,
    Alan

  • Is there a URL that I can use in a program I'm developing to automatically download the newest version of firefox for deployment?

    In the company that I'm working for, it is key to update any software that we will be installing on our computer systems. We do have a lot of software, so I'm designing a piece of computer software very similar to "Ninite" (a software updater and silent installer) only specifically designed for my company.
    Firefox is one of the software applications that we are very big on and I was wondering if there is a static URL that I can drop in to my software updater that always has the most recent build of firefox.
    For example:
    http://www.mozilla.org/en-US/firefox/new/FireFoxStandaloneInstaller.exe

    ''would you be able to point me in the right direction of a static link similar to below''
    No, all the "direct" links I've ever seen include a version number. Also OS and language, but I assume you can default those. It's the version that's the problem.

  • Handling a specific URL parameter in WCEM

    Hi everybody,
    Is it possible to handle a specific URL parameter in WCEM ?
    For example :
    http://site:port/main/wec-startapp.jsf?wec-appid=MYAPP&my-specific-param=MYVALUE
    Our need is to call a Business Rule Management System giving WCEM the list of allowed articles in the catalog. Depending on the specific parameter, the BRMS will give a different list of articles.
    The value of the specific parameter is chosen by the user at connexion :
    - we don't want to add a dropdown list on the connexion screen to choose the parameter value ;
    - we don't want to use a different webshop for each possible value ;
    - that's why we would like to have one webshop and add a specific parameter in the URL
    Do you have an idea ?

    Hi Steffen,
    Sounds like a solution.
    We'll see during the development phase if it fits the needs.
    Thanks

  • How to handle response.sendRedirect(url) in a portlet w/ webflow?

    I am using a webflow to navigate within a portlet. There are three jsp pages or
    nodes in the portlet. One of the jsp pages has the following logic:
    if (A) { response.sendRedirect(url1)}
    else if(B) { response.sendRedirect(url2)}
    else{display rest of this jsp page}
    I think I have the correct portlet urls. I used WebflowJSPHelper.createWebflowURL(...).
    The problem is when it tries to redirect, the whole portlet disapears leaving
    only the title bar. I check the weblogic log file and there is an exception about
    RuleSetNotFoundException. Does anybody know how to handle this problem? Can
    I use sendRedirect method in a portlet?
    thanks,

    Go to dev2dev.bea.com source code library and copy the redirect sample code in
    your application domain. This program expects you to make come changes in the
    portal workflow.
    ciao
    "Edoardo Boechat" <[email protected]> wrote:
    >
    Dear James,
    Maybe I'll be boring, but I'll give you my expirience with "sendRedirect".
    When you use sendRedirect you send back to the browser a new URL that
    him will
    use to obtain the content that will be exposed, in other words, It's
    a client
    side operation.
    The portlet machanism work on the server side of the application. So
    why you are
    using sendRedirect? If one of that conditions happen, are you interesting
    in expose
    a content of another web site?
    If you want to expose the content of another web site, use the wizard
    to generate
    a example jsp page who do this correct in a portlet and adapt the code
    to your
    situation.
    Otherwise, you are using a wrong concept. If it's a server side operation
    you
    need to use "forward" or "include" operation to do what you want.
    I expect be helpfull,
    Edoardo Boechat.
    "James" <[email protected]> wrote:
    I am using a webflow to navigate within a portlet. There are threejsp
    pages or
    nodes in the portlet. One of the jsp pages has the following logic:
    if (A) { response.sendRedirect(url1)}
    else if(B) { response.sendRedirect(url2)}
    else{display rest of this jsp page}
    I think I have the correct portlet urls. I used WebflowJSPHelper.createWebflowURL(...).
    The problem is when it tries to redirect, the whole portlet disapears
    leaving
    only the title bar. I check the weblogic log file and there is an exception
    about
    RuleSetNotFoundException. Does anybody know how to handle this problem?
    Can
    I use sendRedirect method in a portlet?
    thanks,

  • Testing  HTTP URL that causes a network problem

    Hi all,
    I'm developping an applet for multiple unlimited files downloading using HttpConnection .
    i want to implement the following feature :
    In the case of an error occurring due to network problems during file download; the applet must be able to reconnect and resume the data transfer without downloading the entire file(s).
    well i need to test this feature ; so i'm looking for some HTTP URL that can cause network probs so i can catch the error and retry connection etc...
    can someone point me where to find such HTTP files for my test ?
    thanks.

    >
    I can do this with FTP since it has commands to do
    this but I don't know of any using HTTP unless one
    uses a Servlet (or some other agent on the server) to
    process a download request for a file starting at
    some offset.
    Actually i did it only using HttpConnetion class and inputstream using some work arounds to keep track of the offset during download (actually i'm saving the offset to a temporary proprieties file that i'm reading again to get specific offset and resuming the download from last point)
    That is one way. You could also use an HTTP 'tunnel'
    that forwards all requests to an HTTP server but
    within the 'tunnel' you could at random close the
    connection.I will go for throwing exception manually ; but i'm curious to know how an HTTP tunnel works.
    thanks.

  • Help Viewer can't handle IDVD Help URL

    I am seeing the following message when I try to access iDVD Help.
    Help View does not know how to handle the seclected URL.
    The selected URL is: /Applications/iDVD.app/Contents/Resources/English.lproj/iDVD Help/iDVD Help.html
    I can open the file if I go to /Applications/iDVD.app/Contents/Resources/English.lproj/iDVD Help/iDVD Help.html and double clip on the file.
    Has anyone else seen this?

    Hi, Tony.
    If you're running Mac OS X 10.4.3 as your profile indicates, update to Mac OS X 10.4.6. See the sections:
    • "Help Viewer displays a blank window."
    • "Help Viewer links do not work"
    in my "Troubleshooting Help Viewer" FAQ. That should solve the problem so you don't have to disconnect your Ethernet cable to use Help Viewer.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • How to find the urls that are longer than 260 characters

    Hi
    I'm getting an error using Restore-SPSite thats most likely caused by URL's longer than 260 characters. How can I find out which URL's are too long? It's a huge site collection so it's not an option to search manually.
    Regards
    Jakob

    check this blog, allows you to take an inventory of all files in your web application and flag those files where the path (or URL) is longer than 260 characters.
    Locating files and pages with URLs that are too long for SharePoint
    Also check this: http://social.technet.microsoft.com/Forums/en-US/881d62e6-08c3-43b6-a9f1-96161ffa0201/how-to-write-a-powershell-script-to-find-the-url-path-length-of-all-the-files-and-folders-in?forum=sharepointdevelopmentprevious
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Custom scheme URL

    Hi,
    I'm trying to implement the custom scheme url in an app to open an article from a Web page and have followed Bob's instructions on http://blogs.adobe.com/indesigndocs/2012/06/link-to-dps-app-test.html  but the link provided by him, that is:
    <a href=”com.bringhurst.dpstips://”>OPEN DPS TIPS</a>
    is not working in v27. The DPS TIPS app is not opening.
    However, what in fact is working perfectly is the actual link extracted from the compiled app by Johannes (http://forums.adobe.com/thread/1009059), which is:
    <a href="dps.7f80a0ffed3a4ff08734bc905aac4a29://">
    This opens DPS TIPS without any problems on the iPad.
    My question is how can I extract the link from the compiled app, as Johannes did, or is there any other workaround to get the custom scheme url to work?

    Tapping on that URL scheme link (com.bringhurst.dpstips://) on an iPad works fine for me. I don't understand why it doesn't work for you.
    The string of characters that Johannes used in his link is the Publication ID. It appears in the URL of any shared article. For example, if I share the cover page of the Folios issue, you can see the same string in the URL:
    http://contentviewer.adobe.com/s/DPS%20Tips/7f80a0ffed3a4ff08734bc905aac4a29/Folios/00_Folio_Cover.html
    Both approaches should be the same, but for some reason the Publication ID method is working for you while the URL scheme method isn't.

  • Opening a URL that points to a PDF.

    Helllo,
    I use command start /MIN acrobat xxx.pdf  and I have no problem to open a PDF.  Now I want to replace xxx.pdf with a URL link that points to PDF file... So I use this command: C:\>start /MIN acrobat "https://www2.sea.accessline.com/tw2/GVXS:7a050-c2e6b-3a46560850102f-108943411"  This later command opens the Acrobat window but also a dialog stating:
    When I directly click on the URL that points to the PDF it opens it in the PDF window not browser which I want... Off course I have turned on some of my i.e. Internet Options.  I think this has to do with security set inside of Acrobat application.
    Regards
    Jeff P.

    What do you mean by "determined by the local preferences of the user"?  This URL coming to me inside of email I receive via Outlook I am not in a Browser when I open this URL...  If that is how can change the local preference to it opens in Acrobat Windows rather Browser?
    Regards,
    Jeff P.

  • I have a column where I have implemented writeback, its working fine. On top of this I need to show 0 as No and 1 as yes in our report, that is also done. Now I want to enter Yes in a column where it was no and I want database table to get update with 1.

    I have a column where I have implemented writeback, its working fine. On top of this I need to show 0 as No and 1 as yes in our report, that is also done. Now I want to enter Yes in a column where it was no and I want database table to get update with 1. I am not sure how to do it. SOmeone please help me out.

    Hi ,
    In your write back XML  try the below  query insert
    INSERT INTO TABLE_XYZ (attribute1)  values (SELECT CASE  WHEN @{C1}=’Yes’ then 1 when @{C1}=’No’ then 0 else null end from dual)
    Regards
    Rajagopal

  • Hey, for some reason i turned on my macbook pro 2012 and it says i have no internet access. I then found out that it also says that my self assigned ip address will not connect to the internet. How is this and how can i fix it?

    hey, for some reason i turned on my macbook pro 2012 and it says i have no internet access. I then found out that it also says that my self assigned ip address will not connect to the internet. How is this and how can i fix it?

    Reset your modem.

  • I am putting together a slide show using iphoto and I wanted to add a description on each slide/photo. How can I do that? Also on the choice of music for the silde show, if the slide show is longer than one song can you chose a different song for backgrou

    I am putting together a slide show using iphoto and I wanted to add a description on each slide/photo. How can I do that? Also on the choice of music for the silde show, if the slide show is longer than one song can you chose a different song for background music?

    This might help
    http://www.apple.com/findouthow/photos/#slideshow
    Regards
    TD

  • How do I set up my airport express to make a connection with my Hp? I already have it set up for my mac laptop just not sure how to set it up so that theres also a connection with my Hp

    how do I set up my airport to make a connection with my Hp? I already have it set up for my mac laptop just not sure how to set it up so that theres also a connection with my Hp

    I set up my new HP Descjet 3054A . I had a problem becouse Apple give me CD as a driver. The thing was that CD wasn good for this printer becouse it was old software:) I had to go to Apple store so the specialist had to download me he wright driver. Becouse I didnt wannet to screw this up . When he downloaded driver I fired it up at house and thingworks perfect. The thing is when you download all the software from HP side . Then you have to connect your MAC to printer via USB . Fallow the instructions it should works. Worked for me. Good Luck!

Maybe you are looking for