检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:董宁[1]
出 处:《电脑编程技巧与维护》2012年第18期68-69,共2页Computer Programming Skills & Maintenance
摘 要:在读取XML文件中的数据时经常会碰到数据类型不正确或元素属性不完整的情况。这会导致一系列的问题,如果正在利用序列化数据创建对象,碰到XML文件不完整的话,整个对象将无法创建。讨论了利用扩展方法侦测XML文件中缺失的元素,或属性避免因为部分数据丢失而整个对象都无法创建的情况。Incorrect data type or incomplete element attribute is often encountered when reading data in XML files. It will lead to a series of problems. When creating objects with serialized data, if XML file is incomplete, the entire object cannot be created. It is issued how to detect the missing element or attribute by using extension methods, in order to avoid the situation that entire object cannot be created because of missing part of data.
分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.225.56.185