<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/9272" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2005-03-06T21:04:20-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/9272</id>

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-03-06T21:04:20-04:00</updated>

		<published>2005-03-06T21:04:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47271#p47271</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47271#p47271"/>
		<title type="html"><![CDATA[stripping unwanted chars and creating valid xml file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47271#p47271"><![CDATA[
well every char that is outside that range will make the xml file unreadable for a browser .. so all them browsers are wrong? on the otherhand i know youre right cause .. xml is more then just html its a form of db.. and it shouldn't matter what chars i use.. and they sure as hell shouldn't be html like.. if i understood right.. what xml represents..<br><div class="codebox"><p>Code: </p><pre><code>  proc xTags {arg} {    foreach {x} [split $arg {}] {      if {[regexp {^[\x80-\xff\x3c\x3e\x26]$} $x]} {        append r "&amp;#[scan $x %c];"      } elseif {![string is control $x]} {      append r $x      }    }    return $r  }</code></pre></div> <br><br>thats 2 seconds faster..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Mar 06, 2005 9:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-03-06T18:49:34-04:00</updated>

		<published>2005-03-06T18:49:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47259#p47259</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47259#p47259"/>
		<title type="html"><![CDATA[stripping unwanted chars and creating valid xml file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47259#p47259"><![CDATA[
I fail to see how your code snippet is mysql- or XML-related<br><br>what you do is escaping some characters with HTML codes in a manner that hardly could be improved upon - but then again, this shouldn't be neccesary - the bottleneck is usually in parsing (large) XML files, not in generating it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Mar 06, 2005 6:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2005-03-06T10:54:50-04:00</updated>

		<published>2005-03-06T10:54:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47234#p47234</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47234#p47234"/>
		<title type="html"><![CDATA[stripping unwanted chars and creating valid xml file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47234#p47234"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>  proc xTags {arg} {    foreach {x} [split $arg {}] {      if {[regexp {^[\x80-\xff\x3c\x3e\x26]$} $x]} {        append r "&amp;#[scan $x %c];"      } elseif {[regexp {[^\x01-\x19$]} $x]} {      append r $x      }    }    return $r  }</code></pre></div>anyone know how this can be done faster ??<br><br>takes 10 seconds to parse the mysql db into a xml file.. thats a bit long ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Mar 06, 2005 10:54 am</p><hr />
]]></content>
	</entry>
	</feed>
