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!
Page 1 / 1
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
pj
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.