How can I extract structure information from registered XSDs ?

Hello,
I am trying to extract hierarchy and type information from registered XML schemas which include other XML Schemas, in a single SQL query.
In essence I would love to be able to write a query of the form
SELECT *
  FROM XMLTABLE('//xs:element'
                PASSING <the root schema object goes here>
                COLUMNS   ELEM_NAME       VARCHAR2(63) PATH '@name'
                        , ELEM_REF        VARCHAR2(62) PATH '@ref'
                        , ELEM_TYPE       VARCHAR2(63) PATH '@type'
                        , MIN_OCCUR       VARCHAR2(15) PATH '@minOccurs'
                        , MAX_OCCUR       VARCHAR2(15) PATH '@maxOccurs'
                        , ANNOTATIONS     SYS.XMLTYPE  PATH 'xs:annotation'
                        , FXD_LENGTH      VARCHAR2(10) PATH '/xs:length/@value'
                        , MAX_LENGTH      VARCHAR2(10) PATH '/xs:maxLength/@value'
                        , MIN_INCLUSIVE   VARCHAR2(10) PATH '/xs:minInclusive/@value'
                        , MAX_INCLUSIVE   VARCHAR2(10) PATH '/xs:maxInclusive/@value'
                        , MIN_EXCLUSIVE   VARCHAR2(10) PATH '/xs:minExclusive/@value'
                        , MAX_EXCLUSIVE   VARCHAR2(10) PATH '/xs:minExclusive/@value'
                        , TOTAL_DIGITS    VARCHAR2(10) PATH '/xs:totalDigits/@value'
                        , FRACTION_DIGITS VARCHAR2(10) PATH '/xs:fractionDigits/@value'
               )together with an indicator if each element is a leaf or not as well as its level and position information, by suitably expanding the appropriate type information from the (possibly) included XML Schemas (via schemaLocation).
Does anybody know if there is a way to do this ?
I will provide my sample XSD files if needs be ...
Best Regards
Filippos

Have a look at the xdbutilities.zip packages... Probably all the info needed can be found in the code used there:
http://www.oracle.com/technology/tech/xml/xmldb/Current/xdbutilities.zip

Similar Messages

  • How can i get instructions information from metadata...?

    Hi Everyone!,
    How can i get instructions information from metadata.
    Anyone Correct this script.
    Code :
    var xmpString = app.activeDocument.xmpMetadata.rawData;
        if( xmpString !=null ){
        var inst = xmpString.match(/<photoshop:Instructions>(\s)<\/photoshop\:Instructions>/);
        alert(inst);
        else
            alert("There is no Metadata.....!!!")
    Thanks in Advance.
    -yajiv

    Yes you can extract any metadata without opening a file.
    There is a script that will let you select any of the fields and put the output to a csv file, this is known as the barredrock script and can be downloaded..
    http://www.ps-scripts.com/bb/viewtopic.php?f=19&t=2365&sid=fa9cc3fb726a7a13ecaf0c85a2db05a b&start=15
    Another smaller example is here...
    http://www.scriptsrus.talktalk.net/Extract%20Metadata.htm

  • How can I extract certain pages from my document and save as another file?

    How can I extract certain pages from my document and save as another file?

    You would need Adobe Acrobat to do that, not Adobe Reader.

  • How can I extract the data from Xstring .

    Hi Gurus ,
    How can I extract the data from a XSTRING  .
    I have to get the data which is filled in the survey form the data is getting saved in form of xstring .
    Someone told me that there is a standard FM for that . but I am not able to find .
    Please reply with the FM in case some one knows about it .
    Thanks in advance .

    The following code works as of 7.0 (in any SAP system):
    FORM XSTRING_TO_STRING USING input TYPE xstring CHANGING output TYPE string.
    TYPES : BEGIN OF ty_struc,
              line TYPE c LENGTH 100,
            END OF ty_struc.
    DATA lt_char TYPE TABLE OF ty_struc.
    DATA length TYPE i.
    length = xstrlen( input ) / cl_abap_char_utilities=>charsize.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        buffer                = input
      tables
        binary_tab            = lt_char.
    CONCATENATE LINES OF lt_char INTO output RESPECTING BLANKS.
    output = output(length).
    ENDFORM.
    Edited by: Sandra Rossi on Mar 30, 2010 12:24 AM

  • How can I extract a page from a document if I don't have that option on my tools menu?

    How can I extract a page from a document if I don't have that option on my tools menu?

    iPhoto on the iPad can be used to make photo books, but not calendars. It is a very different program from the Mac version of iPhoto. I hope you have access to a mac to create your christmas calendar.
    http://help.apple.com/iphoto/ipad/2.0/?handbuch#blnkbc26e276
    Search the AppStore for "Foto Calendar". I have not tried any of these apps, but there are quite a few, that claim to be able to create an "Awesome foto calendar"

  • How can I extract the info from my Time Capsule?

    How can I extract the info from my Time Capsule?

    What info would that be??
    If you mean how to recover TM back to a computer.. see Pondini Q14-17
    http://pondini.org/TM/FAQ.html
    If that isn't it .. we do not know what.. "the info" you are talking about.

  • How can I extract a picture from a contact in Address Book?

    How can I extract a picture from a contact in Address Book? Address Book is version 5.0.3 with Mac OS X 10.6.8. Btw, I don't have access to the original picture anymore.
    Message was edited by: Cormac

    You need to go to ~/Library/Application Support/AddressBook/Images and Control-click on each file and open it using Preview. Then you can export the image if you choose. Just keep in mind that these will be thumbnail quality, so don't expect large images, either in file size or physical size.

  • How can I extract single frames from an imovie?

    How can I extract sigle frames from an imovie? Thanks for any input on this. Using iMovie 11

    John Codgell has some tips on how to use MPEG Streamclip to do this on this Discussion Thread:
    Helpful AnswerRe: can you make a still photo from clip

  • How can I extract Java source from Oracle?

    I have an object of type "JAVA SOURCE" in my database. I do not have the source
    code available.
    How can I extract this source from the database so I can read it? I am not a Java programmer, so a sql or pl/sql solution would be greatly appreciated.
    Thanks in advance!

    This query lists any Java object that the current database user has (JAVA SOURCE, JAVA CLASS or JAVA RESOURCE). Use this to determine which Java sources exist.
    SELECT * FROM USER_OBJECTS
    WHERE OBJECT_TYPE LIKE 'JAVA%'This query lists the source of one Java object.
    SELECT * FROM USER_SOURCE
    WHERE TYPE = 'JAVA SOURCE'
    AND NAME = 'com/acme/HelloWorld'Substitue the name of the java class you're interested in for 'com/acme/HelloWorld'.
    I know that the question is four years old, but I had the same question and arrived here via Google, so I figured posting an answer might help others in a similar situation.

  • How can i extract a person from a picture and then animate the person

    how can i extract a person from a picture and then animate the person

    Basically you select the person using the various selection tools, copy the selection to the clipboard, and paste the selection onto the destination picture. Then use the Move tool to resize/reposition the person as necessary. Here is a tutorial demonstrating this as well as some advanced techniques.
    http://home.earthlink.net/~msand42/PSE/composite/

  • How can I extract the soundtrack from iMovie and put it in my iTunes Library?

    How can I extract the soundtrack from iMovie and put it in my iTunes Library?

    Or this
    From iMovie 10.0.6 select Share > File. Then select Format=Audio Only. Then select File Format and choose from AAC,MP3,AIFF or WAV.

  • My iPod Touch has been stolen, someone offers me to make his mine. How can I erase the informations from his iPod and make sure that my library will copy in the new one?

    My iPod Touch has been stolen, someone offers me to make his mine. How can I erase the informations from his iPod and make sure that my library will copy in the new one?

    Restore it as new.
    iPod touch User Guide (For iOS 5.1 Software)

  • How can I stop my information from automatically filling in.  Which it does incorrectly.

    How can I stop my information from automatically filling in.  Which it does incorrectly.

    one u log in to a wi fi..it will save. delete it... and off your wifi on you playbook. hope it helps

  • How can i extract just documents from time machine backup?

    How can I extract just my documents from a time machine backup?   I had to re-install Lion after the update screwed things up, the Genius Bar guy told me to re-install each App, and then transfer just my data (documents) back but didn't tell me how.   I only see how you can restore the entire snapshot of what was on my MacBook that day, I don't see how to select specifics. 

    Hi,
    Install a fresh Lion OS on your Mac. After this is done, then connect your time capsule. Click on the time machine icon in the dock bar so you will enter in time machine. Select the document folder and any document or all you need. The same thing you can do with iPhoto, Emails, etc.
    Let me know
    Claudio

  • How can I extract single pages from pdf document

    how can I extract a single page from pdf document

    Purchase and install Acrobat XI. 
    Open a multi-page PDF.
    Use the click path of:
    Tools - Pages - Under "Manipulate Pages": Extract
    Be well...

Maybe you are looking for