diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2011-12-16 11:12:58 +0100 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2011-12-16 11:39:24 +0100 |
commit | 154812b401e3845977b3a4892dbc5e5a0b9d03cf (patch) | |
tree | bdd43fb563f124bbce837345ed7c25c11086831d /debian/compat | |
parent | 9a31985671edfaf877a1254e308bf7d61f1219fa (diff) | |
download | lasso-154812b401e3845977b3a4892dbc5e5a0b9d03cf.tar.gz lasso-154812b401e3845977b3a4892dbc5e5a0b9d03cf.tar.xz lasso-154812b401e3845977b3a4892dbc5e5a0b9d03cf.zip |
[xml] rewrite schema directed serialization/deserialization methods
The new implementations of lasso_node_impl_init_from_xml now validate
namespace of all child nodes befores parsing. It stops on any error. For
node which implement their own parsing of an attribute or a node, it
must declare an XmlSnippet with an offset field set to 0. The 0 value is
invalid for public GObject structure (it's the place of the GObject
machinery like the reference count). The 0 offset can be used for
XmlSnippet in a private structure, so never set the offset to 0 with the
flag SNIPPET_PRIVATE, for a field which is parsed by you get_xmlNode
virtual method.
Other ameliorations in this commit is the possibility to set attributes
with namespace when using the flags SNIPPET_ATTRIBUTE|SNIPPET_ANY. The
syntax for an attribute is inspired by the element tree API from Python:
{namespace}attribute_name
an example:
{http://www.w3.org/2001/XMLSchema-instance}type
for the classic xsi:type attribute.
Diffstat (limited to 'debian/compat')
0 files changed, 0 insertions, 0 deletions