mirror of
https://github.com/php/presentations.git
synced 2026-03-24 07:32:11 +01:00
35 lines
1.1 KiB
XML
35 lines
1.1 KiB
XML
<slide title='Event-driven parser'>
|
|
<blurb>
|
|
The %expat% parser, that the XML functions in PHP use,
|
|
works by generating calls to the appropriate
|
|
element handling functions (or methods in a class) as the sequential parsing
|
|
of the input document occurs.
|
|
</blurb>
|
|
<blurb effect='hide'>
|
|
<![CDATA[<]]>|ff0000|title| |ff0000|level='1'|<![CDATA[>]]>
|
|
SDPHP
|
|
<![CDATA[</]]>title<![CDATA[>]]>
|
|
</blurb>
|
|
<list effect='hide' type='darrow'>
|
|
<bullet>Call start element handler function, and pass tag name (%title%)
|
|
and attributes (level='1')</bullet>
|
|
</list>
|
|
<blurb effect='hide'>
|
|
<![CDATA[<]]>|0000ff|title| |0000ff|level='1'|<![CDATA[>]]>
|
|
|ff0000|SDPHP|
|
|
<![CDATA[</]]>title<![CDATA[>]]>
|
|
</blurb>
|
|
<list effect='hide' type='darrow'>
|
|
<bullet>Call CDATA element handler function, pass the tag contents including
|
|
end-of-line characters.</bullet>
|
|
</list>
|
|
<blurb effect='hide'>
|
|
<![CDATA[<]]>|0000ff|title| |0000ff|level='1'|<![CDATA[>]]>
|
|
|0000ff|SDPHP|
|
|
<![CDATA[</]]>|ff0000|title|<![CDATA[>]]>
|
|
</blurb>
|
|
<list effect='hide' type='darrow'>
|
|
<bullet>Call end element handler function passing the tag name (%title%)</bullet>
|
|
</list>
|
|
</slide>
|