<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DgsSVGNodeGetAttribute?action=history&amp;feed=atom</id>
	<title>DgsSVGNodeGetAttribute - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DgsSVGNodeGetAttribute?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeGetAttribute&amp;action=history"/>
	<updated>2026-04-05T19:00:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeGetAttribute&amp;diff=81336&amp;oldid=prev</id>
		<title>Fernando187: Remove obsolete Requirements section</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeGetAttribute&amp;diff=81336&amp;oldid=prev"/>
		<updated>2024-11-07T17:32:07Z</updated>

		<summary type="html">&lt;p&gt;Remove obsolete Requirements section&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:32, 7 November 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l39&quot;&gt;Line 39:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 39:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;iprint(color) -- output should be &amp;quot;rgb(255,0,0)&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;iprint(color) -- output should be &amp;quot;rgb(255,0,0)&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Requirements==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Requirements|n/a|1.5.8-9.20979|}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==See Also==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==See Also==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DGSFUNCTIONS}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{DGSFUNCTIONS}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-74224:rev-81336 --&gt;
&lt;/table&gt;</summary>
		<author><name>Fernando187</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeGetAttribute&amp;diff=74224&amp;oldid=prev</id>
		<title>TFv10: Created page with &quot;{{Client function}} __NOTOC__ This function change single node attribute in svg document . ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; string dgsSVGNodeGetAttribute( xmlnode xmlNode, string attributeName) &lt;/syntaxhighlight&gt;  ===Required Arguments=== *'''xmlNode:''' The xmlnode you want to change their attribute value. *'''attributeName:''' The attribute name that you want change its value . ===Returns=== * Returns ''string attribute value'' if succeed, ''false'' otherwi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsSVGNodeGetAttribute&amp;diff=74224&amp;oldid=prev"/>
		<updated>2022-02-26T13:31:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Client function}} __NOTOC__ This function change single node attribute in svg document . ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; string dgsSVGNodeGetAttribute( xmlnode xmlNode, string attributeName) &amp;lt;/syntaxhighlight&amp;gt;  ===Required Arguments=== *&amp;#039;&amp;#039;&amp;#039;xmlNode:&amp;#039;&amp;#039;&amp;#039; The &lt;a href=&quot;/wiki/Xmlnode&quot; title=&quot;Xmlnode&quot;&gt;xmlnode&lt;/a&gt; you want to change their attribute value. *&amp;#039;&amp;#039;&amp;#039;attributeName:&amp;#039;&amp;#039;&amp;#039; The attribute name that you want change its value . ===Returns=== * Returns &amp;#039;&amp;#039;string attribute value&amp;#039;&amp;#039; if succeed, &amp;#039;&amp;#039;false&amp;#039;&amp;#039; otherwi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function change single node attribute in svg document .&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string dgsSVGNodeGetAttribute( xmlnode xmlNode, string attributeName)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''xmlNode:''' The [[xmlnode]] you want to change their attribute value.&lt;br /&gt;
*'''attributeName:''' The attribute name that you want change its value .&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns ''string attribute value'' if succeed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
loadstring(exports.dgs:dgsImportFunction())() -- load dgs functions using loadstring.&lt;br /&gt;
&lt;br /&gt;
local svg = dgsCreateSVG(500,500) -- Create the SVG . &lt;br /&gt;
local svgDoc = dgsSVGGetDocument(svg) -- Get the SVG Document so you can modify it .&lt;br /&gt;
local path = dgsSVGCreateNode(svgDoc,&amp;quot;path&amp;quot;,{&lt;br /&gt;
	{&amp;quot;M&amp;quot;,153,334},&lt;br /&gt;
	{&amp;quot;C&amp;quot;,153, 334, 151, 334, 151, 334},&lt;br /&gt;
	{&amp;quot;C&amp;quot;,151, 339, 153, 344, 156, 344},&lt;br /&gt;
	{&amp;quot;C&amp;quot;,164, 344, 171, 339, 171, 334},&lt;br /&gt;
	{&amp;quot;C&amp;quot;,171, 322, 164, 314, 156, 314},&lt;br /&gt;
	{&amp;quot;C&amp;quot;,142, 314, 131, 322, 131, 334},&lt;br /&gt;
	{&amp;quot;C&amp;quot;,131, 350, 142, 364, 156, 364},&lt;br /&gt;
	{&amp;quot;C&amp;quot;,175, 364, 191, 350, 191, 334},&lt;br /&gt;
})&lt;br /&gt;
dgsSVGNodeSetAttributes(path,{&lt;br /&gt;
	[&amp;quot;stroke&amp;quot;] = {255,255,0},&lt;br /&gt;
	[&amp;quot;stroke-width&amp;quot;] = &amp;quot;5px&amp;quot;,&lt;br /&gt;
	[&amp;quot;fill&amp;quot;] = &amp;quot;rgb(255,0,0)&amp;quot;,&lt;br /&gt;
})&lt;br /&gt;
local theImage = dgsCreateImage(200,200,500,500,svg,false) -- Render the SVG by dgsCreateImage&lt;br /&gt;
local color = dgsSVGNodeGetAttribute(path,'fill')&lt;br /&gt;
iprint(color) -- output should be &amp;quot;rgb(255,0,0)&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20979|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>TFv10</name></author>
	</entry>
</feed>