... | ... | @@ -38,6 +38,8 @@ GomNode currently use `xmlTextReader` to parse an XML document, reducing parsing |
|
|
|
|
|
GomNode, like TNode, uses `xmlTextWritter` with an improved parser, so write down XML documents is fast.
|
|
|
|
|
|
> For examples and detailed information go to [Link GomElement](gomelement) page.
|
|
|
|
|
|
### GObject to XML and back
|
|
|
|
|
|
GomNode's descendant GomElement, provides an easy way to use GObject's properties to XML Node's attributes, mapping a one to one XML element node to a GObject.
|
... | ... | @@ -48,3 +50,14 @@ Like a DomElement, GomElement descendants can have any DOM node and attributes; |
|
|
|
|
|
In the same way, when you write down an GomElement, with pre-parsed childs, any modification to GObject's properties and/or DOM nodes will be preserved. **No XML data lost**.
|
|
|
|
|
|
#### Collections
|
|
|
|
|
|
One feature added to GomNode derived classes, are [Link Collections] (collections). Take a list of child nodes and clasify them in collection, with different ways to access them, provides a powerful mechanism to manage your XML data.
|
|
|
|
|
|
From a simple array to hash tables using one, two and three keys to access them, provides fast and easy ways to take advantage of your data layout.
|
|
|
|
|
|
#### Properties as Objects
|
|
|
|
|
|
Serialize objects from `GObject` properties are easy with `GomProperty` interface implementations.
|
|
|
|
|
|
In `GomElement` derived classes you can use simple properties types like bool or double, to `GObject` based values mapped to XML Element nodes or simple attributes. |