Skip to content

Commit

Permalink
ActionScript: Update examples to add inline XML
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Jul 10, 2015
1 parent 90257b0 commit 2c1626a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions examples/prism-actionscript.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,29 @@ <h2>Classes</h2>
<pre><code>class A {}
class B extends A {}</code></pre>

<h2>Inline XML</h2>
<pre><code>var employees:XML =
&lt;employees>
&lt;employee ssn="123-123-1234">
&lt;name first="John" last="Doe"/>
&lt;address>
&lt;street>11 Main St.&lt;/street>
&lt;city>San Francisco&lt;/city>
&lt;state>CA&lt;/state>
&lt;zip>98765&lt;/zip>
&lt;/address>
&lt;/employee>
&lt;employee ssn="789-789-7890">
&lt;name first="Mary" last="Roe"/>
&lt;address>
&lt;street>99 Broad St.&lt;/street>
&lt;city>Newton&lt;/city>
&lt;state>MA&lt;/state>
&lt;zip>01234&lt;/zip>
&lt;/address>
&lt;/employee>
&lt;/employees>;</code></pre>

<h2>Full example</h2>
<pre><code>package {
import flash.display.*;
Expand Down

0 comments on commit 2c1626a

Please sign in to comment.