How to resolve namespace using jaxp

Hi ,
I have a xml document with structure :
<top
xmlns:myns="urn:my-namespace">
<second>
<myQNameElem>myns:someElem</myQNameElem>
</second>
</top>
How do I parse the element <myQNameElem> into a Qname ?
I would guess that if Jaxp has some sort of Name Spacxe resolver , I can use to resolve 'myns' to "urn:my-namespace">
Any help appreciated .
Anirban

There is something here :
http://java.sun.com/webservices/docs/1.2/api/javax/xml/namespace/NamespaceContext.html
any one aware of this ?

Similar Messages

  • How to find Namespaces used.

    hi guys,
    My customer is using Namespaces in ABAP development. but not sure where and whats the name of it. How can i find custom developed objects are used in Customer namespace in ABAP.
    Any specific transaction or table used for saving Namespaces..?
    please suggest me.
    Thanks.
    Baasha,

    hey guys
    Thanks for your replies.
    i dont have SE21 transaction. I am now at 46C.
    whats this transaction about.
    It looks like customer using Z,Y programs in other Namespaces like
    /XXX/ etc.
    so need to find what other namespaces they are using for storing addon objects.
    Thanks
    Baasha

  • Xsl-xml transformation: how to resolve namespace prefix?

    public static String  XMLTransform(Source xmlSource, Source xsltSource)throws DocumentException,TransformerException,TransformerConfigurationException,Exception{
              ByteArrayOutputStream returnByteStream = new ByteArrayOutputStream();
              StreamResult streamResult = new StreamResult(returnByteStream);
              TransformerFactory tFactory = TransformerFactory.newInstance();
              Templates templates = tFactory.newTemplates(xsltSource);
              Transformer transformer = templates.newTransformer();
              transformer.transform(xmlSource, streamResult);
              String result= returnByteStream.toString();
              return result;
         }now xml I have is like this
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
         <soap:Body>
              <FindItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" Traversal="Shallow">
                   <ItemShape>
                        <t:BaseShape>AllProperties</t:BaseShape>
                   </ItemShape>
                   <ParentFolderIds>
                        <t:DistinguishedFolderId Id="inbox"/>
                   </ParentFolderIds>
              </FindItem>
         </soap:Body>
    </soap:Envelope>how do i pass namespace in transformation?

    You don't "pass" the namespace in your transformation. Simply declare it in the root element, exactly as you declared it in your XML document.

  • How to resolve deadlock in ssrs subscriptions

    Hi ,
    i have a subscription which is sending emails to my multiple clients ..
    subscription runs fine when there are only two recepients and gets errored as i list 3rd recepient in
    To  field.
    i found that 
    , it is deadlock issue 
    and when i create trace in SQL profiler on my server database and select deadlock graph event 
    and it is caught ..
    have a look on image ..
    but i dont understand how to resolves issue using this ...
    can anyone narrate this graph to identifiy ..
    Dilip Patil..

    Hi Dilip Patil,
    According to your description, you configured subscription to send emails to multiple users, it works fine when there are only recipients, if there are three recipients, you will get deadlock error.
    A deadlock occurs when two system server process IDs (SPIDs) are waiting for a resource and neither process can advance because the other process is preventing it from getting the resource.
    For Node 1, an exclusive (X) lock is being held by SPID 66 on an index KEY on the object. Node 2 shows that an exclusive (X) lock is being held by SPID 65 on an index key on the same object. For each node, is the Requested By section, which details any resource
    requests that cannot be granted, due to blocking. For Node 1, we can see that that SPID 66 is waiting for a shared read lock on the index key (it is blocked by the X lock held by SPID 65). For Node 2, we can see that SPID 65 is waiting to acquire a shared
    read on the index key (it is blocked by the X lock held by SPID 66).
    In this case, we need to kill one of the SPID to free the resources and allow the other SPID to continue.
    For detail information about Handling Deadlocks and Minimizing Deadlocks in SQL Server, please refer to the following document:
    https://www.simple-talk.com/sql/database-administration/handling-deadlocks-in-sql-server/
    https://technet.microsoft.com/en-us/library/ms191242(v=sql.105).aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • I am having problems with the Preview application.  When I try to use it to open a pdf document it gets hung-up and I have to select force quit to close it.   Any ideas on how to resolve this problem?  Thanks for any help

    I am having problems with the Preview application.  When I try to use it to open a pdf document it gets hung-up and I have to select force quit to close it.   Any ideas on how to resolve this problem?  Thanks for any help

    Can you open the Preview program without loading a file, like by itself?
    If it doesn't load then I suspect a corrupt Preview preference file.
    Deleting the System Preference or other .plist file
    Can you open other files with Preview, like jpg's and images?
    How about other PDFs? or is it just that one you have downloaded?
    Run through this list of fixes
    Step by Step to fix your Mac

  • How to resolve a host name from IP using JNDI/DNS service provider

    Hi
    I got two questions on JNDI/DNS service provider:
    1) How to resolve a host name when i got an IP
    I understand How I do it inverse.
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.dns.DnsContextFactory");
    env.put(Context.PROVIDER_URL, "dns://"+server+"/"+domain);
    DirContext ictx = new InitialDirContext(env);
    Attributes attrs1 = ictx.getAttributes(host, new String[] {"A"});
    2) This example above works when I specify the domain in the provider url.
    If I am not specifing a domain but only the dns server I got an NameNotFoundException.
    What should I do if I don't got the domain?
    get the availible domains and loop on them?

    Hi,
    if your DNS server supports that, you can do a reverse DNS lookup. This works as follows:
    String server = "your.dns.server";
    String domain = "in-addr.arpa";
    String ip = "4.3.2.1";
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.dns.DnsContextFactory");
    env.put(Context.PROVIDER_URL, "dns://" + server + "/" + domain);
    DirContext ictx = new InitialDirContext(env);
    Attributes attrs1 = ictx.getAttributes(ip, new String[] {"PTR"});1: Use the pseudo-domain in-addr.arpa
    2: Use the reverse IP address for lookup, i.e. if your host has 1.2.3.4, use 4.3.2.1!!
    3: Request the PTR attribute
    see also [http://en.wikipedia.org/wiki/Reverse_DNS_lookup|http://en.wikipedia.org/wiki/Reverse_DNS_lookup]
    Martin

  • How to define namespace with one XSD using in two different DB-Locations ?

    I'm not clear,How to define namespace, targetnamespace, schemaLocation or NoNamespaceSchemaLocation
    when using one common schema.xsd-definition
    in two different database-locations for exchange xml-documents?
    when insert xml-document I've got an error ORA-30937
    do you have an good exsample ?
    thanks
    Norbert
    schema :
    <xs:schema
    xmlns="http://sourcehost.com/namespace"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:oraxdb="http://xmlns.oracle.com/xdb"
    targetNamespace="http://sourcehost.com/namespace"
    xml-document :
    xmlns="http://Sourcehost.com/namespace"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:SchemaLocation="http://sourcehost.com/namespace http://desthost:8080/sys/schemas/PUBLIC/ADRESSEN.XSD">
    SQL> insert into ADRESSEN values
    (XMLType
    (bfilename ( 'XMLIMPORT_DIR', 'adressen.xml')
    , 0 )
    --> error :
    ORA-30937: No Schemadefinition for "SchemaLocation" (Namespace "http://www.w3.org/2001/XMLSchema-instance") in übergeordnetem Knoten "/ADRESSEN"

    Norbert
    The schema location used to register the XML schema with XML DB does not need to be a valid URL for accessing the XML Schema
    I can use the same URL , for instance
    http://xmlns.example.scom/xsd/myXMLSchema.xsd
    on machines dbserver1, and dbserver2. The only reason some people choose to use the hostname / portnumber convention is that this makes it possible to validate the XML Instance documents against the copy of the XML schema stored in the XML DB repository using an external tool like XMLSpy without have to add entries to XMLSpy's OASIS catalog files.
    I am concerned about the message you are getting. That's not correct AFAICT but I'd need to see the complete XML Schema and Instance to be sure.

  • How to remove namespaces in mapping when using External Definition

    Hi,
    I read in the blog (/people/sameer.shadab/blog/2005/12/05/how-to-remove-namespaces-in-mapping--xi) that you are able to remove namespaces in mapping by deleting the value from XML Namespace under the Message Type. However, is it possible to do this when you are using External Definition (xsd) ? The blog only describe how to do this if you define a Data Type.

    Hi ,
    No ..it is not possible to remove the namespace once you imported into IR of external defintion.You can remove your namesapce from external definition before importing into IR.
    Sekhar

  • HT4236 Syncing photos using iTunes in windows revealed this error message "iPad Jayvee cannot be synced because it cannot be read from or written to ." Please advise asap how to resolve the issue.  Thanks!

    Please advise how to resolve error message - cannot be synced because it cannot be read from or written to.

    Hello Janet,
    I would recommend this article named 'Disk cannot be read from or written to' when syncing iPod or 'Firmware update failure' error when updating or restoring iPod found here http://support.apple.com/kb/ht1207
    Outdated operating system software
    Make sure you have the latest updates for your operating system, which may include improvements for device connections. For example, many USB and FireWire improvements have been included in Windows Service Packs.Check for Mac OS X downloads. Check for Windows updates.
    Computer needs updates
    Make sure you have the latest updates available for your specific computer model (or components for home-built PCs). These are usually available for download on the support website for the maker of the PC (or component). Many USB updates are listed as "Intel chipset" or just "chipset" updates on PC manufacturer's support and download websites.
    Software interference
    Some software can interfere with iTunes, making it unable to write files to your iPod. Think about what software you have installed, and try disabling any add-ons that might be interfering with iTunes. Check your suspected software's documentation or contact the software maker if you need assistance with disabling the application. Out-of-date or incorrectly configured security software frequently causes this issue. See these steps for identifying and troubleshooting third-party security software.
    Damaged files
    If one of your music files or photos is damaged, iTunes may display one of these errors when transferring that file to the iPod. If you identify a file that is causing the error, try deleting that file and reimporting it from a backup file or from the original source. You may be able to repair files by repairing the disk (see the solutions in the next section).
    Unregistered .dll files (Windows)
    Malware or other software may cause an issue with the digital signing of Windows XP drivers. First try restoringthe iPod using the latest version of iTunes.. If you are unable to restore it or the symptom reappears, follow the steps in this document.
    Damaged disk structure
    These errors can also appear if the format of your computer's hard drive or your iPod disk is damaged.
    To repair your computer's hard disk—Mac OS X users, read this article for instructions. Windows users, search the Help system in Windows for chkdsk to get more information on checking and repairing the disk structure.
    To repair an iPod disk—Restore the iPod or iPod shuffle using the latest version of iTunes.
    Warning: Be sure to back up your data before restoring an iPod. The restore process cannot be undone. All of your songs and files will be deleted.
    Corrupt iPod photo Cache
    If you're getting the error when transferring photos to an iPod photo, try deleting the iPod photo Cache and then starting the photo sync again.
    Lost connection
    Make sure that the connections from your computer to the iPod are snug and do not wiggle or come loose during transfers. For example, if you use the wrong size dock for your iPod, it can put strain on the connectors and cause a bad connection. See these articles for more information:
    Learn about iPod Universal Dock
    iPod Dock: Specifications
    Conflict with third-party hardware
    Third-party USB or FireWire devices may also interfere with iTunes' ability to communicate with your iPod. Remove all USB and FireWire devices except the keyboard and mouse before reconnecting your iPod to the computer.
    Bad hardware
    Hardware failure or non-compliant hardware can cause these errors. This could be an issue with iPod hardware or with the cable or dock you're using, but more often it's an issue with the USB or FireWire card or interface in your computer. Some USB and FireWire interfaces just don't work very well. If you isolate the issue to the USB or FireWire interface in your computer, you may want to try a different port, get the computer serviced, or replace the card or interface with a better one.
    If you isolate the issue to an Apple-supplied cable or dock, or the iPod itself, you can get it serviced here.
    Take care,
    Sterling

  • I have started to get this error message: 5.1.3 bad address syntax in my email account. I am using Outlook 2011. It does not appear to be affecting sending or receiving email. I have no idea what it means or how to resolve the issue. Any advice?

    I have started to get this error message: "5.1.3 bad address syntax" in my email account. I am using Outlook 2011. It does not appear to be affecting sending or receiving email. I have no idea what it means or how to resolve the issue. Any advice?  My email account is through Optimum online and I am using Airpost Express.
    P.S. The error sound "bong" is driving us nuts!

    Please post on the Office for Mac product forums that Microsoft hosts. It's their product and they can best troubleshoot the issue.

  • I am trying to install the OS Mavericks upgrade on my MAC and it requests for me to enter an administrator password. I do not use an an administrator password on the machine. Any ideas how to resolve this?

    I am trying to install the OS Mavericks upgrade on my MAC and it requests for me to enter an administrator password. I do not use an an administrator password on the machine. Any ideas how to resolve this?

    If you bought the machine new yourself, and did not enter a password when configuring it, leave the field blank.
    If you bought it used, then you need to reset the password, as described here:
    Apple Article to reset the password

  • I am using an I phone 5 in Germany and trying to get text messaging to work through the hands free Bluetooth connection on a Honda CRV. It keeps telling me that text messaging is not a feature of my phone. messages come in on the phone.How to resolve ?

    I am using an I phone 5 in Germany and trying to get text messaging to work through the hands free Bluetooth connection on a Honda CRV. It keeps telling me that text messaging is not a feature of my phone. messages come in on the phone.How to resolve ?

    mono 8 bit 8k is 64kbps, yes. 8 bits times 8,000 = 64,000 = 64k bits/sec.
    And yes I think that's a typo - there's no such thing as 'Mone' that I've ever heard of...
    But you might want to check to find out if this is a mu-law non-linear format, possibly - there are several ways that 8 bit 8k wav files can be encoded, and typically phone systems don't use linear ones. If you have a log-in to Zultys' user-base system they have an FAQ there, I believe - the answer might be in that, and it won't cost $500.

  • I am using a PC and when I try to download an ebook, I get a pop up prompt with the message `Error! Check Activation` - how to resolve this so I can download and view the ebook, thank you

    I am using a PC and when I try to download an ebook, I get a pop up prompt with the message `Error! Check Activation` - how to resolve this so I can download and view the ebook, thank you

    Hi Ablondel24,
    I understand that you are getting a 404 message when you access a website from a Mac, not a PC.
    First check the cache for the site:
    Reload the webpage while bypassing the cache using '''one''' of the following steps:
    *Hold down the ''Shift'' key and click the ''Reload'' button with a left click.
    OR
    *Press ''Command'' + ''Shift'' + ''R'' (Mac)
    Second try to [[Delete cookies to remove the information websites have stored on your computer]]
    Let us know if this solves the issues you are having.

  • HT201210 could not be updated because of the firmware file is not compatible (how to resolve this problem or ios 6 could not be used on iphone4?)

    could not be updated because of the firmware file is not compatible (how to resolve this problem or ios 6 could not be used on iphone4?)

    Do you have iTunes 10.6.3?
    If not, update iTunes first then try again.

  • HT5312 I forget my answer of two security questions, there is a typo error in rescue email address. How to resolve this so that I can use my Apple ID for online shopping?

    I forget my answer of two security questions, there is a typo error in rescue email address. How to resolve this so that I can use my Apple ID for online shopping?

    You won't be able to change your rescue email address until you can answer your questions, you will need to contact Support in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use the steps half-way down the HT5312 page that you posted from to correct your rescue email address for potential future use

Maybe you are looking for

  • GUI Slow in 8.0.1 and 8.1 because of orphaned Adobe Premiere Pro Processes

    Has anyone seen the GUI in 8.0.1 or 8.1 get very slow and noticed that they had orphaned PR processes? We've never had performance issues on our Windows 7 Pro, latest SP and updates, i7 920, 48 GB, Nvidia GTX 480 and LSI 9286cv-8e. I have the latest

  • Play internal movie clip at target

    This seems fairly simple, but i can't get it to work. I want to play a movieclip from the library when a button is clicked. But the LoadMovie is for SWF. The only way I can get it to work is have the button click cause - goto frame, which has the mov

  • Urgent help...Attacth an Excel file in a human task

    I need (ASAP) an example or code for attaching an excel file in a human task. The excel file is stored as BLOB in a table. My life depends on it!

  • Issue with Hgrid once it is in collapse mode

    I need to iterate Hgrid once it is in collapse and need to perform some validation for each row of Hgrid. OAHGridQueriedRowEnumerator is not working once Hgrid is in collapse mode. If Hgrid is in expanded mode OAHGridQueriedRowEnumerator is working f

  • Oracle patch updates

    i need to set the following url in my em for database 10.2.0.3.0 and Oracle Enterprise Manager Database Control 10.2.0.3 the problem comes that i cannot access the following url and not even directly. http://patches.oracle.com can it happen? i have c