I think this would be an interesting idea.  Basically you would:

  a) load an SVG document into the DOM, put it into an invisible container
(display:none)
  b) then walk the DOM in a depth-first fashion, cloning elements one a
time, to a visible container

Jeff

2011/4/22 Barend Köbben <[email protected]>

> Well, you could do this maybe by scripting, removing the comments line by
> line, but I guess you could also use Firebug or another such web browser
> debugger to "dissect" what is where in the file...
>
>
> --
> Barend Köbben
> ITC - University of Twente, Faculty of Geo-Information
> Science and Earth Observation
> PO Box 217, 7500AE Enschede (The Netherlands)
>
>
>
> On 22-04-11 13:10, "Pranav Lal" <[email protected]> wrote:
>
> >
> >
> >
> >
> >
> >
> >      Hi Jake,
> >
> >Ouch I am dealing with files that have over 100 lines. Hmm.
> >
> >Time I got down to it.
> >Pranav
> >
> >-----Original Message-----
> >From: [email protected]
> ><mailto:svg-developers%40yahoogroups.com>
> >[mailto:[email protected]
> ><mailto:svg-developers%40yahoogroups.com>]
> >On Behalf Of Jacob Beard
> >Sent: Friday, April 22, 2011 4:06 PM
> >To: [email protected]
> ><mailto:svg-developers%40yahoogroups.com>
> >Subject: Re: [svg-developers] Any SVG editor with a trace function?
> >
> >Probably the easiest way is to just comment out all of the elements you
> >don't want to see, using XML comments (<!-- -->), and then iteratively add
> >them back in.
> >
> >Jake
> >
> >On Fri, Apr 22, 2011 at 2:01 AM, Pranav Lal <[email protected]
> ><mailto:pranav.lal%40gmail.com>> wrote:
> >
> >>
> >>
> >> Hi all,
> >>
> >> I have a large SVG image which I want to dissect. Is there a program in
> >> which I can run a SVG image line by line and watch the result much like
> >>in
> >> a debugger?
> >>
> >> Pranav
> >>
> >>
> >>
> >
> >[Non-text portions of this message have been removed]
> >
> >------------------------------------
> >
> >-----
> >To unsubscribe send a message to:
> >[email protected]
> ><mailto:svg-developers-unsubscribe%40yahoogroups.com>
> >-or-
> >visit http://groups.yahoo.com/group/svg-developers and click "edit my
> >membership"
> >----Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>
> Faculty of Geo-Information Science and Earth Observation (ITC)
> University of Twente
> Chamber of Commerce: 501305360000
>
> E-mail disclaimer
> The information in this e-mail, including any attachments, is intended for
> the addressee only. If you are not the intended recipient, you are hereby
> notified that any disclosure, copying, distribution or action in relation to
> the content of this information is strictly prohibited. If you have received
> this e-mail by mistake, please delete the message and any attachment and
> inform the sender by return e-mail. ITC accepts no liability for any error
> or omission in the message content or for damage of any kind that may arise
> as a result of e-mail transmission.
>
>
> ------------------------------------
>
> -----
> To unsubscribe send a message to:
> [email protected]
> -or-
> visit http://groups.yahoo.com/group/svg-developers and click "edit my
> membership"
> ----Yahoo! Groups Links
>
>
>
>


[Non-text portions of this message have been removed]



------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to