Expand Minimize
This topic has not yet been rated - Rate this topic

SolutionXMLElement property

Office XP

SolutionXMLElement property

http://msdn.microsoft.com/en-us/library/aa191384(v=office.10) See also         Example         http://msdn.microsoft.com/en-us/library/aa164116(v=office.10) Applies to

Contains solution-specific, well-formed XML data stored with a document.

Version added

2002

Syntax

xmlData = object.SolutionXMLElement (elementName)
object.SolutionXMLElement (elementName) = xmlValue

xmlData

String. The current XML data stored in elementName.

object

Required. An expression that returns a Document object.

elementName

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

xmlValue

Required String. The new valid, well-formed XML data to store in elementName.

Remarks

The value of elementName must match the value of the SolutionXML element's Name attribute. For example, if a solution's XML data began with the statement <SolutionXML Name='somename'>, use the elementName "somename" to retrieve that data.

  • If elementName already exists, the SolutionXMLElement property overwrites existing XML data. Use the SolutionXMLElementExists property before writing XML data to avoid losing data unintentionally.
  • If elementName does not exist, the SolutionXMLElement property creates an element by that name.

Because your XML data is validated when you write it, you will typically perform this operation during a document save event for performance reasons.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.