<?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>[mck] &#187; Dir2xml</title>
	<atom:link href="http://www.matthijskamstra.nl/blog/index.php/tag/dir2xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.matthijskamstra.nl/blog</link>
	<description>a polymath zapper</description>
	<lastBuildDate>Fri, 27 Jan 2012 22:32:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Dir2xml v1.1 released</title>
		<link>http://www.matthijskamstra.nl/blog/index.php/2006/06/05/dir2xml-v11/</link>
		<comments>http://www.matthijskamstra.nl/blog/index.php/2006/06/05/dir2xml-v11/#comments</comments>
		<pubDate>Mon, 05 Jun 2006 21:50:01 +0000</pubDate>
		<dc:creator>Matthijs Kamstra</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Screenweaver]]></category>
		<category><![CDATA[Dir2xml]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Flash experiments]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.matthijskamstra.nl/blog/?p=35</guid>
		<description><![CDATA[This is a little tool I build with the help of Screenweaver. A dir(ectory) 2 XML tool. Wanna know more about the reason?? Version 1.0 had some bugs, and the output (XML) wasn&#8217;t the way it should be. Dir2xml v1.1 (yes indeed it&#8217;s the same picture as version 1.0, there are no big changes to [...]]]></description>
			<content:encoded><![CDATA[<p>This is a little tool I build with the help of <a href="http://screenweaver.org/" target="_blank">Screenweaver</a>.<br />
A dir(ectory) 2 XML tool.</p>
<p>Wanna know <a href="http://www.matthijskamstra.nl/blog/?p=28">more</a> about the reason??</p>
<p>Version 1.0 had some bugs, and the output (XML) wasn&#8217;t the way it should be.</p>
<h2 class='swf-title'>Dir2xml v1.1</h2>
<p><img id="image29" src="http://www.matthijskamstra.nl/blog/wp-content/uploads/ScreenShot003.jpg" alt="dir2xml" /><br />
(yes indeed it&#8217;s the same picture as version 1.0, there are no big changes to this program)</p>
<h2 class='swf-title'>Download</h2>
<p>You can download the EXE, SWF, <a href="../../laboratory/dir2xml/dir2xml.xml" class="broken_link">example dir2xml.xml</a> and FLA in a ZIP</p>
<div id="highlight">Get your stuff here: <a href="../../laboratory/dir2xml/dir2xml_060605.zip" class="broken_link">dir2xml_060605.zip</a></div>
<h2 class='swf-title'>Licensing</h2>
<div><!--Creative Commons License--> <a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" rel="license"><img src="http://creativecommons.org/images/public/somerights20.png" alt="Creative Commons License" /></a> This work is licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" rel="license">Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License</a>.</div>
<p><span id="more-35"></span></p>
<h2 class='swf-title'>PC and Apple</h2>
<p>Sadly enough Screenweaver can&#39;t export to Apple (<a href="http://screenweaver.org/index.php?option=com_content&amp;task=view&amp;id=14&amp;Itemid=55" target="_blank">yet</a>).<br />
So Dir2xml will (for now) only work on a pc.</p>
<h2 class='swf-title'>Code</h2>
<p>The code is embedded in the fla so if you&#39;re interested try the ZIP file</p>
<h2 class='swf-title'>Wish list and To-do</h2>
<p>Bugs version 1.1</p>
<ul>
<li>the path to the folder with &#8220;save&#8221; was incorrect</li>
<li>the xml was not build for the new features like filesize and creationdate</li>
</ul>
<p>Features:</p>
<ul>
<li>Recursive through all folders</li>
<li>Recursive through xx number of folders</li>
<li>Filters for JPG, GIF, Flash 7 images, Flash 8 images</li>
<li>Hidden data in XML (kB, createDate, width, height, URL)</li>
<li>&#8230;..</li>
</ul>
<p>Do you know some features that would make this program better, let me know and drop a line.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthijskamstra.nl/blog/index.php/2006/06/05/dir2xml-v11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dir2xml</title>
		<link>http://www.matthijskamstra.nl/blog/index.php/2006/05/20/dir2xml/</link>
		<comments>http://www.matthijskamstra.nl/blog/index.php/2006/05/20/dir2xml/#comments</comments>
		<pubDate>Sat, 20 May 2006 13:34:29 +0000</pubDate>
		<dc:creator>Matthijs Kamstra</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Screenweaver]]></category>
		<category><![CDATA[Dir2xml]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Flash experiments]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.matthijskamstra.nl/blog/?p=28</guid>
		<description><![CDATA[This is a little tool I build with the help of Screenweaver. A dir(ectory) 2 XML tool. I was looking for a program that could create an XML file from a directory. I found some programs that could help me with this (commandline, Printfolder, Dirhtml) but none of them creates an XML at once. So [...]]]></description>
			<content:encoded><![CDATA[<p>This is a little tool I build with the help of <a href="http://screenweaver.org/" target="_blank">Screenweaver</a>.<br />
A dir(ectory) 2 XML tool.</p>
<p>I was looking for a program that could create an XML file from a directory. I found some programs that could help me with this (<a href="http://support.microsoft.com/?scid=kb%3Ben-us%3B196158&amp;x=11&amp;y=15#" target="_blank">commandline</a>, <a href="http://no-nonsense-software.com/freeware/" target="_blank">Printfolder</a>, <a href="http://home.pacbell.net/nitzsche/dirhtml/dirhtml.html" target="_blank" class="broken_link">Dirhtml</a>) but none of them creates an XML at once. So one evening I sat down, and made this in a couple of hours.</p>
<p>Because this is a custom solution to a specific problem, not everybody will be able to use this. I&#39;m open to suggestions though, so drop me a line.</p>
<h2 class='swf-title'>Dir2xml v1.0</h2>
<p><img id="image29" src="http://www.matthijskamstra.nl/blog/wp-content/uploads/ScreenShot003.jpg" alt="dir2xml" /></p>
<h2 class='swf-title'>PC and Apple</h2>
<p>Sadly enough Screenweaver can&#39;t export to Apple (<a href="http://screenweaver.org/index.php?option=com_content&amp;task=view&amp;id=14&amp;Itemid=55" target="_blank">yet</a>).<br />
So Dir2xml will (for now) only work on a pc.</p>
<h2 class='swf-title'>Download</h2>
<p>You can download the EXE, SWF and FLA in a ZIP</p>
<div id="highlight"><strike>Get your stuff here: <a href="#">dir2xml_060520.zip</a></strike></div>
<p><b>update: <a href="http://www.matthijskamstra.nl/blog/?p=35">new version</a></b></p>
<h2 class='swf-title'>Licensing</h2>
<div><!--Creative Commons License--> <a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" rel="license"><img src="http://creativecommons.org/images/public/somerights20.png" alt="Creative Commons License" /></a> This work is licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" rel="license">Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License</a>.</div>
<p><span id="more-28"></span></p>
<h2 class='swf-title'>Code</h2>
<p>The code is embedded in the fla so I&#39;ll show the code here.</p>
<pre>////////////////////////////////////////////////////
// choose a folder to create xml from
/////////////////////////////////////////////////////
this.folder_txt.text = &quot;&quot;;
this.button_btn.btn_txt.text = &quot;Choose folder&quot;;
this.button_btn.onRelease = function() {
trace(&quot;- choose folder -&quot;);
swSystem.Dialogs.BrowseForFolder(&quot;Please choose a folder...&quot;, _root.onBrowseFolder, this);
};
// check if a folder is chosen
function onBrowseFolder(success, folder) {
if (success) {
_root.chosenFolder = folder;
_root.folder_txt.text = _root.chosenFolder;
_root.save_txt.text = _root.chosenFolder + &quot;dir2xml.xml&quot;;
_root.file = _root.chosenFolder + &quot;dir2xml.xml&quot;;
swDebug.trace(&quot;_root.chosenFolder: &quot; + _root.chosenFolder);
swFile.listFolder(_root.chosenFolder, &quot;file&quot;, &quot;&quot;, 0, listFolder_callback, this);
} else {
swDebug.trace(&quot;- cancel browsing for folder -&quot;);
}
}
// list folder for files
// escape 250 if necessary
function listFolder_callback(success, index, data) {
if (data.length &lt; 250) {
for (i in data) {
swDebug.trace(data[i]);
}
_root.createXml(data);
swDebug.trace(&quot; - finished loading data from folder - &quot;);
} else {
swFile.listFolder(_root.chosenFolder, &quot;file&quot;, &quot;&quot;, index, listFolder_callback, this);
}
}
/////////////////////////////////////////////////////
// create xml
/////////////////////////////////////////////////////
function createXml(data:Array):Void {
swDebug.trace(&quot;createXml - &quot; + data.length);
var writeXml:String = &quot;&quot;;
writeXml += &quot;n&quot;;
writeXml += &quot;n&quot;;
for (var i = 0; i &lt; data.length; i++) {
writeXml += &quot;t&quot; + data[i] + &quot;n&quot;;
}
writeXml += &quot;n&quot;;
_root.writeXml = writeXml;
}
//////////////////////////////////////////////
// save xml file in
//////////////////////////////////////////////
this.save_txt.text = &quot;&quot;;
this.save_btn.btn_txt.text = &quot;Save as&quot;;
this.save_btn.onRelease = function() {
trace(&quot;- Save as -&quot;);
_root.SaveFileIn();
};
// where
function SaveFileIn() {
swSystem.Dialogs.BrowseForFile_Save(&quot;dir2xml.xml&quot;, [&quot;XML Files&quot;, &quot;*.xml&quot;, &quot;All Files&quot;, &quot;*.*&quot;], _root.saveFileIn, &quot;Save File&quot;, &quot;.xml&quot;, _root.onSaveFileIn);
}

// real save
function onSaveFileIn(success, file) {
if (success) {
swDebug.trace(&quot;User selected: &quot; + file);
_root.file = file;
_root.save_txt.text = _root.file;
} else {
swDebug.trace(&quot;- User did not save to file! -&quot;);
}
}
// export
this.export_btn.btn_txt.text = &quot;Export XML&quot;;
this.export_btn.onRelease = function() {
trace(&quot;- Export XML -&quot;);
startSaving();
};
function startSaving() {
swFile.saveString(_root.file, _root.writeXml, false, _root.onSaveDocument);
}
// check
function onSaveDocument(succes) {
if (succes) {
swDebug.trace(&quot;- User saved -&quot;);
trace(_root.checkBox_mc.checked);
swDebug.trace(&quot;&gt;&gt; &quot; + _root.checkBox_mc.checked);
if (_root.checkBox_mc.checked) {
swSystem.shellOpenDocument(_root.file);
}
} else {
swDebug.trace(&quot;- something went wrong -&quot;);
}
}
//
this.checkBox_mc.checkbox_txt.text = &quot;Open file&quot;;</pre>
<h2 class='swf-title'>Wish list and To-do</h2>
<p>Features:</p>
<ul>
<li>Recursive through all folders</li>
<li>Recursive through xx number of folders</li>
<li>Filters for JPG, GIF, Flash 7 images, Flash 8 images</li>
<li>Hidden data in XML (kB, createDate, width, height, URL)</li>
<li>&#8230;..</li>
</ul>
<p>Do you know some features that would make this program better, let me know and drop a line.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthijskamstra.nl/blog/index.php/2006/05/20/dir2xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SlideShow v1.0</title>
		<link>http://www.matthijskamstra.nl/blog/index.php/2006/05/20/slideshow-v10/</link>
		<comments>http://www.matthijskamstra.nl/blog/index.php/2006/05/20/slideshow-v10/#comments</comments>
		<pubDate>Sat, 20 May 2006 13:30:33 +0000</pubDate>
		<dc:creator>Matthijs Kamstra</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Dir2xml]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Flash experiments]]></category>
		<category><![CDATA[Screenweaver]]></category>
		<category><![CDATA[SlideShow]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.matthijskamstra.nl/blog/?p=26</guid>
		<description><![CDATA[A little dynamic slideshow a made with Flash using XML. It&#8217;s not finished but it usable. And it&#8217;s not really the reason I wanted to show this. What I wanted to show is my dir2xml program that I wrote with Flash and Screenweaver SlideShow v1.0 Download I haven&#8217;t had the time to clean up the [...]]]></description>
			<content:encoded><![CDATA[<p>A little dynamic slideshow a made with Flash using XML.<br />
It&#8217;s not finished but it usable.</p>
<p>And it&#8217;s not really the reason I wanted to show this.<br />
What I wanted to show is my <a title="dir2xml" href="http://www.matthijskamstra.nl/blog/?p=28">dir2xml program</a> that I wrote with Flash and Screenweaver</p>
<h2 class='swf-title'>SlideShow v1.0</h2>
<div id="flash"><object width="300" height="225" type="application/x-shockwave-flash" data="http://www.matthijskamstra.nl/laboratory/slideShow/slideshow_v01.swf?loadxmlfile=http://www.matthijskamstra.nl/laboratory/slideShow/xml/dir2xml.xml"><param name="movie" value="http://www.matthijskamstra.nl/laboratory/slideShow/slideshow_v01.swf?loadxmlfile=http://www.matthijskamstra.nl/laboratory/slideShow/xml/dir2xml.xml" /></object></div>
<h2 class='swf-title'>Download</h2>
<p>I haven&#8217;t had the time to clean up the source code, so don&#8217;t complain about it.</p>
<div id="highlight">Get your stuff here: <a href="http://www.matthijskamstra.nl/laboratory/slideShow/slideShow_060520.zip">slideShow_060520.zip</a></div>
<h2 class='swf-title'>Licensing</h2>
<div id="license"><!--Creative Commons License--> <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/"><img border="0" alt="Creative Commons License" src="http://creativecommons.org/images/public/somerights20.png" /></a> This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/">Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License</a>.</div>
<h2 class='swf-title'>XML</h2>
<p>Dir2xml creates a simple xml structure:</p>
<p><a href="http://www.matthijskamstra.nl/laboratory/slideShow/xml/dir2xml_example.xml">dir2xml_example.xml</a></p>
<h2 class='swf-title'>Future features and wishes</h2>
<p>I can think of some features that would make this slideshow better, but what do <strong>you</strong> think would improve it.<br />
<em> The real reason I wanted to show you this project is <a href="http://www.matthijskamstra.nl/blog/">this</a>.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthijskamstra.nl/blog/index.php/2006/05/20/slideshow-v10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

