﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3ASource%2FDevelopment%2FProjects%2FBlender_File_Format%2FXML%2FMiscFunctions</id>
	<title>Dev:Source/Development/Projects/Blender File Format/XML/MiscFunctions - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3ASource%2FDevelopment%2FProjects%2FBlender_File_Format%2FXML%2FMiscFunctions"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:Source/Development/Projects/Blender_File_Format/XML/MiscFunctions&amp;action=history"/>
	<updated>2026-07-10T17:15:47Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:Source/Development/Projects/Blender_File_Format/XML/MiscFunctions&amp;diff=43160&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:Source/Development/Projects/Blender_File_Format/XML/MiscFunctions&amp;diff=43160&amp;oldid=prev"/>
		<updated>2018-06-28T17:45:49Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 17:45時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:Source/Development/Projects/Blender_File_Format/XML/MiscFunctions&amp;diff=43159&amp;oldid=prev</id>
		<title>2010年4月3日 (土) 12:01にwiki&gt;Terrywallworkによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:Source/Development/Projects/Blender_File_Format/XML/MiscFunctions&amp;diff=43159&amp;oldid=prev"/>
		<updated>2010-04-03T12:01:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== XMLMiscFunctions==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/* Misc Tool functions */&lt;br /&gt;
static void generate_xml_string(xml_object *tag, char *string)&lt;br /&gt;
{ char *tagName; char *tagContent; char *propertyName; char *propertyValue; char *tagStart; char *tagEnd;  xml_object *child;  /* initialize the memory for our string if its not been done yet */ if (!string)  string = calloc(1, sizeof(char));   int stringSizeNew = strlen(string); int stringSizeOld = strlen(string); tagStart = &amp;quot;&amp;lt;&amp;quot;;   /* test for children */ if (tag-&amp;gt;child_list.first) { child = tag-&amp;gt;child_list.first;  while (tag) { tagName = tag-&amp;gt;tagName; tagContent = tag-&amp;gt;content; tagEnd = &amp;quot; &amp;gt;&amp;quot;;  /* get the size of the string needed to    hold the start tag for this xml element */ stringSizeNew = stringSizeOld + strlen(tagName) + strlen(tagContent) + strlen(tagStart) + strlen(tagEnd) + 3;  string = realloc(string, stringSizeNew); strcat(string, tagStart); strcat(string, tagName); strcat(string, tagEnd);  stringSizeOld = stringSizeNew;  generate_xml_string(child, string);  tagEnd = &amp;quot; /&amp;gt;&amp;quot;;  stringSizeNew = stringSizeOld + strlen(tagName) + strlen(tagContent) + strlen(tagStart) + strlen(tagEnd) + 3;  string = realloc(string, stringSizeNew); strcat(string, tagStart); strcat(string, tagName); strcat(string, tagEnd);  stringSizeOld = stringSizeNew;   tag = tag-&amp;gt;next; } } else { tagName = tag-&amp;gt;tagName; tagContent = tag-&amp;gt;content; tagEnd = &amp;quot; /&amp;gt;&amp;quot;;  stringSizeNew = stringSizeOld + strlen(tagName) + strlen(tagContent) + 4;  string = realloc(string, stringSizeNew); strcat(string, tagStart); strcat(string, tagName); strcat(string, tagEnd);  tag = tag-&amp;gt;next;  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int XML_free_doc(xml_doc *doc)&lt;br /&gt;
{ if (XML_remove_tag(doc, doc-&amp;gt;root)) { MEM_freeN(doc); return 1; } else { return 0; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void XML_free_string(char *string)&lt;br /&gt;
{ free(string);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
char *XML_write_string(xml_doc *doc)&lt;br /&gt;
{ /* start with the root tag and follow binary tree recursively  Blender's guardedalloc system does not allow for memory reallocaton so will have to use standard C library functions to build the string.*/ char *string; char *xmlStart = &amp;quot;&amp;lt;?xml version='1.0' ?&amp;gt;&amp;quot;;  string = calloc(strlen(xmlStart), sizeof(&amp;quot;char&amp;quot;)); strcat(string, xmlStart);  generate_xml_string(doc-&amp;gt;root, string);  return string;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
-- [[BlenderDev/DeveloperWikiJeremyWall|DeveloperWikiJeremyWall]] - 11 Feb 2005&lt;br /&gt;
[[Category:Script]]&lt;/div&gt;</summary>
		<author><name>wiki&gt;Terrywallwork</name></author>
		
	</entry>
</feed>