How to merge 2 part of two different Domdocument

Hi,
I try to copy on subtree from a first DOMdocument to a second DOMDocument and I receive a java null pointer exception. How can I copy one part of a DOM to another ?
CREATE OR REPLACE PROCEDURE testDom IS
BufferString VARCHAR2(32767) := '<TEST>test to add</TEST>';
BufferToAdd VARCHAR2(32767) := '<ADDED>Added</ADDED>';
CurrDoc XMLDOM.DomDocument;
BuffDoc XMLDOM.DomDocument;
CurrDocNode XMLDOM.DomNode;
ToAddNode XMLDOM.DomNode;
ToAddTextNode XMLDOM.DomNode;
ResultString VARCHAR2(32767);
IntermediateString VARCHAR2(32767);
BEGIN
CurrDoc := XMLDOM.NewDOMDocument;
CurrDocNode := XMLDOM.MakeNode(CurrDoc);
CurrDocNode := XMLDOM.AppendChild(CurrDocNode,XMLDOM.MakeNode(XMLDOM.CreateElement(CurrDoc,'AddedTag')));
CurrDocNode := XMLDOM.AppendChild(CurrDocNode,XMLDOM.MakeNode(XMLDOM.CreateTextNode(CurrDoc,'Add')));
BuffDoc := XML.parse(BufferString);
ToAddNode := XMLDOM.CloneNode(XSLPROCESSOR.SelectSingleNode(XMLDOM.MakeNode(BuffDoc),'/TEST'),TRUE);
CurrDocNode := XMLDOM.AppendChild(CurrDocNode,ToAddNode);
XMLDOM.WriteToBuffer(CurrDoc, IntermediateString);
XMLDOM.WriteToBuffer(BuffDoc,ResultString);
DBMS_OUTPUT.PUT_LINE('IntermediateDoc '||IntermediateString);
DBMS_OUTPUT.PUT_LINE('Result '||ResultString);
XMLDOM.FreeDocument(CurrDoc);
XMLDOM.FreeDocument(BuffDoc);
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE(SQLERRM);
END testdom;
sho errors

You should use importNode().

Similar Messages

  • How can I send email using two different email address that both link back to my one exchange account on my Ipad mini

    How can I send email using two different email address that both link back to my one exchange account on my Ipad mini? 
    On my PC I simply have a master return email address and use a POP for the secondary address.  Both are through the one exchange account without a problem.  I need to be able to do the same on my Ipad.

    Ah, I should have made that clear.  My domain didn't come from google.  It was purchased at and is hosted at dreamhost, but I haven't used their email servers in years - I just route everything through gmail.  I actually have a bunch of domains (with websites).
    Gmail has an option that lets someone with custom domains send (and receive) email through gmail using the custom domain once Google confirms proper ownership of the domain (to prevent spammers and such).  Gmail has a setting for "send email as" which allows gmail to be sent using a custom domain as the sender.  I'm pretty sure Apple's old mobileme had this feature too, but I didn't use it.

  • How can I transfer songs from two different itunes?

    I want to transfer songs from my brother's itunes library to my shuffle, but when I plug it in his computer, a message saying that his library is not linked to my library (or something to that extent) and whether I would like to replace the songs. If I click yes, all my existing songs are replaced with HIS songs. If I click on NO, the Shuffle icon does not appear at all and I cannot transfer any of his songs to my shuffle. How can I transfer songs from two different computers into my shuffle without replacing any of my existing music?
    Shuffle   Windows XP  
      Windows XP  

    You'll have to setup your iPod to manual instead of automatic update (I'm not sure, though, if it works with the Shuffle as well).
    Alexander.

  • PP-WM integration - staging pick parts across two different plants

    Hi,
    My requirements are as follows,
    I have a manufacturing plant A and a Sales plant B. For the vast majority of cases goods are manufactured in A, transferred to B and then sold. However in a minority of cases finished goods are transferred from B back to the manufacturing plant A to be consumed in the manufacture of a different finished good e.g. relabelling to another material number etc. Plant B is full WM HU managed.
    I want to enable pick parts staging via WM-PP. I am aware of the PP/WM integration steps in customizing but I am having difficulty in staging from plant B to A.
    I have set up a WM HUM managed storage location for the production supply area in plant A and assigned to the same warehouse as plant B
    Production Supply area is defined in Plant A
    Replenishment movement type is defined for storage type
    Storage Bin created in Plant A exact same type as bins in plant B
    Control cycle created to link Production Supply Area and Storage bin for component materials
    Process steps
    Create process order in plant A, list component material storage location as per production supply area storage location
    Process order staging creates the transfer requirement correctly
    However transfer requirement cannot convert to transfer order for staging. It does not appear to be able to recognise the stock in plant B and returns an error 'negative stocks not allowed in storage type'
    My challenge is as follows, is it possible to setup staging of pick parts between two different plants using WM transfer orders?
    Thanks in advance

    Hi,
    This is not possible. You can only stage from one plant and storage location - based on the supply area. The supply areas are maintained per plant and storage location and this is what the system will use for staging.
    Regards,
    Sinéad Curran

  • HT4061 How do I consolidate purchases from two different ids that are on the same bank account, and eliminate the extra id without losing any purchases?

    How do I consolidate purchases from two different ids that are on the same bank account, and eliminate the extra id without losing any purchases? I want my music to match on both ipad and computer.

    Purchases are forever tied to the AppleID they were bought with. There is currently no way to consolidate AppleIDs. Sorry.

  • How do I calculate days from two different dates?

    Hi all,
    How do I calculate days from two different dates?
    my requirement is to pass the number of days to target field from two dates.
    Current date :  14/04/2010
    Standard date: 01/01/1957 is the standard = day 0
    Is it possible in graphical mapping with out  udf?
    Plz help me on this I have donu2019t have much knowledge on JAVA.
    Thanks

    Hi Yadav,
    Probably this is not the correct forum for XI / PI .
    You can post the same to...
    Process Integration (PI) & SOA Middleware
    Hope this helps.
    Regards
    Raj

  • How do I calculate days from two different dates in XI/PI?

    Hi all,
    How do I calculate days from two different dates in XI/PI?
    my requirement is to pass the number of days to target field from two dates.
    Current date : 14/04/2010
    Standard date: 01/01/1957 is the standard = day 0
    Is it possible in graphical mapping with out udf?
    Plz help me on this I have donu2019t have much knowledge on JAVA.
    Thanks

    Hi Yadav,
    Probably this is not the correct forum for XI / PI .
    You can post the same to...
    Process Integration (PI) & SOA Middleware
    Hope this helps.
    Regards
    Raj

  • How can I use music from two different iTunes accounts?

    how can I use music from two different iTunes accounts?

    If you mean iTunes Store accounts, there's really nothing for you to do. Just add the tracks to the iTunes library and play them. Music purchased prior to late-2009 will been to be authorized, though. Pull down Store > Authorize... and type the credentials of the Apple ID used to buy the tracks.
    If you mean something else, please describe in more detail.

  • How to compare the contents of two different tables

    hello. can somebody give me an idean on how to compare the contents of two different tables in mysql?
    example, i have a table named Main List and a table named New List.
    The contents of the New List should be compared to the contents of the
    Main List, to check if they are equal. I don't have any idea how to manipulate
    this data. Hoping for your help. Thanks.

    it is better to comapre it using java.. try get the resultset first and store that in collections then comapre the two collections

  • Can a single server instance (Ip Port combo) be part of two different clusters?

    Hello,
              Is it possible for a single Weblogic 7.0 server instance to be a part of two different clusters?
              Thanks,
              Rajan
              

    Invoke a SLSB in a different cluster which will call invalidate() ?
              "Rajan" <[email protected]> wrote in message
              news:3d88a5b6$[email protected]..
              >
              > We have a requirement to synchronize in-memory data between the machines
              in different
              > clusters.
              >
              > Invalidate() propagates only within a cluster. I was wondering if there is
              a standard
              > way to update in-memory data on a different cluster if the underlying data
              stored
              > in a database, has changed.
              >
              > Thanks for help.
              >
              > Rajan
              >
              > "Cameron Purdy" <[email protected]> wrote:
              > >Rajan,
              > >
              > >> Is it possible for a single Weblogic 7.0 server instance to be a part
              > >> of two different clusters?
              > >
              > >No. Is there something specific that you are trying to accomplish?
              > >
              > >Peace,
              > >
              > >Cameron Purdy
              > >Tangosol, Inc.
              > >http://www.tangosol.com/coherence.jsp
              > >Tangosol Coherence: Clustered Replicated Cache for Weblogic
              > >
              > >
              > >"Rajan" <[email protected]> wrote in message
              > >news:[email protected]..
              > >>
              > >
              > >
              >
              Dimitri
              

  • How to compare the programs in two different systems

    Hi,
    I have two systems say A & B and i have the program say 'Z_TESTPROG'.
    How to compare the program in two different systems.
    Regards,
    Venkat

    Hi,
    Check the version in Utilities -> version -> version management in both servers is one option.
    Another one is using SE39 transaction.
    Regards
    Manasa

  • How can i use eyedropper between two different art board.

    Hi
    How can i apply the same color for the images in two different art boards with eyedropper.
    I am trying to apply the same color from the image in one art board to another image in another art board.
    Can any one help me please. Thanks
    Steve
    I am using Mac

    apresslink,
    Presuming you are unable to use the Eyedropper Tool normally, in other words keep the target object selected while you pick up the colour, by having the Artboards open in adjacent windows to ClickDrag between (I am still with 10 which may explain at least part of my ignorance for which I apologize):
    Until someone presents a smarter solution, you may cheat and create a carrier object beside the  source object, drop the colour in that, cut and paste it to be beside the target object, and drop the colour there. With multiple colours to drop multiple times, you may create a palette to hold them, to use just like a painter working on several canvases at the same time. Or you could paste diminshed copies of the source objects.

  • How to build transitional replication on two different domain servers in SQL server 2012 ?

    Hi All,
    We have to build transnational replication with updatable  subscribers between two different domains .
    Is it possible ,if it's possible please share the any document or process .....
    Thanks in advance. 
    RAM

    Yes this is possible.
    Replication across two non-trusted domains or workgroups can be done by using Windows Authentication by configuring
    pass-through authentication.
    Create a local Windows account on both the Publisher and Subscriber that has
    the same username and password. Use this account for the Merge Agent process account and have the connections to the publisher and distributor impersonate the agent process account. Ensure the account has the permissions required in
    Replication Agent Security Model.
    This approach is covered in the section Use Windows Authentication to Set Up Replication Between Two Computers Running SQL Server in Non-Trusted Domains in
    HOW TO: Replicate Between Computers Running SQL Server in Non-Trusted Domains or Across the Internet.
    Another approach to configure replication between non-trusted domains is to use SQL authentication for cross domain connections.
    Brandon Williams (blog |
    linkedin)

  • How to use same DFF for two different forms with :BLOCK.field reference

    Hi,
    Can anyone suggest how to use the same dff in two different forms by using :BLOCK.field reference.
    Scenario is the same DFF is referenced by two forms, viz. Form-1 & Form-2.
    Form-1 Reference Field is :BLOCK.field name, but the same block is not available in Form-2, which throws an error while opening it.
    Any pointers please.
    Thanks,

    In the environment I currently have access to do not have similar setup.
    Let say you setup the DFF1 default value to $HEADER.customer_name, the name of the DFF is CUSTOMER_NAME, description can be anything.
    In DFF2, default value should be a SQL, where you can reference the DFF1. For example, SELECT DECODE($FLEX.CUSTOMER_NAME, 'ABC', 1, 'DEF', 2, NULL) FROM dual
    In this case, you can reference the DFF1.

  • How to transfer app data between two different game center accounts?

    Hello, I really need some help.
    I have looked all over the web for ways to transfer apps between two different game center accounts and different devices. Several weeks ago I started playing Campus Life on my relative's Ipad 2, therefore spending many long hours to get to this point in the game.
    The problem is I just got an Iphone 5 and I really would like to transfer the data onto it, so that I would not need to start all over again.
    My grandma has an account (Game Center) onto which the data has been saved and I would like to have it stored onto mine. On some forum someone said to sign into the account which has the data on both devices and to then open up the game on the new device. It worked. Then I signed out and logged in with my own account- the game started from scratch. I panicked. I went back on the other account, and the data reappeared. I have been going back and forth, the game changing as many times. I thought it would ask to back up my grandma's data on mine but I was wrong. I can not seem to save the game onto my new account, and I have even tried to back it up to Itunes and then copy it onto my phone after having signed into my own account. And I don't know how to properly use Icloud. I am a mess. I am completely lost and have found no help on the web. (All people seem to have to deal with is sharing Apple IDs with different Game Center Accounts for the kids and transferring apps from one of their devices to another.)
    I am so worried I am going to mess up and will lose the whole thing completely.
    I have just started another game with my own account but since I am using my grandma's, the data is erased. It's one or the other but I definitely prefer saving Campus Life. I do not like the idea of having to only pick one.
    I do not know any technical terms, so if you understand or even have the slightest clue about what I am talking about, I applaud you.
    This seems like mission impossible, so if anyone can help in any way, I would be really grateful. 
    Thanks in advance for your time and thoughts!

    I meant to press on "This solved my question"... Sorry if you needed the points.
    Thank-you and I will just go back and forth between the accounts.

Maybe you are looking for