An Aspect-Oriented Model Based on Object-Oriented XML Document
JIANG Yan,GONG Yi-shan,WANG Guo-ren,XUE Hai-long
DOI: https://doi.org/10.3969/j.issn.2095-1922.2006.04.034
2006-01-01
Abstract:With the analysis of XML schema definitions,this article presents a method of XML document defining,and improves the XML document definitions,which are simply inclusive and object-oriented,and proves the poor code quality,crosscut concerns scattering and expanding elements with modification.By comparison with different characteristics of object-oriented and aspect-oriented,the paper added the object-oriented and aspect-oriented definitions to the XML schema,and an aspect-oriented model based on object-oriented XML document was built.Adding aspect,pointcut and advice to the XML schema,and extending XML Schema with object-oriented features,this method can define and extend elements with multiple inheritances,blocking,overloading and weaving,and define signs and models to present the definitions of aspect-oriented model based on object-oriented XML document.The results show that it reduces the code redundance of the XML document definitions,and obtain better modularity and portability.There is no denying that this method is feasible in practical use.