Algorithm for XML Schema Extraction Based on Node Relative Path

Schema extracting for XML is broadly used in the field of data storing, query optimization and heterogeneous data integration. This paper presents a method based on noderelative path for extracting XML Schema. The new approachfinishes extracting schema by scanning XML document onceoverand extracting nodes and relative paths. It can overcomethe defects including circles and Lack of sides. This approach requires lower cost and has more efficiency for the final schema information.