The Research of Tree Structure Based on XML and Relational Database
Liang Fang · Microcomputer applications · 2007
This paper introduces a measure of storing,showing and vindicating the tree structure .We store the tree structure's information to the relational database by the data structure of binary chained list ,and the server translates it from database!to a format of XML ,then the client loads it to DOM and traverses recursively for each node of DOM by arithmetic,and creates a tree which has the same structure with the XML document in the way of HTML.To vindicate this tree,we set many JavaScript events for it ,and they can build the XML information for node maintenance,in the end ,the server parses the XML ,makes a series of SQL sentences and submits them to database.