Count XML Elements EnsLib.EDI.XML.Document
Hello everyone,
I'm a bit confused about the number of elements in an XML object.
I have an object of the class EnsLib.EDI.XML.Document
The xsd structure ( DocType) is an SDA Object
</container>
<Patient>
</Patient>
<Documents>
<Document>
<DocumentNumber>0000000000000010008162012</DocumentNumber>
<DocumentCompletionStatus><Code>IP</Code></DocumentCompletionStatus>
<FileType>XML</FileType>
<Stream>PD...</Stream>
</Document>
<Document>
<DocumentNumber>0000000000000010008157893</DocumentNumber>
<DocumentCompletionStatus><Code>IP</Code></DocumentCompletionStatus>
<FileType>XML</FileType>
<Stream>PD94bT....4=</Stream>
</Document>
</Documents>
</container>
How can I count the number of document? I have already tried to use the method choiceGetCount but get no result.
Generating an Xpath object and counting the elements did not work either.
Does anyone have an idea for me. I am sure that it is actually not difficult :-(
Kind regards
Armin