摘要:
A system and method for providing namespace related information. A namespace library operating in a computer provides a central source of namespace related information for handling XML documents. The namespace related information may be used by other computer application programs operating in the computer. The namespace related information provided by the namespace library is indexed by namespace. Many types of namespace related information may be associated with each namespace. The computer application programs may obtain namespace related information by querying the namespace library using a particular namespace.
摘要:
A system and method for obtaining and using namespace related information for presenting XML content. A namespace responsive application program determines one or more namespaces contained in an XML document and queries a namespace library to identify namespace related information, such as a solution related to the namespace. The identified namespace related information is retrieved and used for opening the XML document.
摘要:
Recovering text from a damaged electronic file by scanning an arbitrary stream of bytes and extracting text that is encoded as ASCII or Unicode. A byte of the damaged file is read. The read byte may be interpreted using the ASCII encoding standard. The read byte and the immediately preceding read byte may also be interpreted using the Unicode character encoding standard. The interpreted byte(s) is classified based upon the likelihood that the byte(s) is actually text for the particular character set rather than a control character, damaged data, or an element other than a textual character. The classifications are used to adjust a likelihood counter for each character type. The likelihood counter may be an integer value that indicates the probability that a text run has been detected. A text run is a sequence of bytes that is believed to be undamaged text. Each likelihood counter is then examined to determine whether there is a text run for one of the character types. If there is a text run, then the starting position of the text run is saved. The entire text run is output when the text run ends.