1GraphViz::XML(3)      User Contributed Perl Documentation     GraphViz::XML(3)
2
3
4

NAME

6       GraphViz::XML - Visualise XML as a tree
7

SYNOPSIS

9         use GraphViz::XML;
10
11         my $graph = GraphViz::XML->new($xml);
12         print $g->as_png;
13

DESCRIPTION

15       This module makes it easy to visualise XML as a tree. XML is hard for
16       humans to grasp, especially if the XML is computer-generated. This
17       modules aims to visualise the XML as a graph in order to make the
18       structure of the XML clear and to aid in understanding the XML.
19
20       XML elements are represented as diamond nodes, with links to elements
21       within them. Character data is represented in round nodes.
22
23       Note that the XML::Twig module should be installed.
24

METHODS

26   new
27       This is the constructor. It takes one mandatory argument, which is the
28       XML to be visualised. A GraphViz object is returned.
29
30         my $graph = GraphViz::XML->new($xml);
31
32   as_*
33       The XML can be visualised in a number of different graphical formats.
34       Methods include as_ps, as_hpgl, as_pcl, as_mif, as_pic, as_gd, as_gd2,
35       as_gif, as_jpeg, as_png, as_wbmp, as_ismap, as_imap, as_vrml, as_vtx,
36       as_mp, as_fig, as_svg. See the GraphViz documentation for more
37       information. The two most common methods are:
38
39         # Print out a PNG-format file
40         print $g->as_png;
41
42         # Print out a PostScript-format file
43         print $g->as_ps;
44

BUGS

46       GraphViz tends to reorder the nodes. I hope to find a work around soon
47       (possibly with ports).
48

AUTHOR

50       Leon Brocard <acme@astray.com>
51
53       Copyright (C) 2001, Leon Brocard
54
55       This module is free software; you can redistribute it or modify it
56       under the Perl License, a copy of which is available at
57       <http://dev.perl.org/licenses/>.
58
59
60
61perl v5.30.1                      2020-01-30                  GraphViz::XML(3)
Impressum