|
|
- # Ejercicio_11
- ### Introduccion
- Escribe en un fichero ".xml" utilizando DOM y lee el fichero de objetos **Persona.dat**
-
- ### Documentacion
- ##### LeerFichero
- ~~~
- 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;
- ~~~
-
- ##### Personas
- ~~~
- import java.io.Serializable;
- import java.util.ArrayList;
- ~~~
- ##### Persona
- ~~~
- import java.io.Serializable;
- ~~~
- ##### ParserXml
- ~~~
- import java.io.File;
- import java.io.IOException;
- import java.util.ArrayList;
- ~~~
-
- ##### EscribirXml
- ~~~
- 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;
- ~~~
-
-
-
-
- ### Salida por pantalla
-
- ### Documentos generados
- personas.xml
|