というわけで、javaを使ってxamlファイルを作っています。これは Java の私のコード行です:
String newAnswer = e.getText().substring(0, 1) + "º" + e.getText().substring(2);
今
"º"
Googleによると、この部分はxamlファイルに度記号を作成する必要がありますが、xamlで出力ファイルを開くと、次のようになります: º
、部分を削除するamp;
と正しいですが、Kaxamlにその追加をやめてもらいたいですそもそも、これを達成する方法を誰かが知っていれば、それは大歓迎です。
これは私のxamlが保存される方法です
Utilities.saveXml(d, "Scherm1.xaml");
Utilities:
public static void saveXml(Document document, String fileName) throws IOException {
FileWriter writer;
XMLOutputter outputter;
outputter = new XMLOutputter();
outputter.setFormat(Format.getPrettyFormat());
writer = new FileWriter(fileName);
outputter.output(document, writer);
writer.flush();
writer.close();
}