1. 03 Jul, 2013 1 commit
  2. 18 Jun, 2013 1 commit
    • Kjell Ahlstedt's avatar
      Examples dom_parse_entities and dom_parser: Fix when LC_ALL=C. · 1c56ed11
      Kjell Ahlstedt authored
      * examples/testutilities.[h|cc]: New files with class CatchConvertError.
      * examples/Makefile.am: Add testutilities.[h|cc].
      * examples/dom_parse_entities/main.cc:
      * examples/dom_parser/main.cc: Change some strings from Glib::ustring to
      CatchConvertError before they are printed. It catches Glib::ConvertError
      locally. 'make check' can pass even if the global locale does not support all
      printed characters. Bug #702136.
      1c56ed11
  3. 04 Nov, 2012 1 commit
  4. 25 Oct, 2012 1 commit
  5. 10 Oct, 2012 2 commits
  6. 08 Oct, 2012 1 commit
  7. 28 Aug, 2012 2 commits
    • Kjell Ahlstedt's avatar
      Add XInclude processing. · 87e6b75f
      Kjell Ahlstedt authored
      * Makefile.am: Add XIncludeStart and XIncludeEnd nodes.
      * examples/Makefile.am: Add dom_xinclude example.
      * examples/README: Add dom_xinclude example and other missing examples.
      * examples/dom_xinclude/example.xml:
      * examples/dom_xinclude/include1.txt:
      * examples/dom_xinclude/include2.xml:
      * examples/dom_xinclude/main.cc: New files.
      * libxml++/document.[h|cc]: Add process_xinclude().
      * libxml++/libxml++.h: Add new header files.
      * libxml++/nodes/node.cc: create_wrapper(): Create XIncludeStart and
      XIncludeEnd nodes.
      * libxml++/nodes/xincludeend.[h|cc]:
      * libxml++/nodes/xincludestart.[h|cc]: New files.
      * .gitignore: Ignore /examples/dom_xinclude/dom_xinclude. Bug #338521.
      87e6b75f
    • Kjell Ahlstedt's avatar
      Parser: Make it thread-safe. · e662e32f
      Kjell Ahlstedt authored
      * configure.ac: Require glibmm-2.4 >= 2.32.0.
      * libxml++/parsers/parser.cc: Protect all accesses to extra_parser_data with
      a Glib::Threads::Mutex. Bug #681467.
      e662e32f
  8. 10 Aug, 2012 1 commit
  9. 09 Aug, 2012 2 commits
  10. 07 Aug, 2012 3 commits
  11. 05 Aug, 2012 2 commits
  12. 02 Aug, 2012 1 commit
    • Kjell Ahlstedt's avatar
      Element, Node: Improve the error handling. · a0483871
      Kjell Ahlstedt authored
      * libxml++/nodes/element.[h|cc]:
      * libxml++/nodes/node.[h|cc]: Check more return codes from libxml2 functions.
      Improve the description of errors in the reference documentation. Bug #635846.
      a0483871
  13. 21 Jun, 2012 1 commit
  14. 19 Jun, 2012 2 commits
  15. 20 Apr, 2012 1 commit
    • Kjell Ahlstedt's avatar
      Node: Add functions eval_to_[boolean|number|string](). · 478a5bd5
      Kjell Ahlstedt authored
      * examples/dom_xpath/example.xml: Add an element with numeric value.
      * examples/dom_xpath/main.cc: Add calls to the new functions.
      * libxml++/nodes/node.[h|cc]:
      Add the functions eval_to_[boolean|number|string](). Bug #316244.
      478a5bd5
  16. 19 Apr, 2012 2 commits
    • Kjell Ahlstedt's avatar
      Node: Make the previous fix thread-safe. · b4479ba8
      Kjell Ahlstedt authored
      * libxml++/nodes/node.cc: Delete the C++ wrapper of a deleted attribute node
      without using xmlDeregisterNodeDefault. Bug #672992 comments 9-12.
      b4479ba8
    • Kjell Ahlstedt's avatar
      Node: Fix memory problems in import_node(). · 4022ac88
      Kjell Ahlstedt authored
      * libxml++/nodes/node.[h|cc]: Return added_node instead of imported_node,
      which libxml2 may delete. Delete the C++ wrapper of a deleted attribute node.
      * examples/import_node/example[1|2].xml:
      * examples/import_node/main.cc: Import attributes and a text node which is
      merged with an existing text node. Bug #672992.
      4022ac88
  17. 12 Apr, 2012 1 commit
  18. 30 Mar, 2012 1 commit
  19. 22 Mar, 2012 1 commit
  20. 21 Mar, 2012 1 commit
  21. 20 Mar, 2012 2 commits
  22. 19 Mar, 2012 1 commit
    • Murray Cumming's avatar
      Node: Add get_first_child(). · e2e324bd
      Murray Cumming authored
      * libxml++/nodes/node.[h|cc]: This is like get_children(),
      but it returns only the first node, optionally returning
      the first one with a certain name.
      Based on a patch by Ilya Murav'jov in bug #648125 .
      e2e324bd
  23. 16 Feb, 2012 1 commit
  24. 15 Feb, 2012 5 commits
    • Kjell Ahlstedt's avatar
      Handle attributes with default values correctly. · e9fec24c
      Kjell Ahlstedt authored
      * libxml++/attributedeclaration.[h|cc]:
      * libxml++/attributenode.[h|cc]: New files.
      * Makefile.am:
      * libxml++/Makefile.am: Add the new files.
      * libxml++/libxml++.h: Add the new .h files.
      * docs/manual/libxml++_without_code.xml: Add AttributeDeclaration and
      AttributeNode in the list of node classes.
      * libxml++/attribute.[h|cc]: Make get_value() useful also for default values
      (XML_ATTRIBUTE_DECL). Fix set_value() for attributes in a namespace.
      * libxml++/nodes/element.[h|cc]: get_attribute(): Add description. Don't use
      xmlHasProp(), it ignores namespace.
      * libxml++/nodes/node.cc: get_namespace_prefix(), get_namespace_uri(),
      set_namespace(), create_wrapper(): Add code for XML_ATTRIBUTE_DECL.
      * examples/dom_parser/example.dtd: Add attribute 'title' with default value.
      * examples/dom_parser/example.xml: Add attribute 'title' with explicit value.
      Bug #669635.
      e9fec24c
    • Kjell Ahlstedt's avatar
      Node: Correct mis-spelt LIBXMLCPP_EXCEPTIONS_ENABLED. · 8dc38b79
      Kjell Ahlstedt authored
      * libxml++/nodes/node.h: Add some "@throws exception".
      * libxml++/nodes/node.cc: Change LIBXMLCPP_EXCEPTIONS_ENABLE to
      LIBXMLCPP_EXCEPTIONS_ENABLED in find_impl() and set_namespace().
      8dc38b79
    • Kjell Ahlstedt's avatar
      Improved handling of entity references and processing instructions. · 09a10ea9
      Kjell Ahlstedt authored
      * libxml++/nodes/entitydeclaration.[h|cc]: New files.
      * Makefile.am:
      * libxml++/Makefile.am: Add the new files.
      * libxml++/libxml++.h: Add the new .h file.
      * docs/manual/libxml++_without_code.xml: Add EntityDeclaration in the list
      of node classes.
      * libxml++/document.[h|cc]: Add add_processing_instruction().
      * libxml++/nodes/element.[h|cc]: Add add_child_entity_reference() and
      add_child_processing_instruction().
      * libxml++/nodes/entityreference.h: Improve the description of
      get_resolved_text() and get_original_text().
      * libxml++/nodes/node.cc: get_namespace_prefix() and get_namespace_uri():
      XML_ENTITY_DECL has no namespace. Don't try to find it.
      create_wrapper(): Create an EntityDeclaration when type == XML_ENTITY_DECL.
      free_wrappers(): Don't walk the child list when type == XML_ENTITY_REF_NODE.
      * examples/dom_build/main.cc: Add entity declarations and references, and
      processing instructions to the built xml file.
      * examples/dom_parse_entities/example.dtd: Make it compatible with example.xml.
      * examples/dom_parse_entities/example.xml: Add an entity definition that
      contains entity references.
      * examples/dom_parse_entities/main.cc: Print the parsed file both with and
      without entity substitution.
      * examples/dom_parser/example.dtd: Make it compatible with example.xml.
      * examples/dom_parser/main.cc: Add command flag -E (Don't substitute entities).
      Bug #669481
      09a10ea9
    • Kjell Ahlstedt's avatar
      Add some files to .gitignore. · a770d029
      Kjell Ahlstedt authored
      * .gitignore: Add docs files that are copied from mm-common.
      Add /MSVC_Net2010/libxml++/libxml++.rc and
      /examples/dom_read_write/example_output.xml.
      a770d029
    • Kjell Ahlstedt's avatar
      Add @newin{2,36} to some new functions where it's missing. · c32f340e
      Kjell Ahlstedt authored
      * libxml++/exceptions/exception.h: Add @newin{2,36} to format_xml_error() and
      format_xml_parser_error().
      * libxml++/parsers/parser.h: Add @newin{2,36} to [set|get]_throw_messages().
      Bug #304020.
      c32f340e
  25. 10 Feb, 2012 1 commit
  26. 30 Jan, 2012 2 commits
    • Kjell Ahlstedt's avatar
      Parser: Throw more detailed error messages. · a6ac0b12
      Kjell Ahlstedt authored
      * examples/dom_parser/main.cc: Add command parameters -v -e -t.
      * libxml++/exceptions/exception.[h|cc]: Add format_xml_error() and
      format_xml_parser_error().
      * libxml++/parsers/domparser.cc: Call format_xml_error() and
      format_xml_parser_error() to get more detailed messages in exceptions.
      * libxml++/parsers/parser.[h|cc]: Add [set|get]_throw_messages() and (local in
      .cc until ABI can be broken) on_parser_[error|warning](). Bug #304020.
      a6ac0b12
    • Murray Cumming's avatar
      Document: Make the Document(xmlDoc*) constructor protected. · 4a71a9a7
      Murray Cumming authored
      * libxml++/document.h: This was requested in bug #668980 (A. Pignotti).
      4a71a9a7