Complex elements with attributes and inner text content

A

Angelo Scotto

Hi, i've a problem using infopath and xsd main data source.

My data source schema has a section like the following:

<xs:element minOccurs="0" maxOccurs="1" name="Tables">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="Table">
<xs:complexType>
<xs:attribute name="order" type="xs:int"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>

The idea is to have an instance such as the following one (a pretty
common structure for xml files):

<Tables>
<Table order="1">
ConfigurationTable
</Table>
<Table order="2">
TableOne
</Table>
<Table order="3">
TableTwo
</Table>
<Table order="4">
TableThree
</Table>
</Tables>

InfoPath seems not allowing me to add a repating table section (each
row having table inner text and order columns) because it seems unable
to use or refer to element's inner text.

Is there a way to explain infopath that in the first column it should
place innertext (or, said in xpath terms, ".\text()") without having
to unnecessarily complicate xsd schema moving table name inside a
string type element child?

Thank you very much for your help,
Angelo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top