Ausgabe von XML via SAX

schimpi

Grünschnabel
hallo leute

hab folgende problem: hab eine input.xml datei aus der ich alles auslese und ich mochte es in eine wohlgeformte output.xml datei speichern.
am bildschirm ausgeben mittels:

if(attrs.getLength() >= 1){
for (i=0; i<attrs.getLength();i++){
attributName = attrs.getQName(i);
attribute = attribute + "" + attributName + "=" + attrs.getValue(i) + "";
}
attribute = "" + attribute;
}
tagElement = "<" + qName + attribute + ">";
println(tagElement);

funktioniert. jedoch wie kann ich jetzt diese daten in diese output.xml datei speichern?

ich danke im voraus fur euere tipps.
 
Zurück