522efa4ba9
* NEW: Added a new gb.xml Component API. * NEW: The XMLElement.AppendFromText() method can now take the &1, &2 etc. Subst-like patterns. * NEW: All the methods based on the parser can choose from the XML and the HTML parser (if loaded), depending on the document's (or parent document's) type. * OPT: Renamed, reorganized and cleaned up the code. * OPT: Removed the ugly cross-including sources to communicate with the subcomponents, which now use the XML Component Interface. * OPT: Remove all the unneeded includes. * OPT: The XML serializer does not check if the elements are self-closed according to HTML specifications anymore. This is done only in the new HTML serializer. [GB.XML.HTML] * NEW: Added a new gb.xml.html Component API. * NEW: Added a new (X)HTML parser, more flexible than the XML one, and automatically used with the HtmlDocument class. * NEW: Generated HTML Documents now automatically use the new meta/charset element if the document is HTML5, and the old meta/content-type element only if the document is not HTML5. * BUG: Loading an HTML document from a file while instanciating it correctly works now. * BUG: Using the class or id CSS selector in a filter on an element that doesn't have these does not crashes anymore. [GB.XML.XSLT] * NEW: Now uses the gb.xml Component API. git-svn-id: svn://localhost/gambas/trunk@5732 867c0c6c-44f3-4631-809d-bfa615b0a4ec
18 lines
697 B
C
18 lines
697 B
C
#ifndef SERIALIZER_H
|
|
#define SERIALIZER_H
|
|
|
|
#include "gb.xml.h"
|
|
|
|
//Switches if HTML enabled
|
|
void serializeNode(Node *node, char *&output, size_t &len, int indent = -1);
|
|
void GBserializeNode(Node *node, char *&output, size_t &len, int indent = -1);
|
|
|
|
//String output
|
|
void serializeXMLNode(Node *node, char *&output, size_t &len, int indent = -1);//Converts the node to its string representation
|
|
void GBserializeXMLNode(Node *node, char *&output, size_t &len, int indent = -1);//Same as above, but returns a Gambas String directly
|
|
|
|
//Text content
|
|
void GetXMLTextContent(Node *node, char *&output, size_t &len);
|
|
void GBGetXMLTextContent(Node *node, char *&output, size_t &len);
|
|
|
|
#endif // SERIALIZER_H
|