Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
XmlSerializer に設定できるプロパティを確認するにはどうすればよいですか?
特に改行とインデントを設定したいです。その例を示した投稿を見つけましたが、サポートされていないプロパティの例外が発生しました。
Android で XmlSerializer を使用する場合は、次の get 改行とインデントを使用する必要があります。
xmlSerializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true);