Markup at runtime - nested elements

  • Thread starter Hans-Peter Radenberg
  • Start date
H

Hans-Peter Radenberg

Hello there,

I'm doing manuscript cataloguing and am checking out whether Infopath would
be suitable for my needs. I'm facing two main problems:

1.) I have markup text like <sentence>aaa <name>bbb</name> ccc
<name>ddd<name> eee</sentence>. When I import an XML file like this to
Infopath, <sentence> is identified as group and its contents is not
displayed, the two <name> elements bbb and ddd are displayed in two rows.

Is it possible to display <sentence> as consecutive in one paragraph,
including the <name> elements? Maybe by using some kind of XSLT
transformation?

2.) Is it possible to markup at runtime (insert XML elements); i.e.: I have
an XML element <sentence>aaa bbb ccc ddd eee</sentence>. Can I mark bbb and
assign it to the xml element <name> at runtime?

Thanks for your kind help in advance

Hans-Peter Radenberg
 
B

Brian Teutsch [MSFT]

InfoPath is not capable of creating "mixed content" tags like you describe
below. That tag structure can be described in schema, but InfoPath cannot
create forms that produce that XML.

Brian
 

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