in reply to How do I dicern and pull data elements from a Visio
However, there doesn't seem to be a corresponding get_text method.sub set_text { my $self = shift; my $text = shift; my $opts = shift; my $textN = Visio::generic_create_node($self->{shapeNode}, 'Text' ); my $textNode = $self->{xmldoc}->createTextNode($text); $textN->removeChildNodes(); $textN->appendChild($textNode); }
Also as you will see from the above code, it expects to get some options(?) in $opts which however are never used. Strange, definitely alpha code ...
Update: You will find the official info for the XML-schema used for Visio, here. If everything else fails, you can indeed still use the various XML-tools on cpan to directly access the XML-nodes and attributes and change them.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I dicern and pull data elements from a Visio
by eggmatters (Initiate) on Feb 27, 2008 at 23:53 UTC | |
by eggmatters (Initiate) on Feb 28, 2008 at 17:41 UTC |