Can't seen to use insertBefore

Discussion in 'XML' started by Horny Porno-thologist, Jan 28, 2004.

  1. Hi all,
    I'm trying to use insertBefore to create opening/closing tags in my XML,
    but to no avail - it says something
    like "parent node cannot be accessed".

    Anyway, this is what I'm trying to do:

    convert something like this:

    <?xml= .... etc>
    <Food>
    <Yellow>Butter</Yellow>
    <White>Marzipan</White>
    </Food>

    to:

    <?xml= .... etc>
    <Colored_Food>
    <Food>
    <Yellow>Butter</Yellow>
    <White>Marzipan</White>
    </Food>
    </Colored_Food>

    Help please!

    --

    Thanks
    Paul
    ------------------------------------------------
    Paul's Squalid World at
    http://www.paullee.com
     
    Horny Porno-thologist, Jan 28, 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. Achille

    URGENT: InsertBefore

    Achille, Nov 3, 2004, in forum: Java
    Replies:
    1
    Views:
    414
    Martin Honnen
    Nov 3, 2004
  2. NotGiven
    Replies:
    0
    Views:
    509
    NotGiven
    Sep 17, 2004
  3. Dante

    Need help with insertBefore

    Dante, Dec 24, 2003, in forum: Javascript
    Replies:
    3
    Views:
    115
    Dante
    Dec 24, 2003
  4. NotGiven
    Replies:
    0
    Views:
    96
    NotGiven
    Sep 16, 2004
  5. DL
    Replies:
    3
    Views:
    130
Loading...

Share This Page