Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    [JAVA+xml] Operazioni con liste

    Sto lavorando a un progetto che elabora un documento XML con java, e ho una lista che contiene tutti i nodi di un certo tipo:

    NodeList list1 = ((Element)child).getElementsByTagName("esami1");

    A questa lista voglio poi aggiungere anche tutti i nodi di un altro tipo: "esami2" come posso fare?

    Se può servire, il DTD su cui lavoro è schematicamente così:

    <!ELEMENT STUDENTI (datianag, (esami1)*, (esami2)*)*>

    grazie
    .r.
    AZYMUT official band site


    i'm not dead yet...
    ..but i'm working on it

  2. #2

    niente.......

    ....mi rispondo da solo:

    addAll(Collection c)
    Appends all of the elements in the specified Collection to the end of this Vector, in the order that they are returned by the specified Collection's Iterator.


    addAll(int index, Collection c)
    Inserts all of the elements in in the specified Collection into this Vector at the specified position.


    java.sun.com

    ciao
    .r.
    AZYMUT official band site


    i'm not dead yet...
    ..but i'm working on it

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.