NodeValue property: Incoming Business Interlink class
Description
The NodeValue property returns the value of a node within an XML document as a string.
This property is read-only.
Example
Here is a set of XML request code.
<?xml version="1.0"?>
<postreq>
<email>joe_blow@example.com</email>
<projtitle>
<projsubtitle>first_subtitle</projsubtitle>
<projsubtitle>second_subtitle</projsubtitle>
<projsubtitle>third_subtitle</projsubtitle>
</projtitle>
</postreq>
Here is the PeopleCode that gets the value of the third <projsubtitle> element, third_subtitle.
Local BIDocs &rootInDoc, &postreqDoc, &projtitleDoc, &projsubtitleDoc;
Local string &name, &blob;
&blob = %Request.GetContentBody();
&rootInDoc = GetBiDoc(&blob);
&postreqDoc = &rootInDoc.GetNode(1);
&projtitleDoc = &postreqDoc.GetNode(2);
&projsubtitleDoc = &projtitleDoc.GetNode(3);
&projsubtitleName = &projsubtitleDoc.NodeValue;