axing-xml-parser: Don't allow multiple root elements
authorShaun McCance <shaunm@gnome.org>
Sat, 22 Dec 2012 15:12:31 +0000 (10:12 -0500)
committerShaun McCance <shaunm@gnome.org>
Sat, 22 Dec 2012 15:12:31 +0000 (10:12 -0500)
commit9c06b51f15346465dfbdc94c49eb9e5999944a6a
tree75a5379446c0c6566e2c7da7d66b41a9d0817ff8
parent6f566b25ee6a3ed9798e008a14754aae3492edf5
axing-xml-parser: Don't allow multiple root elements

I changed PARSER_STATE_ROOT to _PROLOG and _EPILOG to better
track this. Contexts that allow well-balanced fragments still
use PARSER_STATE_TEXT for init_state.

This commit also adds some tests files I forgot to add from
previous commits.
axing-xml-parser.c
tests/results/doctype14.txt [new file with mode: 0644]
tests/results/element10.txt [new file with mode: 0644]
tests/results/element11.txt [new file with mode: 0644]
tests/results/entities15.txt [new file with mode: 0644]
tests/xml/doctype14.xml [new file with mode: 0644]
tests/xml/element10.xml [new file with mode: 0644]
tests/xml/element11.xml [new file with mode: 0644]
tests/xml/entities15.xml [new file with mode: 0644]