import node into document

Discussion in 'Python' started by Ajay, Aug 15, 2004.

  1. Ajay

    Ajay Guest

    hi!

    I have two documents 'policy' and 'dataschema'.
    how can i add a node (say, noded) from 'dataschema' as a child to a
    particular node in 'policy' (say nodep)
    java has importNode, is there an equivalent function in Python. if not, how
    do i go about doing it?
    just doing nodep.appendChild(noded) throws an error saying they are of
    different documents
    doing noded.ownerDocument = nodep.ownerDocument also throws an error saying
    ownerDocument is a read-only object.

    how do i then do the import?

    thanks

    cheers




    ----------------------------------------------------------------
    This message was sent using IMP, the Internet Messaging Program.
     
    Ajay, Aug 15, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    1,672
  2. mike
    Replies:
    3
    Views:
    515
    Thomas Weidenfeller
    Jan 24, 2005
  3. mike
    Replies:
    6
    Views:
    1,353
    Andy Dingley
    Oct 14, 2004
  4. Ajay

    importing node into document

    Ajay, Aug 14, 2004, in forum: Python
    Replies:
    1
    Views:
    310
    Ivan Herman
    Aug 15, 2004
  5. Tjerk Wolterink
    Replies:
    2
    Views:
    1,521
    Dimitre Novatchev
    Aug 24, 2006
Loading...

Share This Page