startelement [ WordPress Function ]
startelement ( $parser, $tagName, $attrs )
| Access: |
|
| Parameters: |
|
| Uses: |
|
| Defined at: |
|
XML callback function for the start of a new XML tag.
Source
<?php
function startElement($parser, $tagName, $attrs) {
global $updated_timestamp, $all_links, $map;
global $names, $urls, $targets, $descriptions, $feeds;
if ($tagName == 'OUTLINE') {
foreach (array_keys($map) as $key) {
if (isset($attrs[$key])) {
$$map[$key] = $attrs[$key];
}
}
//echo("got data: link_url = [$link_url], link_name = [$link_name], link_target = [$link_target], link_description = [$link_description]<br />\n");
// save the data away.
$names[] = $link_name;
$urls[] = $link_url;
$targets[] = $link_target;
$feeds[] = $link_rss;
$descriptions[] = $link_description;
} // end if outline
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- StartElement (Java Platform SE 6)
The StartElement interface provides access to information about start elements. A StartElement is reported for each Start Tag in the document. Since: 1.6 ...
docs.oracle.com - ContentHandler (Java 2 Platform SE v1.4.2)
For example, all of an element's content (character data, processing instructions, and/or subelements) will appear, in order, between the startElement event and ...
download.oracle.com - PHP: XMLWriter::startElement - Manual
May 18, 2012 ... XMLWriter::startElement -- xmlwriter_start_element — Create start element tag ... bool XMLWriter::startElement ( string $name ). Procedural ...
php.net - startElement Method
Receives notification of the beginning of an element. The reader invokes the startElement method at the beginning of every element in the XML document.
msdn.microsoft.com