<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Flex Examples &#187; ignoreComments</title>
	<atom:link href="http://blog.flexexamples.com/tag/ignorecomments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Wed, 26 Jan 2011 18:09:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ignoring comments in an XML file in ActionScript 3.0</title>
		<link>http://blog.flexexamples.com/2008/08/22/ignoring-comments-in-an-xml-file-in-actionscript-30/</link>
		<comments>http://blog.flexexamples.com/2008/08/22/ignoring-comments-in-an-xml-file-in-actionscript-30/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 06:01:18 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[ignoreComments]]></category>
		<category><![CDATA[toXMLString()]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/08/22/ignoring-comments-in-an-xml-file-in-actionscript-30/</guid>
		<description><![CDATA[<p>The following example shows how you can ignore comment tags (&#60;!&#x2D;&#x2D; &#8230; &#x2D;&#x2D;&#62;) in an XML document by setting the static XML.ignoreComments property.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/XML_ignoreComments_test/bin/srcview/source/main.mxml.html">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2008/08/22/ignoring-comments-in-an-xml-file-in-actionscript-30/ --&#62; &#60;mx:Application name="XML_ignoreComments_test" xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white"&#62; &#60;mx:Script&#62; &#60;![CDATA[ XML.ignoreComments = false; private const xmlObj:XML = &#60;TestCase&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can ignore comment tags (&lt;!&#x2D;&#x2D; &#8230; &#x2D;&#x2D;&gt;) in an XML document by setting the static <code>XML.ignoreComments</code> property.</p>
<p>Full code after the jump.</p>
<p><span id="more-757"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/XML_ignoreComments_test/bin/srcview/source/main.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/08/22/ignoring-comments-in-an-xml-file-in-actionscript-30/ --&gt;
&lt;mx:Application name="XML_ignoreComments_test"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            XML.ignoreComments = false;

            private const xmlObj:XML = &lt;TestCase&gt;
                        &lt;setup&gt;
                            &lt;!-- TODO: implement --&gt;
                        &lt;/setup&gt;
                        &lt;body&gt;
                            &lt;!-- TODO: implement --&gt;
                        &lt;/body&gt;
                    &lt;/TestCase&gt;;

            private function init():void {
                XML.ignoreComments = ignoreCommentsCheckBox.selected;

                var newXMLObj:XML = xmlObj.copy();
                textArea.text = newXMLObj.toXMLString();
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Form styleName="plain"&gt;
            &lt;mx:FormItem label="ignoreComments:"&gt;
                &lt;mx:CheckBox id="ignoreCommentsCheckBox"
                        change="init();" /&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:TextArea id="textArea"
            editable="false"
            width="100%"
            height="100%"
            creationComplete="init();" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/XML_ignoreComments_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/XML_ignoreComments_test/bin/main.html" width="100%" height="200"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Ignoring comments in an XML file in ActionScript 3.0 on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/08/22/ignoring-comments-in-an-xml-file-in-actionscript-30/',contentID: 'post-757',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'ignoreComments,toXMLString()',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/08/22/ignoring-comments-in-an-xml-file-in-actionscript-30/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

