SolutionXMLElementExists property

Microsoft Visio Developer Reference

SolutionXMLElementExists property

   Example   

Indicates whether a named SolutionXML element exists in the document.

Version added

2002

Syntax

boolRet = object.SolutionXMLElementExists (elementName)

boolRet

Boolean. True (-1) if a SolutionXML element named elementName exists; False (0) if it does not.

object

Required. An expression that returns a Document object.

elementName

Required String. The case-sensitive name of the SolutionXML element.

Remarks

Because the SolutionXMLElement property can overwrite existing XML data, always use the SolutionXMLElementExists property to verify whether elementName already exists in the document.