🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.document.graphics.server
Article #75

Re: Add a tag in a svg file, using an xml command

#75
From: Bob_Emerson
Date: Thu, 22 Jul 2004 15:23
30 lines
1364 bytes
See the earlier responses from Chuck and Wilson for two options.

To make it a little easier to use AGS's set command to replace the outer tag, write your SVG with one or more <g> tags

<svg>
<g>
<circle ... />
</g>
... other stuff
</svg>

Then replace the old <g> with just the circle with the new one that has both the circle and the ellipse. (The logic and code to do this would have to happen outside of AGS.)

<svg>
<g>
<circle ... />
<ellipse ... />
</g>
... other stuff
</svg>

Or something like this might work with predefined placeholders :
<svg>
<g id="circle" >
<circle ... />
<g id="empty1"></g>
<g id="empty2"></g>
</svg>

Then you can replace the empty g's...
Technical Details
Message-ID: <3bb503bd.7@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <3bb503bd.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1effe5,d83b5754d10d7ca5
X-Google-Attributes: gid1effe5,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob_Emerson@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.document.graphics.server
Subject: Re: Add a tag in a svg file, using an xml command
Message-ID: <3bb503bd.7@webx.la2eafNXanI>
Date: Thu, 22 Jul 2004 08:23:41 -0700
References: <3bb503bd.-1@webx.la2eafNXanI>
Lines: 33
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit