Beta Shell
v2.0 ยท web2.us.cloudlogin.co
[FM]
[CMD]
[PHP]
[DB]
[INFO]
[SEC]
File Manager
~
/
usr
/
share
/
doc
/
perl-GraphViz-XML
Upload
3 items
Name
Size
Perms
Modified
Actions
[ .. / .. ]
xml.pl
386 B
-rw-r--r--
2008-07-29 08:49:39
Edit
Del
Editing: xml.pl
(386 B)
Path: /usr/share/doc/perl-GraphViz-XML/xml.pl
Back
#!/usr/bin/perl -w # # A example which represents some XML as a tree use strict; use lib '../lib'; use GraphViz::XML; my $xml = '<html><head><title>news</title></head><body> <p>Check out the <a href="/news/">latest news</a>.</p> <p>Under construction!!!</p></body></html>'; my $graph = GraphViz::XML->new($xml); $graph->as_png("xml.png"); #print $g->as_text; #print $g->_as_debug;