infopath xml formatting

K

Kingsley Millar

I am using an infopath form to submit xml data into a unix based database.

the xml data is structured roughly like so:

<packetgroup>
<transmissiongroup>
<headergroup>
</headergroup>
<datagroup>
</datagroup>
</transmissiongroup>
</packetgroup>

the datagroup is a repeating group.

when i create an xml form with infopath wihich just one set of data in the
datagroup group the xml is formatted perfectly and there is no problem.

however with more than one record infopath puts the final tags like so:
</transmissiongroup> </datagroup>
</packetgroup>

causing the unix system to not recognise subsequent data groups beyond the
first one.

Any ideas on how to stop this from occurring?
 
G

Greg Collins [InfoPath MVP]

There is no guarantee as to how the actual XML tags will be structured in the file. Is the Unix system actually expecting each tag to be on a separate line? That's not very XML-ish of it. If that's the case, then you might be able to strip out or add in spaces/returns via code. Just a thought.
 

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