Xml document will be automatically converted into a document conversion method and apparatus owl

The present invention discloses a document is automatically converted to XML conversion method OWL document, wherein the XML document comprises generating XML-based? Schema Tree; XML on the generated? Schema tree traversal depth to obtain XML? Schema tree structure and an XML document based on XML? Schema attribute node structure of each tree assignment, the assignment after the tree is called XML? Element tree; based on the XML? Element tree and the corresponding body generates OWL document. The invention proposes XML? Element tree concept, and through XML? Element as a tree structure of an XML document into an intermediate to OWL document, so that the present invention can be performed with high accuracy converted automatically without the need for human intervention.