public string | fwXml_trim (string value) |
private void | _fwXml_parseSaxRecursive (int document, mapping callBacks, int level, int nodes_id, dyn_string &exceptionInfo) |
public int | fwXml_parseSaxFromFile (string xml_file, mapping callBacks, string &errMsg, string &errLin, string &errCol, dyn_string &exceptionInfo) |
void | _fwXml_elementsRecursive (unsigned doc, int node, string tag, dyn_int &elements, dyn_string &exceptionInfo) |
dyn_int | fwXml_elementsByTagName (unsigned doc, int node, string tag, dyn_string &exceptionInfo) |
int | fwXml_childNodesContent (unsigned doc, int node, dyn_string &node_names, dyn_anytype &attributes, dyn_string &nodevalues, dyn_string &exceptionInfo) |
int | fwXml_appendChildContent (unsigned doc, int node, dyn_string node_names, dyn_anytype attributes, dyn_string nodevalues, dyn_string &exceptionInfo) |
const int | fwXml_SAXSTARTELEMENT = 2 |
const int | fwXml_SAXENDELEMENT = 3 |
const int | fwXml_SAXCHARACTERS = 6 |
const string | fwXml_CHILDNODESTYPE = "fwXml_ChildNodesType" |
const string | fwXml_CHILDSUBTREEID = "fwXml_ChildSubTreeId" |
void _fwXml_elementsRecursive | ( | unsigned | doc, | |
int | node, | |||
string | tag, | |||
dyn_int & | elements, | |||
dyn_string & | exceptionInfo | |||
) |
'_fwXml_elementsRecursive' called by '' and itself in a recursive way.
doc | input, the document identifier | |
node | input, the node identifier of the parent or -1 (root-node) | |
tag | input, the tag-name of the children which need to be returned | |
elements | inout, the elements satisfying the tag-name condition | |
exceptionInfo | inout, returns details of any exceptions |
private void _fwXml_parseSaxRecursive | ( | int | document, | |
mapping | callBacks, | |||
int | level, | |||
int | nodes_id, | |||
dyn_string & | exceptionInfo | |||
) |
'_fwXml_parseSaxRecursive' called by 'fwXml_parseSaxFromFile' and itself in a recursive way.
document | input, the document-ident of the loaded Xml file | |
callBacks | input, the callback functions to be called while parsing | |
level | input, the current nesting-level of the recursive calls | |
nodes_id | input, the node-ident from which the sub-tree is parsed | |
exceptionInfo | inout, returns details of any exceptions |
int fwXml_appendChildContent | ( | unsigned | doc, | |
int | node, | |||
dyn_string | node_names, | |||
dyn_anytype | attributes, | |||
dyn_string | nodevalues, | |||
dyn_string & | exceptionInfo | |||
) |
'fwXml_appendChildContent' appends element-nodes, attributes and contained data to the Xml Tree
doc | input, the document identifier | |
node | input, the node identifier of the parent element-node container | |
node_names | input, tag-names for element-nodes | |
attributes | input, the attributes of element-nodes | |
nodevalues | input, the values of the unique child's text-node | |
exceptionInfo | inout, returns details of any exceptions |
int fwXml_childNodesContent | ( | unsigned | doc, | |
int | node, | |||
dyn_string & | node_names, | |||
dyn_anytype & | attributes, | |||
dyn_string & | nodevalues, | |||
dyn_string & | exceptionInfo | |||
) |
'fwXml_childNodesContent' returns tags, attributes and contained data of all children
doc | input, the document identifier | |
node | input, the node identifier of the parent element-node container | |
node_names | output, the node-names or tag-names for element-nodes | |
attributes | output, the attributes of element-nodes and added infomation | |
nodevalues | output, the node-values or values of the unique child's text-node | |
exceptionInfo | inout, returns details of any exceptions |
dyn_int fwXml_elementsByTagName | ( | unsigned | doc, | |
int | node, | |||
string | tag, | |||
dyn_string & | exceptionInfo | |||
) |
'fwXml_elementsByTagName' returns all children which have a specific element's tag-name
doc | input, the document identifier | |
node | input, the node identifier of the parent or -1 (root-node) | |
tag | input, the tag-name of the children which need to be returned | |
exceptionInfo | inout, returns details of any exceptions |
public int fwXml_parseSaxFromFile | ( | string | xml_file, | |
mapping | callBacks, | |||
string & | errMsg, | |||
string & | errLin, | |||
string & | errCol, | |||
dyn_string & | exceptionInfo | |||
) |
'fwXml_parseSaxFromFile' parses an Xml-file according to the SAX mechanism with user-defined callbacks.
xml_file | input, the file-name of the Xml file to be parsed | |
callBacks | input, the callback functions to be called while parsing | |
errMsg | output, the error message if the Xml file cannot be parsed | |
errLin | output, the line in the Xml file at which the error occurred | |
errCol | output, the column in the Xml file at which the error occurred | |
exceptionInfo | inout, returns details of any exceptions |
public string fwXml_trim | ( | string | value | ) |
'fwXml_trim' to trim a string, especially to be used for trimming an Xml-Node's value.
value | inout, the value to be trimmed |
const string fwXml_CHILDNODESTYPE = "fwXml_ChildNodesType" |
fwXml_CHILDNODESTYPE Constant used in the mapping that identifies the node-type of the node in question
const string fwXml_CHILDSUBTREEID = "fwXml_ChildSubTreeId" |
fwXml_CHILDSUBTREEID Constant used in the mapping that identifies the node-identifier of the node in question
const int fwXml_SAXCHARACTERS = 6 |
fwXml_Characters Constant used in the mapping that associates the user-defined callback to an Xml text-node
const int fwXml_SAXENDELEMENT = 3 |
fwXml_EndElement Constant used in the mapping that associates the user-defined callback to the end of an Xml element-node
const int fwXml_SAXSTARTELEMENT = 2 |
fwXml_StartElement Constant used in the mapping that associates the user-defined callback to the start of an Xml element-node