{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

xmlattribute - name=null value=null public...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// Date: 4/25/02 // Author: Paul Robertson, Copyright (c) DOLL, Inc. // File: XMLAttribute.java // Description: XML Basic stream I/O support // Stream for reading and writing XML package mit16_410_13; import java.util.Vector; import java.io.InputStream; import java.io.PrintStream; import java.io.EOFException; import java.io.IOException; import java.io.FileInputStream; public class XMLAttribute { String name; String value; public XMLAttribute ()
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { name=null; value=null; } public XMLAttribute (String nam, String val) { name=nam; value=val; } public String getName () { return name; } public String getValue () { return value; } void setName (String nam) { name=nam; } void setValue (String val) { value=val; } public void writeAttribute (XMLStream strm) { PrintStream ostrm=strm.getPrintStream(); ostrm.print(name+"=\""+value+"\""); } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online