NodeName property: Incoming Business Interlink class

Description

The NodeName property gets the name of an XML element referenced by a BiDocs object. Use this to get the name of an XML element when you used GetNode with an index number to retrieve it (meaning that you did not have the name of the XML element when you used GetNode).

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 name of the <email> element, email.

Local BIDocs &rootInDoc, &postreqDoc, &emailDoc; 
Local string &emailName, &blob; 
&blob = %Request.GetContentBody(); 
&rootInDoc = GetBiDoc(&blob); 
&postreqDoc = &rootInDoc.GetNode(1); 
&emailDoc = &postreqDoc.GetNode(1); 
&emailName = &emailDoc.NodeName;