How to create a new DOM tree with nodes from another DOM tree?

Hello,
I would like to create a DOM tree by using nodes from an existing DOM. How can I do that? I tried with appendChild and it gaves me as error: "WRONG_DOCUMENT_ERR".
Thx!

The xml that should be parsed is something like that:
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns="http://www.nebi.biz/schemas/bd/nebienvelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" BusinessDocumentVersion="7.0" xsi:schemaLocation="http://www.nebi.biz/schemas/bd/nebienvelope NeBiEnvelope_L_0_3.xsd">
    <Header>
        <To>
            <OrganisationId>OrganisationId0</OrganisationId>
            <DestinationType>DestinationType0</DestinationType>
            <Destination>Destination0</Destination>
        </To>
        <From>
            <OrganisationId>OrganisationId1</OrganisationId>
            <DestinationType>DestinationType1</DestinationType>
            <Destination>Destination1</Destination>
        </From>
        <Dialog>Dialog0</Dialog>
        <DialogId>DialogId0</DialogId>
        <MessageType>MessageType0</MessageType>
        <MessageId>MessageId0</MessageId>
        <Reference Role="buyer" Type="BusinessAgreement">Reference0</Reference>
        <SequenceId>SequenceId0</SequenceId>
        <Checksum Type="MD5">Checksum0</Checksum>
    </Header>
    <Body>
        <Order xmlns="http://www.nebi.biz/schemas/bd/order" BusinessDocumentVersion="7.0" OrderType="request" xsi:schemaLocation="http://www.nebi.biz/schemas/bd/order Order_L_0_96.xsd">
            <OrderId Role="buyer"/>
            <ProductLine Number="1">
                <ProductUseCaseDetails Id="WICreation">
                    <wiCreation xmlns="http://mydomain.com/GRIPP/workitem">
                        <wiCreationHeader>
                            <userId>wmadm</userId>
                            <taskModelName>DNS02_CreateMasterZone</taskModelName>
                        </wiCreationHeader>
                        <wiCreationBody>
                            <DNS02CreationBody>
                                <GlobalSection xmlns="http://mydomain.com/GRIPP/dns02">
                                    <Outcome>1</Outcome>
                                </GlobalSection>
                                <SpecificSection xmlns="http://mydomain.com/GRIPP/dns02">
                                    <Zonename>0.0</Zonename>
                                    <RRLocation>Domain</RRLocation>
                                    <RemoteSlaves type="multiline">
                                        <RemoteSlaveFQDN>test.com</RemoteSlaveFQDN>
                                        <RemoteSlaveIP>123.234.234.123</RemoteSlaveIP>
                                        <RemoteSlaveFQDN>test.net</RemoteSlaveFQDN>
                                        <RemoteSlaveIP>123.123.123.123</RemoteSlaveIP>
                                    </RemoteSlaves>
                                </SpecificSection>
                            </DNS02CreationBody>
                        </wiCreationBody>
                    </wiCreation>
                </ProductUseCaseDetails>
            </ProductLine>
         </Order>
    </Body>
    <Trace>
        <CheckPoint>
            <SystemName>SystemName0</SystemName>
            <SystemDateTime>2006-05-04T18:13:51.0Z</SystemDateTime>
        </CheckPoint>
    </Trace>
</root>This is the output of the Document after parsing and augmentation with the Xerces parser.

Similar Messages

  • Tables for creating a new sales order with reference to another

    Hi Experts
      In ABAP, how can identify that  I'm creating a new sales order with reference to another in the userexit read_document??, In which tables is this information??.
    Thanks
    Regards

    In Table VBFA there are two fields
    a)  Preceding Document  and
    b)  Subsequent Document category
    Based on the above two fields, you can conclude that sale order is created with reference to a preceding document.
    thanks
    G. Lakshmipathi

  • Each time I create a new album in IPhoto, photos from another album or from photo stream are automatically dumped into the new album..  how do I create a blank album and then import photos from a flash drive into the new album?

    each time I create a new album in IPhoto, photos from another album or from photo stream are automatically dumped into the new album..  how do I create a blank album and then import photos from a flash drive into the new album?

    just import the iPhoto
    Surely you meant "just import the photo"?  The Spell checker is dangerously creative !

  • How to create a new user aaa with same rights as existing user bbb ?

    Assume user bbb already exists in Oracla 10g database.
    How can I create a new user aaa with the same rights/permissions as the old user bbb?
    Is this procedure/command also working if the old user is user "system" (=dbadmin)?

    There is some possibilty to generate a EXPDP dump file which contains only DDL statements related to account and
    privileges: EXCLUDE/INCLUDE parameter can help.
    For example, following EXPDP statements seem to work with SYSTEM account:
    expdp / schemas=system content=metadata_only exclude=table,sequence,package,function,procedure,synonym,,type view dumpfile=DPD:system.dmp logfile=DPD:system.log
    Export: Release 10.2.0.2.0 - Production on Thursday, 14 February, 2008 9:41:36
    Copyright (c) 2003, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Produc
    tion
    With the Partitioning, OLAP and Data Mining options
    Starting "OPS$XXX"."SYS_EXPORT_SCHEMA_01":  /******** schemas=system con
    tent=metadata_only exclude=table,sequence,package,function,procedure,synonym,type view dumpfile=DPD:system.dmp logfile=DPD:system.log
    Processing object type SCHEMA_EXPORT/USER
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA
    Master table "OPS$XXX"."SYS_EXPORT_SCHEMA_01" successfully loaded/unload
    ed
    Dump file set for OPS$XXX.SYS_EXPORT_SCHEMA_01 is:
      C:\TEMP\SYSTEM.DMP
    Job "OPS$XXX"."SYS_EXPORT_SCHEMA_01" successfully completed at 09:41:41
    impdp / sqlfile=dpd:system.sql dumpfile=DPD:system.dmp logfile=DPD:system.logImport: Release 10.2.0.2.0 - Production on Thursday, 14 February, 2008 9:42:46
    Copyright (c) 2003, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Produc
    tion
    With the Partitioning, OLAP and Data Mining options
    Master table "OPS$XXX"."SYS_SQL_FILE_FULL_05" successfully loaded/unload
    ed
    Starting "OPS$XXX"."SYS_SQL_FILE_FULL_05":  /******** sqlfile=dpd:system
    .sql dumpfile=DPD:system.dmp logfile=DPD:system.log
    Processing object type SCHEMA_EXPORT/USER
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA
    Job "OPS$XXX"."SYS_SQL_FILE_FULL_05" successfully completed at 09:42:50and system.sql is:
    -- CONNECT OPS$XXX
    -- new object type path is: SCHEMA_EXPORT/USER
    -- CONNECT SYSTEM
    ALTER USER "SYSTEM" IDENTIFIED BY VALUES '970BAA5B81930A40'
          TEMPORARY TABLESPACE "TEMP";
    -- new object type path is: SCHEMA_EXPORT/SYSTEM_GRANT
    GRANT GLOBAL QUERY REWRITE TO "SYSTEM";
    GRANT CREATE MATERIALIZED VIEW TO "SYSTEM";
    GRANT SELECT ANY TABLE TO "SYSTEM";
    GRANT CREATE TABLE TO "SYSTEM";
    GRANT UNLIMITED TABLESPACE TO "SYSTEM" WITH ADMIN OPTION;
    -- new object type path is: SCHEMA_EXPORT/ROLE_GRANT
    GRANT "DBA" TO "SYSTEM" WITH ADMIN OPTION;
    GRANT "AQ_ADMINISTRATOR_ROLE" TO "SYSTEM" WITH ADMIN OPTION;
    GRANT "MGMT_USER" TO "SYSTEM";
    -- new object type path is: SCHEMA_EXPORT/DEFAULT_ROLE
    ALTER USER "SYSTEM" DEFAULT ROLE ALL;
    -- new object type path is: SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    BEGIN
    sys.dbms_logrep_imp.instantiate_schema(schema_name=>SYS_CONTEXT('USERENV','CURRENT_SCHEMA'), export_db_name=>'BAS002.REGRESS.RDBMS.DEV.US.ORACLE.COM', inst_scn=>'1456160');
    COMMIT;
    END;
    -- new object type path is: SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA
    BEGIN
    SYS.DBMS_AQ_IMP_INTERNAL.CLEANUP_SCHEMA_IMPORT;
    COMMIT;
    END;
    / These export and import steps don't take into account privileges granted on schema objects belonging to another user likely due to to the EXCLUDE statements.
    Message was edited by:
    Pierre Forstmann

  • How do create a new email address with my iCloud account

    This may be simple but as usual with these things you usually do it once and never have to do it again!
    I have has my mac mail address @mac.com since idisk was launched and then added a family pack with addresses for my kids and wife and when icloud launched i migrated all the addresses with no problem - but one of my clients wants me to create a new @mac (or @me.com) email address specifically for my invoices to send to there on line accounts system - my question is how do create a new email address for free in icloud - is it possible?
    I remember the family pack gave you additinal options to create up to 5 email adresses?  T
    Thanks in advance - Allister in Scotland UK
    Message was edited by: Allister Gourlay

    Allister Gourlay wrote:
    My client wants me to test there online invoice system that will go online next year when i and a few long terms suppliers will upload our invoices that will match with purchase orders as a test.
    and instead of using my present mac mail email address they want me to use a prefix they have allocated to me
    This is the issue. They are telling you to get a specific email address.
    If this address is already taken, then what?
    Roger thank you that was the info i needed
    FYI: My first post was a link to -> iCloud: Create or change email aliases

  • How to create a "News" Content area with an effective date

    I have a requirement to create a content area such that each item which is uploaded
    will have an effective viewing date range. I know I can create a custom item type
    and prompt for the Start View Date, and the End View Date.
    Questions...
    1. How do I 'filter' the displayed content so that the 'news' item only show up
    if the current System Date is between the Start/End View dates ?
    2. Exception, the Content Manager should be able to see the entire news content
    items regardless of the system date ?
    Page parameter mapping seems like a partial solution, but I don't see how to
    create the folder filter predicate like "where SYSDATE between view_start and view_end.

    Why not use Publish Date and Expiry Date?

  • How to create a LookUp field, selecting a value from another record type ??

    Hello all,
    I am looking to create a new field in Opportunity in CRM On Demand where we can give the user an option to select one of the records. Data in this search applet should come from another Record Type in CRM On Demand. I am not able to find any similar literature in the Help books.
    I would appreciate if somebody could give me real life steps please.
    Thanks a lot

    Okay. I found the solution to this.
    Now, along with this single reference, we also wish to bring the values of some more joined fields from the other record type in the Opportunities screen.
    We were hoping that the Default value, and using fx, we should be able to achieve this using "joinedfieldvalue". However, it's not bringing back any value. Our expression is -
    JoinFieldValue('<CustomObject3>',[<CustomObject3Id>],'<stState_ITAG>')
    Please help if you have done this before.
    Thanks & Regards

  • How to create a new user account?

    Hi,
    Could you point me to the document/maunal on
    how to create a new user account for OS X 10.4?
    I somehow couldn't find that from Apple web site.
    And I found one here:
    http://www.mcelhearn.com/article.php?story=2004110211244242
    and followed the instruction:
    # echo 'henry::512:512::0:0:Henry James:/Users/henry:/bin/bash' | sudo niload -v passwd /
    but nothing happened. Either this doesn't work with
    V10.4 (which I use), or I missed something.
    Any pointer would be much apprecaited.
    Thanks.
    Macbook Pro   Mac OS X (10.4)  

    Hi Allan and Simon,
    Thanks for your responses.
    Sorry I didn't make my question clear. I meant:
    "How to create a new user account with command line"?
    The GUI (System Preference) would work. But I'd like
    to how to do it from command line (just like on Unix).
    Any inputs would be appreciated.
    Thank you.
    Macbook Pro Mac OS X (10.4)
    Macbook Pro Mac OS X (10.4)

  • Create an order using BAPI with reference to another one.

    Hi everybody,
    I'm trying to create a new sales order with reference to another one (That's important because of the documents flow).
    I'm using 'BAPI_SALESORDER_CREATEFROMDAT2' but I couldn´t do it yet. I've read some ideas about this kind of creation in this forum; but I still haven´t found the solution yet.
    Some ideas about the BAPI parameters I nedd to complete?
    Thanks in advance!!
    Edited by: Ole ES on Sep 11, 2008 12:32 PM

    Hi,
    Are you sure you can create a sales order with reference to ANOTHER sales order? The reason I ask is that in the front end, sales orders are created with reference to either quotations or contracts. There are settings known as "copying control" that need to be maintained for this to show up as document flow.
    We have been working on a BAPI to create a sales order, but that is without reference to another document, and it works fine.
    Could you please elaborate?
    Cheers.

  • I created my Apple ID in Ireland, but would now like to switch to a German Apple ID, keeping the same email address. How do I delete my old Irish Apple ID, so I can create a new German one with the same email?

    I created my Apple ID in Ireland, but would now like to switch to a German Apple ID, keeping the same email address. How do I delete my old Irish Apple ID, so I can create a new German one with the same email?

    Welcome to the Apple Community.
    Click on your account name in the top right corner of the iTunes store in the iTunes application on your computer, enter your password and click the "view account" button. Navigate to the Apple ID summary where you have the option to "change country or region".
    In order to change your location, you will need a credit card registered to an address in the location you are trying to change to.
    You cannot change your location if you have credit on your account, if you are unable to spend your credit and leave a balance of zero, contact Apple, which you can do through iTunes Store Support.

  • SharePoint Designer 2013 (2010 Platform Workflow) - How can I create a new list item with a SPECIFIC content type?

    In SharePoint 2010 I created workflows that used the 'Create list Item' Action, which then set the Content Type ID (so I could create documents of various types in a document library). 
    We just switched to the SharePoint 2013 platform, and now the drop down for Content Type ID is blank in all of the workflows that are still using the SharePoint 2010 platform.  Is there any way to create a list item with specific content
    type?  Even if I could just input a string into that field instead of using this blank drop-down.  Please help! 

    Hi Sarah,
    According to your description, my understanding is that you cannot create a new list item with a specific content type using SharePoint 2010 Platform Workflow.
    I tested the same scenario in my environment, and the Create List Item worked fine with the specific content type.
    How did you create the content type?
    Please check if the content type is added to the list/library the workflow associated with.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How can I create a new TC backup with ethernet, so I don't have to wait two days for a new wireless backup?

    How can I create a new TC backup with ethernet, so I don't have to wait two days for a new wireless backup?
    Several times in the last year, I've gotten a message that Time Machine needs to completely redo my backup. Using the wireless connection, this takes almost two days. Is there a way to do the backup with ethernet and then switch back to wireless? Thanks.

    May I know what is needed to make sure the MacBook is able to see Time Capsule on ethernet?
    Connect an Ethernet cable from one of the LAN <-> ports on the 2Wire gateway to the WAN port (circle of dots icon) on the Time Capsule.
    If AirPort Utility cannot "see" the Time Capsule now, you will need to perform a "hard reset" by holding in the reset button for 7-8 seconds or so and then reconfigure the Time Capsule. You can use the same Time Capsule name and password, etc. as before.
    Configure the Time Capsule to "Create a wireless network" and select the Bridge Mode option when it appears during the setup using AirPort Utility.
    Once the Time Capsule is configured, restart the entire network again. Power down everything, start the 2Wire first and then start each other device after that one at a time about a minute apart.
    Now you can connect your Mac directly to one of the LAN <-> ports on the Time Capsule for the backup using another Ethernet cable. In general, about 20-25 GB per hour will transfer.
    The Time Capsule will broadcast a much faster wireless network than the 2Wire can provide, so you might want to leave the setup "as is" for awhile after the first backup is complete. If you decide to use the Time Capsule as your main wireless access point, you would want to turn the wireless off on the 2Wire since two wireless networks in close proximity can create interference problems.
    Or, if you want to use the wireless on the 2Wire, you could turn off the wireless on the Time Capsule. Then backups will occur over the 2Wire wireless, or over Ethernet.
    I don't really recommend the "Join a wireless network" setting on the Time Capsule for most users, but you could go back to that setup as well if you want after the first backup is complete.

  • How to create a new Oracle OSB project automaticaly with script without IDE

    Hello,
    I want to create automatically an "Oracle service bus project" and an "Oracle service bus configuration project" with scripts (ANT or Maven or ...) without using IDE, without using workshop or Eclipse. I want to create automatically (ANT or Maven) just a skeleton of an OSB project witch i can use after in workshop.
    I want to create 1 "Oracle service bus configuration project" with many "Oracle service bus project" automatically (ANT or Maven or scripts) witch i can use after in workshop. How to create a new Oracle OSB project automaticaly with script without IDE ? How can i do this ?
    I'm using Oracle service bus 10.3.1
    Thank you for your help.

    Thank you for your response,
    I do not want to just create the services (proxy services and business services) but I want to create a template for 40 OSB project with the same scripts ANT/Maven.
    Template="Oracle service bus configuration project" + "Oracle service bus project" + services of 40 OSB projects
    The goal is that I have more than 40 projects to create and just the name of the projects that changes (when I say the name of the project ie the name of the OSB project, the name of proxy services and the name of business services ).
    So I want to give my script (ANT/Maven) the name of 40 OSB project and the script must generate the skeleton of the 40 projects at once time and after generation of skeleton of the 40 project, I will import them in the workshop to add manually mapping and routing and other things that differs from one project to another.
    So i want to generate automatically a skeletons of 40 OSB projects using a script (ANT / Maven) and I give to the script juste the names of the 40 projects.
    I want to create a "Oracle service bus configuration project" and "Oracle service bus project" automatically of 40 OSB projects (ANT or Maven or scripts) witch i can use after in workshop.
    I want to create one 'template' of all 40 projects in the same time, with the same directory structure (Transforlation, Business services, proxy services, WSDL .....) and all 40 project have the same transport, just the names of projects and services witch changes and i can give to the script all names of projects and services and i can give also all WSDL.
    Regards,
    Tarik

  • How to create full new user with all privileges

    how to create full new user with all privileges?
    and how to delete existing users?
    Thanks in advance..

    Common solution is probably to use sudo for privilege elevation, wiki should help

  • My usual iCloud account has been locked out.  I tried the email link - didn't receive an email.   So I created a new Apple ID with another email but now I can't access my other Apple ID Mail, etc..

    My usual Apple ID/iCloud account has been locked out.  I tried the email link - didn't receive an email.   So I created a new Apple ID with another email but now I can't access my other Apple ID Mail, etc..  How do I get the Apple ID I want to use working again?   Help. 

    Hi JkeeneSoldano,
    Thank you for visiting Apple Support Communities.
    To regain access to your Apple ID, try to reset your password using one of these methods:
    Answer your security questions. Use these steps if you know the answers to your security questions.
    Use email authentication. We'll send you an email that you can use to change your password.
    Use two-step verification. If you set up two-step verification, you can use it to change your password. You just need your recovery key and a trusted device.
    From:
    If you forgot your Apple ID password - Apple Support
    If you need to use the email verification method but don't receive the reset email, see this link for more help:
    If you didn't receive your verification or reset email - Apple Support
    Best Regards,
    Jeremy

Maybe you are looking for