Title :
Relocating XML elements from preprocessed to unprocessed code
Author :
Cox, Anthony ; Clarke, Charles
Author_Institution :
Waterloo Univ., Ont., Canada
Abstract :
Transformations performed on source code by a preprocessor complicate the accurate reporting of information extracted to support program comprehension. Differences between the file input to the preprocessor and the output seen by parser-based analyzers creates a need for techniques to back-locate extracted information. To correctly map analysis results back to the preprocessor input files requires a record of the substitutions performed by the preprocessor. This record takes the form of a list, for each character, of the directives responsible for the character´s inclusion in the preprocessor´s output. We have developed algorithms to utilize the substitution history for the start and end tags of an XML element to correctly place the element in the unprocessed source. The use of substitution histories ensures that element relocation produces well-formed XML.
Keywords :
hypermedia markup languages; program processors; reverse engineering; software engineering; software maintenance; XML elements; element relocation; end tags; parser-based analyzers; preprocessed code; preprocessor; program comprehension; source code; start tags; substitution history; unprocessed code; Computer errors; Data mining; Data preprocessing; Databases; History; Information analysis; Performance analysis; Programming profession; Software engineering; XML;
Conference_Titel :
Program Comprehension, 2002. Proceedings. 10th International Workshop on
Print_ISBN :
0-7695-1495-2
DOI :
10.1109/WPC.2002.1021344