Skip to main content
It is possible to retrieve the value of an Process XML field using:
SourceCode.K2Utilities.XMLFieldMod.GetXMLValue(K2.ProcessInstance.XmlFields["MyData"].Value, "/myElement");

But does anyone know of a way to retrieve the "attribute" of this field? I have XML elements that have attributes but I can't figure out how to pull them out.

Thanks!
instead of GetXMLValue, which returns a string, use GetXMLNode, which returns a node, create a new XMLNode and set it to that, and use the attributes property of the new node.
pj

Reply