计算机工程
計算機工程
계산궤공정
COMPUTER ENGINEERING
2008年
4期
101-103
,共3页
扩展标记语言%数据更新%SAX解析%DOM解析
擴展標記語言%數據更新%SAX解析%DOM解析
확전표기어언%수거경신%SAX해석%DOM해석
为了实现对XML文档的数据更新,提出一组实用算法.该算法利用简单应用编程接口扩展标记语言(SAX)解析和文件对象模型(DOM)解析,使其优势互补.应用SAX解析器将大XML文档编码成线性数据结构存储,该线性数据结构与原XML文档具有同构特性,因此,线性结构存储的数据可以无损还原为原XML文档.线性数据结构支持Xpath查询,在查询得到的局部数据上应用DOM方法进行数据更新.更新后的数据再转换为XML文档.该组算法对大XML文档的数据更新实用且有效,而且对大XML文档的其他数据处理也有一定的实用价值.
為瞭實現對XML文檔的數據更新,提齣一組實用算法.該算法利用簡單應用編程接口擴展標記語言(SAX)解析和文件對象模型(DOM)解析,使其優勢互補.應用SAX解析器將大XML文檔編碼成線性數據結構存儲,該線性數據結構與原XML文檔具有同構特性,因此,線性結構存儲的數據可以無損還原為原XML文檔.線性數據結構支持Xpath查詢,在查詢得到的跼部數據上應用DOM方法進行數據更新.更新後的數據再轉換為XML文檔.該組算法對大XML文檔的數據更新實用且有效,而且對大XML文檔的其他數據處理也有一定的實用價值.
위료실현대XML문당적수거경신,제출일조실용산법.해산법이용간단응용편정접구확전표기어언(SAX)해석화문건대상모형(DOM)해석,사기우세호보.응용SAX해석기장대XML문당편마성선성수거결구존저,해선성수거결구여원XML문당구유동구특성,인차,선성결구존저적수거가이무손환원위원XML문당.선성수거결구지지Xpath사순,재사순득도적국부수거상응용DOM방법진행수거경신.경신후적수거재전환위XML문당.해조산법대대XML문당적수거경신실용차유효,이차대대XML문당적기타수거처리야유일정적실용개치.