Skipping nodes with sax

前端 未结 3 2098
耶瑟儿~
耶瑟儿~ 2021-01-19 04:31

Is it possible to skip nodes when parsing and how, does this skippedEntity have anything to do with it?

Consider this XML :



        
3条回答
  •  情书的邮戳
    2021-01-19 05:32

    Unfortunately I don't have privileges to comment on other answers. I just wanted to correct "Wayne"s incorrect assertion that Blaise's answer "doesn't work". I have tried this code and it does indeed output all the values from the example data except that for Sodium - which I think is exactly what the OP was seeking.

提交回复
热议问题