Gsf.XMLIn¶
Fields¶
| Name | Type | Access | Description | 
|---|---|---|---|
| content | GLib.String | r/w | the current node content | 
| doc | Gsf.XMLInDoc | r/w | Current document being parsed Gsf.XMLInDoc | 
| node | Gsf.XMLInNode | r/w | current node (not on the stack) | 
| node_stack | [ object] | r | |
| user_state | object | r/w | user data | 
Methods¶
| check_ns(str, ns_id) | |
| get_input() | |
| namecmp(str, ns_id, name) | |
| push_state(doc, new_state, dtor, attrs) | |
| set_silent_unknowns(silent) | 
Details¶
- 
class Gsf.XMLIn¶
- 
check_ns(str, ns_id)¶
- Parameters: - Returns: - a pointer to str after the namespace if successful, otherwise - None.- Return type: - According to state is str in the namespace ns_id ? 
 - 
get_input()¶
- Returns: - (but does not reference) the stream being parsed. - Return type: - Gsf.Input- (New in 1.14.2) 
 - 
namecmp(str, ns_id, name)¶
- Parameters: - Returns: - Trueif str == ns_id:name according to state.- Return type: - Checks to see if str is the same as ns_id::name with either an explicit namespace or the current default namespace. 
 - 
push_state(doc, new_state, dtor, attrs)¶
- Parameters: - doc (Gsf.XMLInDoc) –Gsf.XMLInDoc
- new_state (objectorNone) – arbitrary content for the parser
- dtor (Gsf.XMLInExtDtor) –Gsf.XMLInExtDtor
- attrs ([str]) – array oflibxml2.Charconst *
 - Take the first node from doc as the current node and call its start handler. 
- doc (
 
-