Hi Leute,
hab folgendes Problem mit dem SAXBuilder:
builder = new SAXBuilder();
doc = builder.build(new File(xmlFile));
ich lese also ein xmlFile in ein Document ein.
Auszug Original XML:
Code:
<TEI.2>
<teiHeader>
<fileDesc>
<titleStmt>
<title type="main">IT 4 You</title>
<author>Uitz, Böhm, Hoffman</author>
</titleStmt>
Auszug nach dem einlesen:
Code:
<TEI.2 TEIform="TEI.2">
<teiHeader type="text" status="new" TEIform="teiHeader">
<fileDesc TEIform="fileDesc">
<titleStmt TEIform="titleStmt">
<title type="main" TEIform="title">IT 4 You</title>
<author TEIform="author">Uitz, B? Hoffman</author>
</titleStmt>
Man sieht das er immer das Attribut "TEIform", "type",... einfügt obwohl ich gar kein
Attribut hinzugefügt habe.
Was kann da der Fehler sein?