Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: Accessing XML Files In WinForms App

$
0
0

Hi Nigel, I think the problem is that Element, Text and EndElement are not instance members and therefore cannot be accessed via the instance nodetype.  Try something like:

        perform until (reader::EOF)

           invoke reader::Read()

           Evaluate reader::NodeType

           When type XmlNodeType::Element

               continue

           When type XmlNodeType::Text

               continue

           When type XmlNodeType::EndElement

               continue

           When Other

               continue

           End-Evaluate

        end-perform

Note also that EOF is a property on XmlTextReader and, as such, should not be accessed using parentheses.  Later versions of the compiler will produce an error in this case.


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>