summaryrefslogtreecommitdiff
path: root/bindings/xml/xmlparser.c
Commit message (Collapse)AuthorAgeFilesLines
* Beginnings of an expat binding -- NOT FUNCTIONAL YETDaniel Silverstone2012-03-241-1367/+0
| | | | svn path=/trunk/libdom/; revision=13594
* Merge branches/jmb/dom-alloc-purge back to trunkJohn Mark Bell2011-12-211-39/+49
| | | | svn path=/trunk/libdom/; revision=13316
* s/struct dom_string/dom_string/gJohn Mark Bell2011-04-071-11/+11
| | | | svn path=/trunk/libdom/; revision=12172
* Provide mechanism for binding/client to define the features a document ↵John Mark Bell2010-12-061-0/+1
| | | | | | | | | object should support. Utilise this to decide whether to create a raw Document or an HTMLDocument instance. Disable the above decision, as the HTMLDocument implementation is garbage svn path=/trunk/libdom/; revision=11025
* Simplify DOMImplementation API by replacing dom_strings with const char *John Mark Bell2010-12-061-39/+6
| | | | svn path=/trunk/libdom/; revision=11024
* Remove bootstrap infrastructure, and just make dom_implementation a stub.John Mark Bell2010-12-051-34/+2
| | | | | | We only support a single implementation, so all the registry and implementation list stuff is totally unnecesary and overcomplex svn path=/trunk/dom/; revision=11017
* Sync with modified libwapcaplet API: 11 additional DOM Level1 testsuite ↵John Mark Bell2010-08-261-10/+5
| | | | | | failures. Most importantly, it actually compiles now. svn path=/trunk/dom/; revision=10717
* Merge the Events module (branches/struggleyb/libdom-events) back to trunk. :)Bo Yang2009-08-131-2/+4
| | | | svn path=/trunk/dom/; revision=9236
* Merge the branches/struggleyb/libdom-remain back to trunk.Bo Yang2009-08-111-42/+91
| | | | svn path=/trunk/dom/; revision=9191
* Squash warningsJohn Mark Bell2009-03-251-7/+7
| | | | svn path=/trunk/dom/; revision=6885
* Rationalise dom_string (some consideration is required as to what happens ↵John Mark Bell2009-03-031-20/+16
| | | | | | | | | wrt interning -- lwc_strings should probably be used) Purge charset handling -- a) documents are always converted to utf-8 b) use parserutils for utf-8 handling Fix Hubbub binding to compile. svn path=/trunk/dom/; revision=6682
* Fix up names of xml binding error enum valuesJohn Mark Bell2007-11-041-6/+6
| | | | svn path=/trunk/dom/; revision=3645
* Fix up bindings buildsystem to permit multiple bindings to be built -- quite ↵John Mark Bell2007-11-041-96/+96
| | | | | | | | | why this wasn't done in the first place is currently beyond me. Tidy up XML binding -- ensure all public API is prefixed dom_xml_ to avoid confusion, remove xml_alloc (it's pointless), and move xml_msg to <dom/functypes.h> (as dom_msg, as it's more useful there) Fix up testobject to compile once more svn path=/trunk/dom/; revision=3643
* DOM Strings are now capable of containing either UTF-8 or UTF-16 encoded data.John Mark Bell2007-09-301-0/+3
| | | | | | | | | | | | | | | | | | The charset used for strings within a document is specified at document creation time. Whilst it is possible to mix charsets within a document, it's not recommended. Things that need fixing: + dom_string_get_data() doesn't return the charset. Better would be to permit the client to request a charset for the data to be returned in. + Interned node name strings will break if the document is UTF-16 (dom_document_create()). In fact, these could quite happily be globals, rather than allocating a set for each document. + Other usage of dom string constructors need checking for sanity + DOM Strings need to gain more utility APIs (such as getting the character length of a string, string concatenation etc). svn path=/trunk/dom/; revision=3614
* Begin implementation of DocumentType classJohn Mark Bell2007-09-191-8/+12
| | | | | | | | | | | | | | | Remove dom_document_set_doctype() -- dom_node_insert_before() (and thus _append_child()) can be used to achieve the same effect. DocumentType node is now a child of the Document node (as it should have been) rather than a hidden field. Make dom_node_destroy() aware of DocumentType nodes potentially having no owner. Make dom_node_finalise() aware of it, too. Make dom_node_get_owner_document() return NULL for Document nodes, as per the spec. Fix bug in dom_node_insert_before() -- previously it failed to catch attempts to insert a second root element. Make dom_node_insert_before() handle DocumentType nodes appropriately. Implement XML binding's dom_implementation_create_document_type() function. Fix XML binding's dom_implementation_create_document() implementation to cope with changed API relating to doctype insertion. Fix up XML parser wrapper to cater for new doctype insertion mechanism. Also sprinkle some NULL about for paranoia purposes. svn path=/trunk/dom/; revision=3551
* More informational messagingJohn Mark Bell2007-09-181-6/+45
| | | | svn path=/trunk/dom/; revision=3550
* More logging of failed DOM calls.John Mark Bell2007-09-171-4/+45
| | | | | | Fix segfault caused by failure to add attribute to element svn path=/trunk/dom/; revision=3547
* Fix potential segfaultsJohn Mark Bell2007-09-171-2/+4
| | | | svn path=/trunk/dom/; revision=3544
* Add callback for informational messaging (with variable severity, a la syslog)John Mark Bell2007-09-161-42/+78
| | | | | | | Use it to log interesting things during parsing. This needs to grow some i18n at some point. svn path=/trunk/dom/; revision=3540
* Sort out somewhat messy object construction.John Mark Bell2007-07-281-3/+3
| | | | | | We now have explicit types for all classes (rather than using the parent class for those which inherit but add no extra data content). svn path=/trunk/dom/; revision=3465
* Add ability to set a document's doctype after the document has been createdJohn Mark Bell2007-07-261-3/+8
| | | | svn path=/trunk/dom/; revision=3462
* Further work on libxml binding.John Mark Bell2007-07-221-29/+325
| | | | | | | This is now has support for enough node types to allow the XML-based testsuite to run sensibly. (The core library is missing a bunch of functionality that the testsuite requires, like the creation of nodes) Insertion of DocumentType nodes into a Document is mostly there -- the remainder is waiting on a suitable API in the core library. svn path=/trunk/dom/; revision=3461
* More libxml binding workJohn Mark Bell2007-07-221-45/+228
| | | | svn path=/trunk/dom/; revision=3458
* Add xml_parser_add_element_node; builds DOM Elements from XML_ELEMENT_NODEs.John Mark Bell2007-07-161-7/+122
| | | | svn path=/trunk/dom/; revision=3426
* Fix libxml binding buildsystem target filename (previously overwrote core ↵John Mark Bell2007-07-151-27/+224
| | | | | | | | | library) Wrap all libxml SAX callbacks -- if we register our own SAX handler, our own userdata is used, which (obviously) breaks the internal handlers. Make xml_parser_add_node print the node type being added to the console (this is temporary, while I work out what's needed here). svn path=/trunk/dom/; revision=3418
* Further libxml binding work.John Mark Bell2007-07-151-6/+170
| | | | svn path=/trunk/dom/; revision=3416
* Populate dom.hJohn Mark Bell2007-07-141-37/+144
| | | | | | Beginnings of xmlparser SAX handling. svn path=/trunk/dom/; revision=3413
* LibXML 2 binding for libdom.John Mark Bell2007-07-141-0/+187
This is mostly stub, at present svn path=/trunk/dom/; revision=3412