Is there a way to get the structure of a repeating group element programmatically in IP2003?
Here is what I am trying to do:
I have a secondary (or sometimes a primary) data source driven by a web service. There are times when the web service returns no data due to the input parameters, however I need to be able to add a node and it's children to it, but because there is no data to use as a template, I cannot programmatically add one using the data source. Is there a way to get to the schema and look up the information to create a new node (and it's children)?
I am using the 2003 OM.
Example:
Sample of what InfoPath sees:
<MyData>
....<Row> (repeating)
........<Col1 />
........<Col2 />
........<Col3 />
....</Row>
</MyData>
I don't know in advance what this structure is, so I cannot assume anything about the data source. I would like to read the XSD document in some way to extract the information and then add a new Row element and the subsequent column elements.
Is this possible?