]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Parse XML docs using a reader, don't load the whole DOM at memory.
authorpcarana <pc.moreno2099@gmail.com>
Tue, 10 Dec 2019 21:03:31 +0000 (15:03 -0600)
committerpcarana <pc.moreno2099@gmail.com>
Tue, 10 Dec 2019 21:03:31 +0000 (15:03 -0600)
commit7903c81e82f0e1f83f169d610ad536bc1c3042d3
tree7777b08698f2a6eb463241d3e80681398646afb7
parent414418b979b6aeed37969453d96ecb94bf173ad7
Parse XML docs using a reader, don't load the whole DOM at memory.

+Use 'libxml/xmlreader.h' functions to validate and parse XML documents, this decreases the use of memory that was being allocated using other functions.
+Update the logic at 'rrdp_parser.c' to parse a document element by element, using an 'xmlTextReader'.
+Update unit test to use the XML text reader.
src/rrdp/rrdp_objects.c
src/rrdp/rrdp_objects.h
src/rrdp/rrdp_parser.c
src/xml/relax_ng.c
src/xml/relax_ng.h
test/xml_test.c