Browse > Article
http://dx.doi.org/10.6109/jkiice.2008.12.12.2153

A Parsing Method for an Incomplete XML  

Cho, Kyung-Ryong (순천대학교 정보통신공학부)
Cho, Sung-Eon (순천대학교 정보통신공학부)
Park, Jang-Woo (순천대학교 정보통신공학부)
Abstract
XML is one of standard web languages. XML has a syntax architecture consisted of tags, which are used to descript contents and structures of a XML document. In XML documents, missing of markup tag is one of common factors generating incomplete inputs. Usually, editors will recognize incomplete inputs as syntax errors. And so, when editors find them, they will highlight lines in which syntax errors happened, and execute appropriate error handling routines. But, there are no more parsing actions. In this paper, we propose a method to recognize incomplete input strings and keep parsing phases going. To recognize pars missed grammatically in incomplete inputs and create them newly, we use an expanding parsing table. It includes additional parsing actions for newly generated input symbols. Through the information, incomplete inputs will be completed and parsing steps will be finished successively. Therefore, users can be assured that they make always correct XML documents, even if inputs are incomplete, and can not be nervous about input faults.
Keywords
XML DTD; Parsing Method;
Citations & Related Records
연도 인용수 순위
  • Reference
1 Wagner A., and Graham S., "Incremental analysis of real programing languages.", Proceedings of ACM PLDI '97, 1997
2 Reckers J. and Koorn W., "Substring parsing for arbitrary context-free grammars" ACM SIGPLAN Notices,, 26(5), pp.59-66, 1991
3 Grune D., Jacobs C., Parsing Techniques: A Practical Guide, Ellis Horwood Limited, 1998
4 Jalili F. and Gallier J., "Building Friendly Parsers", Proceedings of 9th ACM POPL, pp.196-206, 1982
5 Snelting G., "How to build LR parsers which accept incomplete input", ACM SIGPLAN Notices, vol. 25, no. 4, pp.83-89, 1990   DOI
6 Aho, A.V., Sethi R., and Ullman J. D., Compilers: Principles, Techniques and Tools, Addison-Wesley, 1986
7 Nozohoor-Farshi R., "GLR parsing for -grammars.", Generalized LR Parsing, pp.61-75, Kluwer Academic Pubkishers, 1991
8 Larchéveque J.M., "Optimal Incremental Parsing", ACM TOPLAS, Vol.17 ,No.1, pp.1-15, 1995   DOI
9 Bates, J. and Lavie A.,"Recognizing Substring of LR(K) Languages in Linear Time", ACM TOPLAS, Vol.16, No.3, pp.1051-1077, 1994   DOI   ScienceOn