「Simple XML」の版間の差分
ナビゲーションに移動
検索に移動
| (同じ利用者による、間の2版が非表示) | |||
| 1行目: | 1行目: | ||
| − | ==Simple XML== | + | ==[[Simple XML]]== |
| − | [[Java]][[XML]] | + | [[Java]] | [[XML]] | |
*http://simple.sourceforge.net/home.php | *http://simple.sourceforge.net/home.php | ||
| − | ==Tips== | + | ==[[Tips]]== |
===デシアライズ時に要素を無視する=== | ===デシアライズ時に要素を無視する=== | ||
*以下のようなエラー | *以下のようなエラー | ||
simpleframework.xml.core.ElementException: Element 'Another' does not have a | simpleframework.xml.core.ElementException: Element 'Another' does not have a | ||
match in class blah.blah.Blah at line 1 | match in class blah.blah.Blah at line 1 | ||
| − | =====XML===== | + | =====[[XML]]===== |
<Root> | <Root> | ||
<Element>Used</Element> | <Element>Used</Element> | ||
2022年5月19日 (木) 15:06時点における最新版
Simple XML
Tips
デシアライズ時に要素を無視する
- 以下のようなエラー
simpleframework.xml.core.ElementException: Element 'Another' does not have a
match in class blah.blah.Blah at line 1
XML
<Root> <Element>Used</Element> <Another>Not used</Another> <Root>
POJO
@Root(strict=false)
class Root{
@Element
private String element;
}
© 2006 矢木浩人