vigliom 6b851724de | 2 years ago | |
---|---|---|
bin | 2 years ago | |
src | 2 years ago | |
.classpath | 2 years ago | |
.project | 2 years ago | |
README.md | 2 years ago | |
persona2.dat | 2 years ago | |
personas.xml | 2 years ago |
Escribe en un fichero ".xml" utilizando DOM y lee el fichero de objetos Persona.dat
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.io.Serializable;
import java.util.ArrayList;
import java.io.Serializable;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.io.File;
import java.util.ArrayList;
import javax.xml.parsers.*;
import javax.xml.transform.*;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.Attr;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
personas.xml