ROASP:
Serverside SVG
Programming

Home

An Open-Source contribution from RO IT Systems

Perl SVG Tutorials

Search Query

Home | Free Code Samples | SVG Module Documentation | SVG Tutorials | SVG Gallery | Forum & Discussion | SVG Perl Modules | SVG-Perl Articles | External Links | Local Copies of Modules (Win32 & CPAN) | YASB: A Perl SVG Browser

Tutorial 6:

Using SVG::Parser

This tutorial is not yet ready. Please come back at another time. The demonstration code for this component is not even in the works.

SVG::Parser lets you read in an existing SVG file so that it can be manipulated using standard SVG commands

Currently, version 2.0 of SVG.pm does not internally support DOM traversiong functionality such as getting the children,siblings,or parent of an element, so the interaction capability between SVG::Parser and SVG is limited to manipulations of a known image. The next version of SVG will support all these and more key functions which will make SVG::Parser extremely useful.

#!/usr/bin/perl -w
use strict;
use SVG;
use SVG::Parser;

Next, we create an SVG object and define its height and width.

# create an SVG object
my $svg= SVG->new(width=>200,height=>200); 

For more information, please send the author an email: Ronan Oger

Click here for the source code, and Click here to see the result.

Previous Tutorial | Tutorial Home | Next Tutorial


Take part in the Annual Global SVG Conference! SVG Open 2005.

August 15-18, Enschede, the Netherlands

At the SVG Open 2005 Conference you will have the opportunity to learn about the SVG standard, how to use it to create effective and compelling Web content, techniques for developing SVG software solutions, and the latest developments from the W3C. You will meet the authors of the SVG specifications and the creators of SVG applications in person, and you will have the opportunity to provide your own input for future development.

You will get a chance to see the newest SVG applications and tools, and you will hear early announcements of upcoming SVG product releases. SVG Open 2005 courses will enlighten you on SVG, XML and related standards, graphic design and Web application design. Courses will be available at both introductory and advanced levels, in order to serve the needs of all conference attendees.

Click on the image below to proceed to the SVG Open website

SVG Open logo



SVG Home© 2002-2005 Ronan Oger Site Info