title: COBOL XML PARSE equivalent of innerXML?
body: <p>I'm trying to access the entire     "&lt; mynode >" node in the sample XML below, including start and end tags. I need to store that snippet of XML as XML in a database.</p>
  
  <pre><code>&lt;a&gt;
    &lt;mynode &gt;
     &lt;c&gt;Content&lt;/c&gt;
     &lt;c&gt;More content&lt;/c&gt;
    &lt;/mynode &gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>I have access to the XML PARSE function, and that's how I've been accessing node values, but I'm not sure how to use it to access an entire node.</p>
  
  <p>One option that came to mind was recording document locations where start-of-element and end-of-element XML-TEXT = 'b', and then taking that portion of the document, but that seems inelegant. Is there a better way?</p>
  
  <p>Edit: I count how many characters I've read into the document, and store that value when I reach the start and end of the "&lt; mynode  >" node. </p>
  
  <p>Then I can access the document with</p>
  
  <pre><code>STRING MY-DOCUMENT(MYNODE-START-POSE, (MYNODE-NODE-FINISH - MYNODE-NODE-START)) 
       DELIMITED BY SIZE
       INTO MY-AREA
  </code></pre>