New Interface Complexity Metric on XML Schema

With increasing usage of a web services today, user required to consecrate reasoning energy to learning the complexities of the interface as opposed to the content. Interface complexity measures the degree of complexity encoun-tered between the user and digital medium like website. This paper presents a New Interface Complexity (NIC) Metric, which partially based on existing schema metrics to weigh human insight of recent service interface; taking into account elements and attributes of XML documents implemented in World Wide Web Consortium (W3C) XML Schema (WXS) to reduce the structure affecting the effort for comprehending schema documents. The NIC metric is able to draw conclusions about the perceived qualities: interoperability, ex-tensibility and flexibility. It was discovered that there are significant correla-tions between NIC metric and existing measures. Automating, this practice would be beneficial to developers and designers, as it would help to provide useful feedback in software project design to check the quality of documents for easy maintenance and properly used of XML data for distributed applications.


Introduction
order for XML document to provide a shared understanding about data exchange between applications XML documents require well design of XML schema [5].
In XML background data representations are made by designing schemata which can be in different XML schema languages.

Review of Related Works
In the software industry today researchers have focused on measuring complexity of service description like any other software artifact on size, data, building components, mapping process and qualities. Regardless the context usage; much of the success of individual web service depends on the quality of its interface because in practice it is the only information source consumers have available when reasoning about the functionality offered by the service [13]. XML schema documents have many measurable attributes to quantify different aspect of complexity and have streamlined complex applications in web services into lightweight [14]. For examples, [15] proposed metrics based on quality: according to these metrics, the quality of XML documents has great impact on the design quality of its schema document therefore their metrics measured the reusable, extensible and understandable of XML schema documents in web engineering process respectively and provided valuable information for improving the quality of XML based system.
A set of metrics of XML schema for both manual and automatic mapping processes was developed [16]. The metrics based on well-established metrics analyzed the complexity and mapping effort of a business documents standards prior to actual mapping process. With XML document typically large, there is need to find ways of improving their ease of use and maintainability by keeping their complexity low, [17] focused on different ways of keeping complexity low by determining the complexity of XML documents based on various syntactic and structural aspects of the documents. The findings is on documents with higher nesting levels, had more weights and could be viewed more complicated as compared to the documents with lower nesting level. References [18] and [19] formulated a metric that aimed at measuring complexity of an XML schema through its internal structure and recursion. They further developed measure adopted metrics on communication information theory [20] and ARS metric [21] targeted at finding the structural complexity of DTD schema language [22].
Their metric is more realistic and could be useful in differentiating DTDs of the same size.
A study that assesses human perception on some recent services interface complexity metrics was presented by group of authors [23] following the metrics suite [24]. The metric suggests that a service that is not complex for a software application in terms of time and space required to analyze it, will not be necessarily well designed in terms of best practices for designing web services. An interface complexity measure was designed that takes into account-interaction complexity: an important aspect of complexity of a component-based system [25]. The metric showed that the effect of this parameter on complexity of a component-based system is quite significant and appear to be logical to fits the intuitive understanding. Reviewed was done on existing schema metrics based on different XML schema languages [26] to show how recent each metric is, its effectiveness, how good and comprehensive complexity measure the metric has; Another metrics developed improved schema entropy and interface complexity adopted DTD metrics to measure complexity of schemas for the assessment and improved quality of software product using RNG [27]. The metrics assist application developers in writing less lengthy codes by ensuring that a given XML documents satisfies the desired data transported among applications.

The Proposed Metric (NICWXS)
Following the formulated metrics [27] which measure the assessment and improved quality of software product using RNG, this metric is presented as New Interface Complexity (NIC) metric using WXS schema language and then likened with existing measure. The metric is defined as: where NEC is the number of equivalence class. FOC i is the frequency occurrence of class. NE is the total number of element nodes in the graph. NA is the number of attribute an element of WXS has in a particular XML documents.

Algorithm for the NICWXS Metric
The NIC metric is based on the effort required in understanding the XML documents and the information contained in the WSDL.

Data Flow Diagram for NICWXS Metric
The data flow diagram showed the process in which 2 FOC i is divided by the NE and then adds NA to it as seen in Figure 1.

Illustration of NICWXS Metric
Demonstration of NIC WXS metric is given as sample schema Manuscript SD/No 34 in Appendix 1 as Figure A1 and the rest of the schemas are provided as web links in Appendix 5. The directed graph representation of the schema is given in Appendix 2 as Figure A2 and from the directed graph representation of this schema; evaluation of the equivalence classes is labelled in Appendix 3 as Figure  A3. The empirical validation of the resulting listing is calculated from Equation (1); the analysis goes thus:  Analysis of WXS schema Manuscript.

Results and Discussions of NIC Metric
Discussion on results obtained from a total number of sixty-five (65) schemas acquired from WSDL implemented in WXS is shown in Appendix 4 as Table  A1; listings and directed graph representations showed the complexity values between NIC WXS metric and DSERS WXS (existing measure). The applicability of NIC WXS and DSERS WXS revealed the effort required in understanding the information contents of the metric when implemented in WXS. It was observed that some schemas had similar NE yet their complexity values were different because their schema had more diversity in their class elements. At the same time some schema had equal elements and equal complexity values because they had equal fan-in and fan-out values, same listings and same directed graph representations therefore, complexity value for each metric is known based on their element count; more so, more element can contain more repetition. The comparative study of NIC WXS and DSERS WXS is depicted in the graph shown in Figure 2. Review of this graph disclosed that NA is closely related and considered in NIC WXS metric than DSERS WXS which differentiate their complexity values therefore; schema documents with many inheritance features give greater complexity values due to high degree of extensibility, interoperability and flexibility qualities.

Conclusion
The NIC WXS metric made more sensitive measurement in understanding the information content contained in the schema documents. The applicability of NIC WXS metric was evaluated by different schemas from WSDL implemented in WXS to prove its robustness and effectiveness. The results showed that NIC WXS had greater complexity values because of many inheritance features therefore, exhibited the complexity of schemas very clearly and accurately with high degree of extensibility, interoperability and flexibility thus, reduced maintenance effort and this made it suitable measure. However, NIC WXS metric can be likened with other schema languages to see the effectiveness of this metric; therefore the future work may be geared towards this aspect.