摘要
层次关系是一份XML文件的重要信息。根据XML文件的设计规则,当它要描述的数据具有层次关系时,这种层次关系应该反映在相应的标记里面。因此,如果我们对一份XML文件进行分析,对其标记的层次关系进行提取,那么我们就得到了这些标记所描述的数据之间的层次关系。使用SAX和DOM两种机制,分别对XML文件进行了分析并对其标记所反映的层次关系进行了提取。
The step relationship is the significant information of XML file. According to the designing regulation of XML file, when the data to be described have the step relationship, this kind of step relationship should be reflected in the relevant XML marks. Once an XML file is analyzed and the step relationship from marks in the file is extracted, the structure and arrangement of the data can be obtained. Through employing two kinds of mechanism SAX and DOM, the step relationship reflected in the XML mark is successfully extracted.
出处
《计算机工程与设计》
CSCD
2004年第12期2308-2311,共4页
Computer Engineering and Design