GEF 轉(zhuǎn)存 XML
因為對GEF編輯器內(nèi)容進(jìn)行保存時候,使用XML作為保存中間語言。
編輯完成,CTRL+S 保存文件。
如果未保存之前對GEF 對象進(jìn)行刪除操作,會拋出異常:
org.w3c.dom.DOMException: NOT_FOUND_ERR: An attempt is made to reference a node in a context where it does not exist.
原因:為保存之前xml中節(jié)點是空的。
posted @ 2011-11-10 11:34 Evanq 閱讀(477) | 評論 (0) | 編輯 收藏