<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[TNF : Tatter Network Foundation forum - 자바로 xml 을 파싱해서 갖고오려고 하는데요.. ㅠ_ㅠ]]></title>
	<link rel="self" href="http://forum.tattersite.com/ko/extern.php?action=feed&amp;tid=5585&amp;type=atom"/>
	<updated>2008-05-22T09:44:30Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.tattersite.com/ko/viewtopic.php?id=5585</id>
		<entry>
			<title type="html"><![CDATA[자바로 xml 을 파싱해서 갖고오려고 하는데요.. ㅠ_ㅠ]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=27264#p27264"/>
			<content type="html"><![CDATA[<p>제가 티스토리 혹은 테터(큐브)에서 아래와 같은 소스를 통해 xml 1.0 문서를 출력하려고 하는데요..&nbsp; 서버상에서 돌리면 문제가 없으나 왜 하필 티스토리/테터에서만 돌리면 에러가 뜨는지 도통 모르겠습니다 ㅠ_ㅠ_ㅠ_ㅠ</p><p>소스1.<br />&lt;script&gt; <br />var sHttp = new ActiveXObject(&quot;Microsoft.xmlhttp&quot;); </p><p>function httpGet(szURL) { <br />sHttp.open(&quot;GET&quot;,szURL,false); <br />sHttp.setRequestHeader( &quot;Content-type:&quot;, &quot;text/html&quot;); <br />sHttp.onreadystatechange = onRetriveComplete; <br />sHttp.send(); <br />if (sHttp.status &gt; 200) alert(&quot;200 Error&quot;); <br />} </p><p>function onRetriveComplete() { </p><p>if (sHttp.readyState == 4) { <br />sHttp.onreadystatechange = noop; //re-entrant gate <br />document.all(&#039;contentView&#039;).innerHTML = sHttp.responseText; <br />} <br />} </p><p>function noop() { <br />return false; <br />} </p><p>&lt;/script&gt; <br />&lt;body onLoad=&quot;httpGet(&#039;data.xml&#039;);&quot;&gt; <br />&lt;div id=&#039;contentView&#039; width=&quot;100%&quot; height=&quot;100%&quot;&gt;Wait for loading...&lt;/div&gt; <br />&lt;/body&gt;</p><p>---------------------<br />소스2.<br />&lt;script&gt;<br />function loadxml()<br />{<br /> var xDoc = new ActiveXObject(&quot;Microsoft.XMLDOM&quot;);<br /> xDoc.async = false;<br /> xDoc.load(&quot;data.xml&quot;);<br /> var root = xDoc.documentElement;<br /> var html = &quot;&quot;;<br /> for(var i=0; i&lt;root.childNodes.length;i++) {<br />&nbsp; html += &quot;&lt;a href=&#039;&quot;;<br />&nbsp; html += root.childNodes.item(i).childNodes.item(1).text + &quot;&#039;&gt;&quot; + root.childNodes.item(i).childNodes.item(1).text + &quot;&lt;/a&gt;&lt;br&gt;&quot;;<br /> }<br /> document.all.oa.innerHTML = html;<br />}<br />window.onload=loadxml;<br />&lt;/script&gt;<br />&lt;div id=&quot;oa&quot; style=&quot;font-size:9pt&quot;&gt;&lt;/div&gt;<br />--------------------</p><p>둘다 티스토리 / 테터(큐브)에만 넣으면 먹통이 되는데.. 왜그런걸까요 ㅠ_ㅠ</p><p>그.. skin.html 에다가 그냥 밀어넣었습니다만.. -_-;</p>]]></content>
			<author>
				<name><![CDATA[ryph]]></name>
			</author>
			<updated>2008-05-22T09:44:30Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=27264#p27264</id>
		</entry>
</feed>
