Share via


ISPHierarchyData.AddAttributes Method

Writes additional attributes that modify a node that has been associated with an XmlDocument. The XmlDocument is the parent of the node to be modified.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Sub AddAttributes ( _
    parentDoc As XmlDocument, _
    ByRef node As XmlElement _
)
'Usage
Dim instance As ISPHierarchyData
Dim parentDoc As XmlDocument
Dim node As XmlElement

instance.AddAttributes(parentDoc, node)
void AddAttributes(
    XmlDocument parentDoc,
    ref XmlElement node
)

Parameters

Remarks

This method adds information to a main document by adding to a node that resides in an xml tree structure.

When XmlDocument objects are passed as parameters to SharePoint FoundationWebService methods, or are returned from WebService methods, they are marshaled as XmlNode objects.

All documents within an XML structure are considered nodes; the document that is represented by parentDoc is the main node, or parent node. This method adds to the attributes of a node that is associated with the parentDoc.

SharePoint XmlElement objects or dataXML islands can be manipulated with classes in the SoapServer namespaces.

See Also

Reference

ISPHierarchyData Interface

ISPHierarchyData Members

Microsoft.SharePoint.WebPartPages Namespace

SoapXml.SoapXmlElement

[https://support.microsoft.com/kb/330600]

HierarchicalDataSourceControl

Other Resources

How to: Add and Remove Web References

Walkthrough: Building a Basic XML Web Service Using ASP.NET