{'fraction_non_alphanumeric': 0.0211864406779661, 'fraction_numerical': 0.0, 'mean_word_length': 4.717741935483871, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Schema based enhancement of XPath engine

While a streaming-XPath engine provides a more efficient XPath evaluation performance than a DOM based engine, it still requires time to parse a whole XML document at least once. Taking into consideration that XPath is used to extract data from Web service messages, the target element may be in the first part of documents, such as the SOAP headers. Therefore, it is wasteful to parse a document all the way to the end. We present a new XPath engine named "XScope", which eliminates parsing XML documents by schema information. In this paper, we describe the XScope approach, then evaluate its performance and show that the engine works effectively in Web services.