AtomLib Atom Parser API
package | AtomLib |
---|
AtomParser()
__construct()
_default($parser, $data)
_p($msg)
cdata($parser, $data)
end_element($parser, $name)
end_ns($parser, $prefix)
error_handler($log_level, $log_text, $error_file, $error_line)
is_declared_content_ns($new_mapping)
map_attrs(string $k, string $v) : string
string
Key
string
Value
string
map_xmlns(\indexish $p, array $n) : string
\indexish
XML Namespace element index
array
Two-element array pair. [ 0 => {namespace}, 1 => {url} ]
string
'xmlns="{url}"' or 'xmlns:{namespace}="{url}"'ns_to_prefix($qname, $attr = false
)
parse()
start_element($parser, $name, $attrs)
start_ns($parser, $prefix, $uri)
xml_escape($string)
$ATOM_CONTENT_ELEMENTS
array('content', 'summary', 'title', 'subtitle', 'rights')
$ATOM_SIMPLE_ELEMENTS
array('id', 'updated', 'published', 'draft')
$FILE
"php://input"
$NS
'http://www.w3.org/2005/Atom'
$content_ns_contexts
array()
$content_ns_decls
array()
$current
$debug
false
$depth
0
$feed
$in_content
$indent
2
$is_html
false
$is_text
true
$is_xhtml
false
$ns_contexts
array()
$ns_decls
array()
$skipped_div
false