Merge: DOM XML
authorJean Privat <jean@pryen.org>
Tue, 30 Jun 2015 00:48:27 +0000 (20:48 -0400)
committerJean Privat <jean@pryen.org>
Tue, 30 Jun 2015 00:48:27 +0000 (20:48 -0400)
commit42bd6e99d8101c046536ee5f428551d644d22ce4
tree4e5b8eb57dacd2df87ef55b1934e5e2aea4116e1
parent5a6bb2307957fce58ed25a6b051aa59ec7fcd27c
parentf13aea9769c4b4d8aae160b03f2867f9c7bc548a
Merge: DOM XML

Hi,

As Nit programmers, we might have to parse XML sometimes for one use or another.

We already had a SAX parser in library for the cases when one wanted to parse a long XML document in a memory-conscious way, often at the expense of the simplicity of the end-program.

This PR adds a very simple DOM parser that will need to be improved and robustified later, but who right now does the basics and should parse valid xml documents.

There is still a long way to get a full spec-compliant XML parser, but this is one base.

Pull-Request: #1448
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>