Xpath to access a node - problems with namespace

Iam using xpath to get to a node of a DOM doc, it works fine as long as I don't set the DocumentBuilderFactory to be namespace aware. Do I have to change the xpath to be different if the facotory is namespace aware?
Thanks

guys ?

Similar Messages

  • Unexpected start node "Insert" with namespace...

    Hi,
           I have a simple Biztalk app which receives an XML and sends to oracle DB using WCF-custom adapter.
    I generated schema from Visual Studio, created a map for inbound XSD to generated XSD mapping, deployed the app.
    Send port is configured to use the map and there is no orchestration.
    I run into following error. The error description is understood, but I am not able to see why it is happening.
    The adapter failed to transmit message going to send port "SendPort12" with URL "oracledb://DEVDB/". It will be retransmitted after the retry interval specified for this Send Port. Details:"Microsoft.ServiceModel.Channels.Common.XmlReaderParsingException: Unexpected start node "Insert" with namespace "http://Microsoft.LobServices.OracleDB/2007/03/DEVSCHEMA/Table/SITES" found.
    SOAP Action is :
    <BtsActionMapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <Operation Name="Insert" Action="http://Microsoft.LobServices.OracleDB/2007/03/DEVSCHEMA/Table/SITES/Insert" />
    </BtsActionMapping>
    I have checked multiple posts on different sites for this error. I am still not able to figure out what is causing this. Any help is appreciated.
    Thanks,
    SRG

    Hi SRG,
    Can you try generating schema again as may be some table change may have occurred . It may be silly but you can try 
    There are tow different post which can relate to your issue and resolution
    https://social.msdn.microsoft.com/Forums/en-US/c9e15c82-3bec-4bbb-b3c2-2507206c2d40/microsoftservicemodelchannelscommonxmlreaderparsingexception-unexpected-start-node?forum=biztalkr2adapters 
    https://social.msdn.microsoft.com/Forums/en-US/59ef69e7-3159-4fd6-ba67-9120d907f95e/wcforacledb-unexpected-start-node-node-with-namespace?forum=biztalkr2adapters
    Thanks
    Abhishek

  • Lumia 920 service problems/ no internet access. Also problem with receiving calls?

    As of yesterday I have been having a wierd problem with my Windows phone, and exploring through the web, I've seen a couple of other people with this problem as well, with no one really coming up with any other solution but to do a hard reset, which I abosuletly want to avoid. So my problem is that I don't seem to have any internet access, regardless if I am connected to 4G or through wifi. This is real wierd because it just started happening all of a sudden. I didn't do any update, didn't download anything new, nothing like that.I know for a fact that I'm simpily not just mistyping addresses or have airplane mode on, I'm stumpted as to why this is happening. To add another layer of confusion, I don't seem to receive all calls I get. For instace: yesterday, one of my friends called me, I received his call right? Well later that day, my Father apparently called me, but I never received any nottification or even a voicemail that he ever did.  What the heck is going on here and what can I do to resolve this?? 

    Hello @ThomasWolf
    I’m sorry to hear you’ve been experiencing issues with your phone.
    When you say you’re unable to access the internet, is it just via your Web browser? Or is it apps that require data such as Facebook, YouTube, etc.?
    Have you tried via more than one Wi-Fi network as well?
    Try to open up att.com/ttr via your mobile web browser; do you see a confirmation page?
    If you’re continuing to have issues, then please contact us.
    Thank you,
    Charise

  • Return commit for DP-K---Why no Internet Explorer access due to problem with web page?

    I ran full scans on MBAM & SUPERAntiSpyware as requested.  All I got was 2 adware tracking cookies detected with the spyware program.  I have Windows Vista Home Basic with a 32-bit operating system  IE version was Internet Explorer 8 & I also downloaded Explorer 9 with no difference in result.  The toolbar "fix" was probably in regards to general computer problems. Please advise.

    Hi,
    First, close all open applications.
    From the Start Menu, open All Programs, open Accessories, right click the Command Prompt and select 'Run as Administrator'.  Into the prompt, type the following commands, hitting enter after each command.  Include spaces in the commands where shown.
    ipconfig /flushdns
    nbtstat -R
    nbtstat -RR
    netsh int ip reset c:\resetlog.txt
    netsh winsock reset
    When complete, type exit and hit enter, then restart the PC and check connectivity.
    If this doesn't resolve the issue, another area worth checking is whether there is any problem with the Layered Service Providers on the PC - although problems with these usually cause no connection at all.  You can do this by downloading LSP-Fix on the link below.  Save this to your Desktop.  This is a stand-alone application so you can just delete it afterwards.
    LSP-Fix
    When download, right click the application and select 'Run as Administrator'.  If everything is ok with your LSPs you will see green writing stating this.  If it does detect a problem, post back with the error.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Xsl transformation from version1 to version2, problem with namespaces

    Guys!
    In my current project we need to have an interface in Oracle ESB which is build on lets say a wsdl version1 and an interface build on wsdl version2.
    In esb i need to define a transformation which will transform the request on version1 to version2. Because the xsd for the operation is really huge (+1000 items) i made some templates in xsl to do most of the work, works great..only i'm having a few issues now.
    To re-order items from source to target i do the next in a template
    <nameGroep>
    <xsl:copy-of select="andhere the xpath from source"/>
    <xsl:copy-of select="andhere the xpath from source"/>
    <xsl:copy-of select="andhere the xpath from source"/>
    </nameGroep>The only problem from the xsl:copy-of is, it also copies the namespace along. So if my target document uses an other namespace, it fails.
    To correct this i hoped i could make use of <xsl:namespace-alias> but this doesn't work on a literal/text tag (hope i explain this correct).
    Other option is, for every element do something like
    [code[
    <elementname>
    <xsl:value-of select=""/>
    </elementname>
    but this will create the <elementname> always in the target whether or not it's in the source. You could do a check to see if it's in the source, but this isn't a solution because then i need to check for every 1000+ item in the source document, so..we skip this idea.
    So i reach a point where im still searching for a good solution and hoped you guys could help me a bit with it.
    If the problem isn't explain well please say so, and i will add extra info.

    Guys!
    In my current project we need to have an interface in Oracle ESB which is build on lets say a wsdl version1 and an interface build on wsdl version2.
    In esb i need to define a transformation which will transform the request on version1 to version2. Because the xsd for the operation is really huge (+1000 items) i made some templates in xsl to do most of the work, works great..only i'm having a few issues now.
    To re-order items from source to target i do the next in a template
    <nameGroep>
    <xsl:copy-of select="andhere the xpath from source"/>
    <xsl:copy-of select="andhere the xpath from source"/>
    <xsl:copy-of select="andhere the xpath from source"/>
    </nameGroep>The only problem from the xsl:copy-of is, it also copies the namespace along. So if my target document uses an other namespace, it fails.
    To correct this i hoped i could make use of <xsl:namespace-alias> but this doesn't work on a literal/text tag (hope i explain this correct).
    Other option is, for every element do something like
    [code[
    <elementname>
    <xsl:value-of select=""/>
    </elementname>
    but this will create the <elementname> always in the target whether or not it's in the source. You could do a check to see if it's in the source, but this isn't a solution because then i need to check for every 1000+ item in the source document, so..we skip this idea.
    So i reach a point where im still searching for a good solution and hoped you guys could help me a bit with it.
    If the problem isn't explain well please say so, and i will add extra info.

  • Direct Access 2012 R2 - Problems with Force Tunneling and other questions

    I have just setup a Direct Access 2012 R2 server in my network, 2012 domain and all Windows 8 clients. 
    Internal CA environment (no external CRL) using a public issued cert for IPHTTPS tunnel, 2 interfaces for the DA server, 1 internal and 1 in the DMZ behind a NAT firewall (1 public IPv4 address) and my test clients are connecting fine to internal resources.
    1.  When I enable Force Tunneling the clients no longer are able to access the external internet.  Is there anything I need to add to make this work?
    2.  I am having trouble with our Remote Desktop Session Hosts.  I can only assume it has something to do with the DNS  as we have our AD domain performing internal DNS of the int.contoso.com domain and public DNS performing for the external
    Contoso.com domain (RDWA etc).  DA has only int.contoso.com set as a DNS Name Suffix in the Infrastructure Setup.  Should I add the external contoso.com Name Suffix in there too?
    3.  I have a Kaspersky Security Center server for centralized AV admin, can I still push out AV updates to the clients that connect with DA.  Do I add my KSC server to the Management Servers list in the Infrastructure Server Setup page on the DA
    setup.   Does that list allow those servers to access the DA clients?

    Hi,
    Let's solve problems one by one. Force tunneling. When enabled, all network trafic from DirectAccess clients goes throught IPSEC tunnels. Just configure a proxy on your DirectAccess clients (with a FQDN of course) and your clients should be able to surf
    internet again.
    RDS : Depend. Where are your RDS servers registred internal zone DNS or external DNS zone. If a DirectAccess client cannot resolve a name it does not know if it has to go throught the tunnel. At last can you ping your RDS Server?
    Remote Management : Right. Adding servers in this list allow them to use the IPSEC infrastructure tunnel (computer established tunnel) without users being logged.
    BenoitS - Simple by Design http://danstoncloud.com/blogs/simplebydesign/default.aspx

  • Problems with namespace XML Parsing of ABAP PI 7.0 Integration Engine

    Hi,
    I discovered the following problem.
    The customer sends a SOAP message with is forwarded through a SOAP Adapter in the integration engine.
    The structure of the message is very simple:
    <Envelope>
    <Body>
    <ORDERS05>...</ORDERS05>
    </Body>
    </Envelope>
    The customer adds the namespace information a special way:
    <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope">
    <Body>
    <orders05 xmlns="">...</orders05>
    </Body>
    <Envelope>
    Here the namespaces is declared in the first element. It should be inherited into all child elements. The 'orders05' should not have the namespace ' xmlns="http://schemas.xmlsoap.org/soap/envelope" ', therefore the namespace is overwritten with ' xmlns="" '. However I don't know if this is a correct xml statement, the SAP system did not understand this.
    The integration throws an error which is stated in the message in the adapter engine:
    2008-11-06 17:31:44 Fehler SOAPFault empfangen vom Integration Server. ErrorCode/Category: XIProtocol/ITEM_MISSING; Params: /@mustUnderstand, ST: ST_XMS_MSGHDR30_RM; AdditionalText: Attribut 'mustUnderstand' erwartet; ApplicationFaultMessage: ; ErrorStack: Das XML-Element /@mustUnderstand fehlt im SOAP-Message Header (SAP XI Extension) Attribut 'mustUnderstand' erwartet
    2008-11-06 17:31:44 Fehler Fehler beim Übertragen der Message zum Endpunkt http://kas052.hauni.koerber.de:8036/sap/xi/engine?type=entry über die Verbindung SOAP_http://sap.com/xi/XI/System. Grund: com.sap.aii.af.ra.ms.api.RecoverableException: Received HTTP response code 500 : Error during parsing of SOAP header
    If I changed the SOAP message to the common format, it is accepted by the integration engine.
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope">
    <SOAP:Body>
    <orders05>...</orders05>
    </SOAP:Body>
    </SOAP:Envelope>
    Here the namespace ' xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope" ' is defined with a prefix and assigned to the elements 'envelope' and 'body'. The 'orders05' element has no namespace.
    However due to the xml syntax both messages are the same, so why the integration engine handle the messages different?
    Best regards,
    Nils Kloth

    The valid SOAP format supported by XI is as follows
    <SOAP:Envelope
      xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SOAP:Body>
        <m:MessageTypeName xmlns:m="Some-URI">
          <Price>34.5</Price>
        </m:MessageTypeName>
      </SOAP:Body>
    </SOAP:Envelope>
    Ur sender system is not sending the data in correct Soap format and thats the cause of message rejection. The option you have to use the Soap adapter in "no soap" mode.
    Regards,
    Prateek

  • Mapping: Problem with Namespaces while testing

    Hello,
    can anyone tell me what's the thing with the namespace in xml-messages for testing?
    My problem is the following: I have exported a test-xml-file from a mapping in another namespace (where everything is correct) and now i want to import this xml-file in my new mapping (another namespace).
    I found out that i have to change the given "xmlns:ns" attribute from the original namespace to the software component version (!!!), in which my new mapping is. Otherwise the file can't be imported correctly in my new mapping.
    Can you tell me the cause for this curious case, so that i don't have to search for my problem the next time...?
    Thanks in advance,
    best regards, Leo

    Hi Suraj,
    Your answer is not quite plain to me, sorry.
    Perhaps you can tell my with an example. My original xml looks like the following:
    <?xml version="1.0" encoding="utf-8"?>
    <ns:VDA490500 xmlns:ns="http://mynamespace.com/basis">
    <S511>
      <SATZART>511</SATZART>
      <VNR>02</VNR>
      <KNDNR>1234</KNDNR>
    </S511>
    <S519>
      <SATZART>519</SATZART>
    </S519>
    </ns:VDA490500>
    Now the namespace of my new mapping is another, and i only accomplished my problem by changing it to
    <?xml version="1.0" encoding="utf-8"?>
    <ns:VDA490500 xmlns:ns="<b>NewSoftwareComponentVersion</b>">
    <S511>
    All other trials didn't work.
    Can you show me what you meant, and perhaps can you tell me why?
    Thank you,
    Leo

  • Browser on Flex 2-15: no access to GMail, problems with images, songs on Hypem load 3 seconds etc.

    Hi there!
    I've been struggling a bit to solve this problem on my own but unfortunately, I'm too much of a noob.
    I recently bought a Lenovo Flex 2-15 (Intel Core i5-4210U, 8GB RAM) and have had troubles with browsing pretty much ever since (though it got worse in the last few days). I can't access GMail (stuck with "Loading..."), images load incompletely (some don't show up, missing parts in others etc), songs on Hypem only load the first two or three seconds instead of the whole song - and the list goes on.
    I usually use Chrome but I've tried Firefox and Internet Explorer - and the problems persists.
    Any ideas on how to enjoy browsing again? This situation is unbearable. I recently even switched to my smartphone for browsing and writing emails.
    Looking forward to hearing from you.
    Best,
    Helen.
    Solved!
    Go to Solution.

    Try switching your DNS to google's open DNS.

  • Problem with namespace prefix

    Dear all,
    I'm using code generated by NW Developer Studio  2004s for use inside Portal components acting as a web service consumer. The problem is that the code generated includes a namespace prefix for each element in the body of the message, but ECC (ERP 6.0) doesn't like the namespace prefixes (the namespace was not recognised by the ECC mapping tool.)and throws back a DeliveryException.
    The SOAP message created by the generated NWDS code is:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wn3="http://www.w3.org/1999/XMLSchema" xmlns:wn2="http://www.w3.org/2000/10/XMLSchema" xmlns:wn1="http://www.w3.org/2001/XMLSchema" xmlns:wn0="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wn4="urn:sap-com:document:sap:rfc:functions" xmlns:tns="urn:sap-com:document:sap:rfc:functions">
    - <SOAP-ENV:Body>
    - <wn4:Z_APPOINTMENT_GET_JCO_ORG>
      <wn4:DATE_FROM>2007.01.01</wn4:DATE_FROM>
      <wn4:DATE_TO>2008-02-02</wn4:DATE_TO>
      <wn4:USERID>EGREO</wn4:USERID>
      </wn4:Z_APPOINTMENT_GET_JCO_ORG>
      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>
    I've had a very good look around the generated code - the serializers for creating the soap request - but could not find what exactly might be changed to leave off the prefixes.
    I am using portal server 2004s
    Many thanks for any advice/help
    Reza

    I find out how should I do that.
    /Reza

  • SQLException: Access not allowed (problem with ACL)

    Hi, I'm getting the following error when I start my Weblogic (7.0) server.
    java.sql.SQLException: weblogic.common.ResourceException: Access not allowed
    I followed these steps to Provide the necessary ACl permisiions:
    1.     Compatibility Security => ACLs
    Create a new ACL:
    name : weblogic.jdbc.connectionPool.yourPoolname
    permission : admin
    group : Administrators
    2. Create a new Connection Pool:
    ACL Name : weblogic.jdbc.connectionPool.yourPoolname
    In 'Target' tab, choose server and click the Apply button.
    I even checked fileRealm.properties, the user admin123 (the user name with which I start the server), is included in all the connectionpool ACL lists. I restarted the server to pick the new changes but it still gives the same errors.
    Please help,
    Thanks

    You need to create the correct ACL for the DataSource following this procedure in the Administration Console:
    1. Compatibility Security => ACLs
    Create a new ACL:
    name : weblogic.jdbc.connectionPool.yourPoolname
    permission : admin
    group : Administrators
    2. Compatibility => click Refresh button
    3. Services => JDBC => Connection Pool
    Create a new Connection Pool:
    ACL Name : weblogic.jdbc.connectionPool.yourPoolname
    In 'Target' tab, choose server and click the Apply button.
    4. Services => JDBC => Data Sources
    You can create a new Data Source using this connection pool successfully
    Regards,
    Prasanna Yalam

  • Access Connection​s Problems With Windows 7 and Microsoft Security Essentials

    There appears to be a conflict with Access Connections and Microsoft Security Essentials which causes Microsoft Security Essentials to generate high page faults and high CPU usage, and prevents normal operation of Access Connections.
    After fresh install and reboot Access Connections would not launch, and when cursor was moved to the taskbar, the cursor pointer changed to a spinning loop.  Clicking on the Access Connections gadget did nothing. Looking at Task Manager, Microsoft Security Essentials program msmpeng.exe was experiencing 5000+ page faults per interval.  Terminating msmpeng.exe immediately caused Access Connections to launch.
    System configuration: Lenovo Thinkpad x200s with Windows 7 Ultimate 64 RTM (installed with a fresh install) with all current updates, and all updates from Leovo including Access Connections V 5,42 Build 6JC725WW,
    Solved!
    Go to Solution.

    Here is a workaround to fix the issue
    1) Launch MS Security Essentials
    2) Click on the "settings" tab
    3) Click on "Excluded files & Locations"
    4) Click "Add"
    5) browse and add the following exceptions
     a) C:\Users\Public\Lenovo\Access connections
     b) C:\Users\Public\Lenovo\Access connections\AccConnAdvanced.html
    6) Click "Save Changes"
    The issue is also resolved in AC 5.5 which is posted to the web
    http://www-307.ibm.com/pc/support/site.wss/documen​t.do?lndocid=MIGR-73682
    Can someone please test both solutions and let me know if the issue is resolved.
    Thanks

  • 1130AG Access Point PoE Problem with Cat 3750G-24PS-E switch

    I am having a problem on the PoE negotiation of Catalyst 3750G-24PS-E and 1130AG Access point. I used straight and cross cable for physical connection since by default the auto mdix per port of the switch is enabled/on. I used CLI, CNA and Web Device Manager on both devices to isolate and troubleshoot the problem but still the PoE negotiation on both devices won't work out. But when I used the access point into other switch (CE500 PoE Switch), the access point is working properly. Does anyone can help me to distinguish what the problem really is? The IOS Version of 3750G switch is 12.2(25) SEE2 and the 1130AG access point IOS Version is 12.3(8)JEA.

    Hi Rob,
    Thanks for your reply. Yes, I tried shut/no shut on the switchport many times. I saw that the switch grant power inline on the port but the port still can't/won't provide any power to boot up the access point.
    Thanks,
    Nelmar

  • XSL mapper problem with namespace defined in the element

    Hi.
    Using XSL Mapper from JDeveloper, I have imported one xsl that now is working and it generates an error. The source for the mapper is:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns4="http://sample.com" xmlns:ns3="http://sample2.com" version="1.0">
    <xsl:template match="/">
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    And I get
    Line Number:(25) : Error: "soapenv:Envelope" Element not Found in Target Schema
    But, if I change a little bit the definition, I solve the error.
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns4="http://sample.com" xmlns:ns3="http://sample2.com" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" version="1.0">
    <xsl:template match="/">
    <soapenv:Envelope >
    Why is this happening? It will make a lot of work trying to change all the old transformations that are well formed according with w3 specifications.
    Thanks in advance.
    Regards

    Hi,
    Perhaps it would help if you post your XML file.

  • Problem with namespace

    Hi all,
    I am processing a EDI inbound transactions,using EDI x12 over internet business protocol. I uploaded one XSD file with a name space, but while it cuming to B2B-INQUEUE after processing the inbound transactions , its changing the name space.
    Regards
    Suni

    Hi Suni,
    Please generate the XSD for the required ecs file from the document editor. While generating the xsd from ecs file, ensure the select the option for "save guideline" and then use these ecs and xsd files while modelling
    Regards,
    Dheeraj

Maybe you are looking for

  • Disable field XWAOK in MB21 T.code

    hello, anybody please help me. i want make XWAOK (Goods Movement for Reservation Allowed) field in display mode during reservation creation by using  t.code: MB21. but in MB22 it should be in change mode. how can i make this. Thanks & Regards Bhakta

  • HP 7520 estation printer running on Vista.

     Yesterday I was able to get the printer to print wirelessly but could not get the network to show on the Zeen.  This morning I have lost the wireless connection and cannot get anything to print.  Phone and ipad show air printer not found.  Printer w

  • Why is Firefox always displaying previous tabs when it opens?

    After I use Firefox and close the browser, the next time I open the browser it will reload ALL the tabs I had open previously. I have turned off this feature in the "options", but it's not working. ALSO, if I click on any link which is going to open

  • Adobe Flash Player 10.2.152.32 Not working in I.E.8

    Hello I am getting a bit frustrated with Adobe Flash Player. The last three versions i have tried have all exhibited the same strange behaviour in that every clip i play on youtube or in other sites including CNN go frame by frame , maybe 1 frame a s

  • Matrix object

    I'm trying to achieve a 'Falling leaf effect' to apply on a number of little lines triggered by a mouse over event. I'm feeling adventurous today and would like to use AS to do that. i understood the matrix object could help and have a code that look