Gsf.XMLIn¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
content |
r/w |
the current node content |
|
doc |
r/w |
Current document being parsed |
|
node |
r/w |
current node (not on the stack) |
|
node_stack |
[ |
r |
|
user_state |
r/w |
user data |
Methods¶
|
|
|
|
|
|
|
|
|
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:
(New in 1.14.2)
- namecmp(str, ns_id, name)¶
- Parameters:
- Returns:
True
if 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 (
object
orNone
) – arbitrary content for the parserdtor (
Gsf.XMLInExtDtor
) –Gsf.XMLInExtDtor
attrs ([
str
]) – array oflibxml2.Char
const *
Take the first node from doc as the current node and call its start handler.