清单8从加载清单6的等价物并再次检查XML是否格式良好开始。
Listing 8 begins by loading the equivalent of Listing 6 and checking yet again if the XML is well-formed.
样例代码实现这个懒加载模式(清单 20)。
The sample code implements this lazy load pattern (Listing 20).
如果数据模型很大,或者需要向用户隐藏某些数据,可以从外部XML文件加载实例(如清单5所示)。
If you have a large data model, or you have data that needs to be hidden from users, you can load an instance from an external XML file (see Listing 5).
应用推荐