How to retrieve Namespace based on Prefix

Hi
I need to parse some XML Schema files that generate elements in a namespace. For example:
<element name="firstName" type="xsd:string"/>
Is it possible to ask the DOM API what is the namespace for XSD?
Regards,
N�stor Bosc�n

Use the XML Schema API in Xerces2-j.
http://xerces.apache.org/xerces2-j/api.html

Similar Messages

  • Urgent: How to Retrieve NameSpace in Oracle 10.2.0.2.0

    Hi,
    I am facing one strange issue. With Oracle 10.2 version every xml tag value can be retrieved with only NameSpace value. The interesting thing is even for Retrieving the NameSpace value also it is expecting the NameSpace. So with this issue i am unable to parse any of the xml files to retrieve other tag information. I can't hardcode the NameSpace value in my StoredProcedure since the NameSpace value will be changing.
    Do i have any other method to retrieve the NameSpace value which is supported by Oracle 10.2.0.2.0 version. Please suggest me urgently. With Oracle 9.2.0.7.0 version i am able to retrieve the NameSpace or any tag information without using Extract method without the NameSpace value.
    The xml file is of this format:
    <?xml version="1.0" ?>
    <x:recording xmlns:x="http://www.witness.com/xmlns/recording20040324" x:ref="600000000000046" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.witness.com/xmlns/recording20040324 RecordSegment.xsd">
    </x:recording>
    The syntax for retrieving the NameSpace value:
    select x.xml_data.extract('//@xmlns:x').getStringVal() from xmlprocess x;
    Where "xmlprocess" is a GlobalTemporary table with xmltype datatype.
    Eventhough the syntax is not throwing any errors, it is returning the NameSpace value as NULL for Oracle 10.2
    Please provide the solution.
    Thanks

    Guys any idea on this? I am in very much in need of this solution. Please suggest me .
    Thanks
    Rao

  • Conditional Select  - How to retrieve data based on different cond.

    Hi
    I have a requirement to retrieve Equipments for Sales orders. But the selection criteria includes that if an Equipment with a EQTYp = 0 exists, only that record needs to be retrieved. And if no such equipment (Eqtyp = 0) exists, then retrieve any equipment from the Sales Order.
    I have for this reason selected a process as follows:
    First collect all sales orders, collect Equipments for them from SER02 and OBJK. And then look for a EQtyp = 0 equipment for each sales order line item. If no such one is found, then one of the other equipments is selected.
    As the report needs to be run open (without specifying any sales orders) at times, the amount of sales orders that are to be checked becomes huge and so retrieving the equipmets also becomes hectic in my current process.
    So, is there any other way to retrieve this information? or can a select be formulated in such a way that it can decide to pick a EQTYP <> 0  equipment when a EQTYP = 0 equipment is not found.
    Thanks in advance.
    Jr.
    Message was edited by:
            Jr Abaper

    Hi
      Is Equipment is an selection-screen field?
    If so give Equipment value = o and # in the selection-screen while executing?
    If that is not an selection-screen field in the select query in the where condition you can mention Equipment = 0 or
                             equipment # 0.
    This can optimize the code some what.
    Regards,
    Sreeram

  • How to retrieve 2 values from a table in a LOV

    Hi
    I'm pretty new to APEX. I try to retrieve two values from a table using a LOV. I have a table named DEBIT with then columns SITE, NAME and KEY
    I want to display NAME to the user in a list. When the user select an item from the list, I want to retrieve the data of the SITE and KEY column of this item in order to launch an SQL command based on this two values.
    How to retrieve thes two values whant the user chooses an item from the list ?
    I apologize for my english, being french.
    Regards.
    Christian

    Christian,
    From what I understood about your requirement, you want a 'select list with submit' which displays "NAME" and based on the value selected, you want to get the corresponding values for "SITE" and "KEY" from the table.
    <b>Step 1: Create a select list with submit, say P1_MYSELECT </b><br><br>
    Use something like this in the dynamic list of values for the select list: <br>
    SELECT NAME display_value, NAME return_value
    FROM DEBIT<br><br>
    <b>Step 2: Create a page process of type PL/SQL block. Also create 2 hidden items P1_KEY and P1_SITE. </b><br><br>
    In the PL/sQL, write something like:
    DECLARE
      v_key DEBIT.KEY%TYPE;
      v_site DEBIT.SITE%TYPE;
      CURSOR v_cur_myvals IS
              SELECT KEY, SITE
              FROM DEBIT
              WHERE NAME = :P1_MYSELECT;
    BEGIN
      OPEN v_cur_myvals;
      LOOP
              FETCH v_cur_myvals
              INTO  v_key,v_site;
              EXIT WHEN v_cur_myvals%NOTFOUND;
    :P1_KEY := v_key;   
    :P1_SITE := v_site; 
      END LOOP;
      CLOSE v_cur_myvals;
    END; <br><br>
    Then you can use these values for whatever purpose you need to.
    Hope this helps.

  • How to retrieve a page item value in another page?

    Hi,
    how to retrieve a page item value in another page?
    say P55_COURSES_TO_EVALUATE is my page item name and it is a select list.Based on the value selected,in the next page i shd show details related to the selected value and for this i need P55_COURSES_TO_EVALUATE value in the next page.How Do I get it?When I try to retrieve the values it simply returns nothing.
    Any pointers would be really helpful.
    Thanks in advance.

    Hi,
    Could you please tell how you try use it ?
    If you set value to item P55_COURSES_TO_EVALUATE and submit page, value is saved to session state.
    Then you can use that item in any page like
    :P55_COURSES_TO_EVALUATEYou can not access page value in javascript/jQuery from other pages like
    $v('P55_COURSES_TO_EVALUATE')
    document.getElementbyID('P55_COURSES_TO_EVALUATE')
    $(#P55_COURSES_TO_EVALUATE)Because item is not in other pages. In javascript from other pages you can use
    var a = '&P55_COURSES_TO_EVALUATE.';Regards,
    Jari

  • How to place an image in database and how to retrieve and display it in the front end

    how to place an image in database and how to retrieve and display it in the front end
    and to place an image in database and retrieve the image from database using xml
    please,help me out.

    Create a table with a Long RAW Datatype column for storing the Image Column Data.
    Create the form based on the table , which by defaults the column with LONG RAW atatype to a Image Item.
    You can use Forms Built in function READ_IMAGE_FILE to read a Image file stored on the file system in to the image item.
    A save on the form saves the image in the Image item in the long raw column.

  • How to retrieve Delivery address when entered manually in PO

    Hi All,
    I am trying to print PO through Smartform. I am retrieving the delivery address based on the adrnr number/Customer number/Vendor Number from EKPO table. Now when the user manually changed the address with out adrnr/Customer number/Vendor Number, how to retrieve that address in order to print as these three fileds will be blank in EKPO table. How and where the SAP will store that address. Any help thanks.

    Hi,
        In the sales order point of view I know it will be stored in the ADRC table for the VBPA-ADRC number entry. Similar to that I hope the EKPO ADRC will have an another entry in the ADRC table.
    Thanks,
    Greetson

  • How to retrieve the data from SAP database.

    Hi Pals,
    How to retrieve data from SAP R/3 System to my third party software. I will make my query little bit more clear. There is a list of assets entered and stored in the SAP system. For example 3 mobile phones.
    1) Mobile 1- Nokia
    2) Mobile 2 - Samsung
    3) Mobile 3 u2013 Sony
    Now think I do not know what all assets is there. I have to retrieve the data and get it on my third party software. Just display the list of assets. Lets say SAP XI is also there. Now how will I map it and get the details.
    Please give me step by step method.
    N.B: Just to read the data from SAP database.
    Please make the flow clear step by step.
    Thanking you
    AK

    Hi,
    You can use RFC or ABAP Proxy to make synchronous call with SAP.
    Under RFC or ABAP Proxy Program you can get the data from SAP tables. Direct access to SAP Database is not preferrable even if its possible.
    The better way to go for RFC or PROXY.
    You will send the request from Third party system and the it will be as input parameters from RFC/ Proxy it will response based on it.
    This got it all..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c4f78dbf9b
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    /people/stefan.grube/blog/2006/09/21/using-the-soap-inbound-channel-of-the-integration-engine
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
    HTTP to RFC - A Starter Kit
    /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
    Refer
    Thanks
    Swarup
    Edited by: Swarup Sawant on Jun 4, 2008 9:32 AM

  • How to retrieve data using logical database and custom select options

    Hi all,
    I have a selection screen which is displayed by logical database PSJ and I have two select options of my own. I need to retrieve data based on both selection screen of logical database and my own select options. How can I do it?
    Thanks in advance.

    Hai Gupta
    Check the following Document & Links
    1. A logical database is in fact
    a program only.
    2. This LDB provides two main things :
    a) a pre-defined selection screen
    which handles all user inputs and validations
    b) pre defined set of data
    based upon the user selection.
    3. So we dont have to worry about from
    which tables to fetch data.
    4. Moreover, this LDB Program,
    handles all user-authorisations
    and is efficient in all respects.
    5. tcode is SLDB
    good info about Logical Database. you can check the link.
    http://www.geekinterview.com/question_details/1506
    http://help.sap.com/saphelp_46c/helpdata/EN/35/2cd77bd7705394e10000009b387c12/frameset.htm
    Re: How to Create and Use ldb in reports?
    Re: Logical databases
    http://help.sap.com/saphelp_46c/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm
    Functions for displaying and changing logical databases:
    Call Transaction SE36 or
    Choose ABAP Workbench -> Development -> Programming environ. -> Logical databases
    Interaction between database program and report:
    During program processing, subroutines are performed in the database program and events are executed in the report.
    To read data from a database tables we use logical database.
    A logical database provides read-only access to a group of related tables to an ABAP/4 program.
    advantages:-
    The programmer need not worry about the primary key for each table.Because Logical database knows how the different tables relate to each other,and can issue the SELECT command with proper where clause to retrieve the data.
    i)An easy-to-use standard user interface.
    ii)check functions which check that user input is complete,correct,and plausible.
    iii)meaningful data selection.
    iv)central authorization checks for database accesses.
    v)good read access performance while retaining the hierarchical data view determined by the application logic.
    disadvantages:-
    i)If you donot specify a logical database in the program attributes,the GET events never occur.
    ii)There is no ENDGET command,so the code block associated with an event ends with the next event
    statement (such as another GET or an END-OF-SELECTION).
    1. transaction code SLDB.
    2.enter name z<ldb-name>
    3.create
    4.short text
    5.create
    6. name of root node (here Ekko)
    7. enter short text (f6)
    8.node type -> data base table.
    9.create
    10 change logical DB
    riht click on ekko and insert node
    here node name ekpo
    11.create
    12. click on selections
    13. press no Should the changed structure of Z<ldb name> be saved first.
    14.select tables which you want to join.
    15.transfer
    16 now you have to o to coding part.
    17. save
    activate.
    19.click to src code
    double click on first include and activate
    Regards
    Sreeni

  • How to retrieve records from taxonomy table

    Hi,
    I have a main table which has taxonomy field,for ex: category.
    Main table: Products which has ProductName(text),ProductNo(text),Category fields(Lookup[taxnomoy])
    Could anyone please tell me how to retrieve the records and attributes from a taxonomy table.
    Please provide some sample codes.
    Thanks
    Sabari

    Hi Sabari,
    your question is not so clear-  any way find the following example
    if you want to get records based on search criteria( ex: taxonomy values where ProductName = "something "),, follow the below steps;
    1 . build Search Object-  ( I guess you know this step)
    2.  get RecordResultSet Object -
         Example
         //Compose array of the fields to retrieve
         FieldId[] fields = new FieldId[5];
         fields[0] = assign FiledId of Category field ;
         //Create the result definition for the search table
         ResultDefinition rd = new ResultDefinition(productsTableId);
         rd.setSelectFields(fields);
        // Retrive ResultSet
           RetrieveLimitedRecordsCommand recordsCommand = new  
           RetrieveLimitedRecordsCommand(mdmConnection.getConnection());
         recordsCommand.setSession(mdmConnection.getAuthenticatedUserSession().getSession());
         recordsCommand.setResultDefinition(rd);
         recordsCommand.setSearch(search);
         recordsCommand.execute();          
            RecordResultSet  records= recordsCommand.getRecords();
    3 . Now Iterate through resultSet for CategoryRecord lookUp Id
               Record record = records.getRecord( i );
         FieldId[] fieldIds = record.getFields();
                for(int n=0; n<fieldIds.length; n++) {
                   FieldId fieldId = fieldIds[n];
                   FieldProperties fieldProps = records.getRecordMetadata().getField(fieldId);
                   String fieldCode = fieldProps.getCode();
                            MdmValue value = record.getFieldValue(fieldId);                    
                          if(fieldCode.equals("Category")) {                         
                   if (!(value instanceof NullValue)) {
                                  //LookupValue appLookUpValue = (LookupValue) value;
                                  Record[] lookupRecord=record.findLookupRecords(fieldId);
                                  if(lookupRecord!=null && lookupRecord.length>0)
                                                            populate for  a category for every lookup record 
                                       // cat=this.getCategory(lookupRecord[0].getId(),locale);
    Note:- from Main table records  , you will get Category lookup records, you need to look up for every Category lookUp Record; there may be number of Category records for one main table Record;
    if you still face problem , let me know;
    Regards
    Rajasekhar k

  • How to retrieve Page name?

    I have a select:
    select
    step_id Page
    , count(step_id) Hits
    from
    wwv_flow_user_activity_log
    where
    flow_id = &APP_ID.
    and (time_stamp >= (sysdate - 7))
    group by
    step_id
    order by
    count(step_id) DESC
    Where I show most frequent pages. How to retrieve Page name and link to that page...muist be SQL based and somehow joind with wwv_flow_user_activity_log view.
    THX!

    <br>Guys,
    <br>this thread is somehow quiet but I have more questions...To retrieve page_name you have to query FLOWS_020000.WWV_FLOW_STEPS (or FLOWS_020100.WWV_FLOW_STEPS in XE).
    <br>to be able to select data yo uneed to grant GRANT SELECT ON FLOWS_020000.WWV_FLOW_STEPS TO "schema";
    <br>As you can see here is one mistery...schema owner on different platform...! Is there any way to make unique approach to this if data are develped on HTMLDB 2.0 on 10gR2 and the production is on XE?
    <br>THX!

  • How to retrieve user defined attributes in Prepopulating a request dataset

    Hi,
    I have created couple of user defined attributes in user profile.
    And I am tryting to develop a prepopulate adapter in a request dataset for a resource. I need to prepopulate request dataset based on the values of above said user defined attributes.
    I tried to use tcResultSet result=UserOppsIntf.getSelfProfile(); in my pre-populate adapter but it is giving me only the following attributes and it is not giving any of my user defined attributes.
    Users.Manager Key
    Users.Manager Login
    Users.Manager First Name
    Users.Manager Last Name
    Users.Password Warning Date
    usr_locale
    Users.Key
    Users.Password Expired
    Users.Middle Name
    Users.User ID
    Users.Password Expiration Date
    Users.Status
    Users.Password Warned
    Users.Email
    Telephone Number
    Users.Display Name
    usr_timezone
    Users.Lock User
    Users.Last Name
    Users.First Name
    MEMBERTYPE
    If I use the code userData = usrService.getDetails("User Login", RequesterID, null); then I am getting only the following.
    Display Name:
    act_key:
    Full Name:
    usr_key:
    User Login:
    Last Name:
    First Name:
    Please let me know how to retrieve all of user defined attribute values in prepopulate adapter for a request dataset.

    Use below code to get all attributes in user profile including UDF.
    OIMInternalClient objOimInternalClient = null;
    User user = null;
              UserManager usrService = null;
    objOimInternalClient = new OIMInternalClient();
              if (objOimInternalClient != null) {
                        try {
                             objOimInternalClient.loginAsAdmin();
                             usrService = objOimInternalClient
                                       .getService(UserManager.class);
                             user = usrService.getDetails("usr_key", strUserKey, null);
                             endDate = (Date) user.getAttribute("End Date");
                        } catch (Exception e) {
                             e.printStackTrace();
                        } finally {
                             if (objOimInternalClient != null)
                                  objOimInternalClient.logout();
                             if (user != null)
                                  user = null;
                             if (usrService != null)
                                  usrService = null;
    In order to see all UDF's in User profile, please create Authorization Policy.

  • HT4859 How to retrieve Numbers documents stolen by Apple and dumped in iCloud?

    Apple has stolen my documents when i loaded the latest version of Numbers. I can see the documents underr icloud but cannot figure how to retrieve them and remove them. Can't understand why I should have to store my documents on someone else's computer.

    A couple days ago I contacted DriveSavers.com and she quoted me the following;
    -SERVICE OPTIONS AND PRICING
    Our pricing is based on the drive capacity, the operating system and
    turnaround time. The final cost is based on the complexity of the
    recovery and the final recovery results.
    The data recovery estimate for the 120GB Hard Drive you described is:
    • Standard Service (1-2 business days): $900-3900 (successful
    recovery will fall between $2800 - $3900)
    $200 attempt fee if the data is unrecoverable
    • Economy Service (5-7 business days): $500-2700 (successful recovery
    will fall between $1800 - $2700)
    $200 attempt fee if the data is unrecoverable
    • Priority Service (24 hrs. / 7 days a week): $1800-8900 (successful
    recovery will fall between $7900 - $8900)
    $800 attempt fee if the data is unrecoverable
    Please Note: DriveSavers will never exceed the amount quoted.
    That's nuts. Im ganna try my luck with DRD.ae in Dubai and see how much they charge, let me give them a call now and will post a comment in a bit.
    -Joey

  • How to retrieve the BRF+  function result data object of type table in ABAP

    Hi,
    I am calling a BRF+ function from Abap....If the result data object of the function is element then i am able to get the value back in ABAP...Suppose the result data object of the function is of table type,I couldnt retrieve the value....Can you please help me how to retrieve the table data object value of the function from abap....
    Regards,
    Dheepak.

    Hi,
    Thanks carsten and Tiwari for your reply...
    Tiwari,
    I understand that if i know the data type of the result data object which i am going to get i can declare it my ABAP program and get the values....But i am developing a generic program which calls the various BRF+ functions based on the function id...So i am not aware what is the data type of the result data object....so is there a any way to handle this situation...Please advice...
    Carsten,
    I used the GET_DATA_OBJECT_STRUCTURE method of class CL_FDT_FUNCTION_PROCESS to get the data object structure...i am able to get whether it is an element or structure or internal table...
    But is there any way to get the data type of the object...For example if it is going to be an element of type BELNR_D,is it possible to get the BELNR_D value in my program...Please advice...
    Thanks,
    Dheepak.

  • Retrieve namespace  declarations from unmarshalled object

    Hi,
         I hope this is a beginner's question:
    Still working on a web service, that uses an EJB for implementation. I'm using types/classes that were derived automatically from a WSDL (top-down/outside-in/what have you), or rather the corresponding schemata. I'm trying to retrieve namespace declarations from the unmarshalled object/element, but  they are not contained in the "otherAttributes" [Map<QName, String>] member field of the respective object. However, I can retrieve any other attribute, qualified and non qualified, as long as the namespace isn't that of xmlns (http://www.w3.org/2000/xmlns/). For example:
    Client:
                MyElement my_element = new MyElement();
                Map<QName, String> atts = my_element.getOtherAttributes();
                QName ns_att = new QName("http://www.w3.org/2000/xmlns/", "a");
                atts.put(ns_att, "http://www.example.com/");
                QName test_att = new QName("test-att");
                atts.put(test_att, "http://www.example2.com");
    Service:
                MyElement my_element = parent.getMyElement(); // ...
                Map<QName, String> atts = my_element.getOtherAttributes();
                for (QName qn :  atts.keySet()) {
                    System.out.println("qn: ["+qn+"] value["+atts.get(qn)+"]");
    This would print:
    qn: [test-att] value[http://www.example2.com]
    What am I missing? How do I get the namespace declaration? Thanks for your help in advance.
    Cheers,
    Felix

    I'll try to explain in a better way ...
    I have a server with 2 different client and each client communicate to the server with a different interface.
    My needs are to recognize from the server, the type of the client that are operating, and to do this I was thinking to recognize the interface used from the client to interact with the server
    An other option is that, from the client, after retrieving the server and it's cast, a can call a method to pass to the server object, the type of the interface actually used.
    But I think this makes a bit of nonsense because When I receive the marshalled object in my opinion doesn't make sense that i have to say the object it's type (the interface used).
    the object is already alive and I think it has to know the interface used to refer it even if is on another VM
    The cast operation doesn't store nothing into the current object instance?
    local code example (I don't know if with JRMI the situation is different because the different JVM)
    Map foo = new HashTable();
    I need a method like
    foo.curretUsedInterface() ... that return "Map"
    instead of
    foo.getClass().getName() that return "HashMap"
    It's possible to obtain this information or I have to try another idea to make the server distinguish the client type?
    thank you very much for your comprehension

Maybe you are looking for

  • SQVI - Quick Viewer Report on Vendor

    Hi Guru, I need to write a Quick viewer query ( SQVI) to populate 1.Vendor 2.Country 3.email address 4.standard communication method I joined LFA1- LIFNR;             LFA1-LAND1;              LFA1-ADRNR and then from ADR6 table              ADR6-ADDR

  • Acrobat 9 Pro installer crashes with DEP (Data Execution Prevention) on Win XP SP3

    Well the title says it all: Whenever I try to start the Installer and press "Next", it grinds for some seconds and then "encounters a problem and cannot continue" stating a DEP violation. This happens with both the CD version of my box and the downlo

  • How to get the length of apex_item in javascript?

    Hello all I am having a tabular report using apex_item, I want to know how can i get the length of the item in javascript? like we do in pl/sql using apex_application.g_f01.count(). and one more thing, when I go to certain page, tab of that page is g

  • Time Machine backup crashes my MBP since I've installed Mountain Lion

    Hello, I've got a MBP (1.5 years old) and do my back-ups on Time Capsule. Recently I upgraded to Mountain Lion and since then I've come accross some back-up issues: 1. I've got the error message containing the "sparsebundle already in use" wording 2.

  • Currency on Collection Worklist summary screen

    Hello, We are currently using FSCM collection management for AR collection. We have multiple company code with USD and CAD as home currencies. Worklists are generated nightly from AR data. However, we noticed that initial screen (summary data by busi