parsing - How do you build an XML parser? -
can direct me tutorial in building xml parser? realize languages have libraries task, i'm interested in learning grammar of xml , theory behind how parsers work. i've tried searching explains have been unable find anything.
i think there isn't enough demand people write such tutorials; , commented, don't think general parser techniques of help. xml parsers not usual lex+yacc approach works (lexer part more parser, that's worth).
i know production ready xml parsers beasts, might best off starting reading one. java has few examples, , xmlpull might amongst simplest proper parsers. woodstox , xerces compliant ("full") parsers, large codebase, not light reading. handle xml parser should, might educational too. beware half-backed fake parsers skip checks things xml specification mandates (javolution example checks few things, example none of character validity checks, or attribute name duplications).
another thing read xml specification. 1 of well-written specifications imo; accurate , complete, if not light reading. considering covers, it's not long.
Comments
Post a Comment