Add SolutionXML Element to the Visio Drawing in PHP
Contents
[
Hide
]
Aspose.Diagram - Add SolutionXML Element to the Visio Drawing
To Add SolutionXML Element to the Visio Drawing using Aspose.Diagram Java for PHP, simply invoke AddSolutionXmlElement module. Here you can see example code.
PHP Code
# Create instance of Diagram
$diagram=new Diagram($dataDir."drawing.vsd");
\# initialize SolutionXML object
$solution_xml=new SolutionXML();
\# set name
$solution_xml->setName("Solution XML");
\# set xml value
$solution_xml->setXmlValue("XML Value");
\# add SolutionXML element
$diagram->getSolutionXMLs()->add($solution_xml);
\# save Visio diagram
$saveFileFormat=new SaveFileFormat();
$diagram->save($dataDir."SolutionXmlElement.vdx", $saveFileFormat->VDX);
print "Added SolutionXML Element to the Visio Drawing.".PHP_EOL;
Download Running Code
Download Add SolutionXML Element to the Visio Drawing (Aspose.Diagram) from any of the below mentioned social coding sites: