Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / June 2007

Tip: Looking for answers? Try searching our database.

Creating form with a predifened output xml

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
madhur - 08 May 2007 05:27 GMT
Hello

I want to create an infopath form with output xml like this :
<a>
  <b>
...
 </b>
</a>

<c>
   <b>
   .....
   </b>
</c>

Note that the XML element *b* here have the same name but contain
entirely different data and child elements. I am facing the problem of
not creating the element with the same name again in other place in
the XML. Is this a restriction ? How can I overcome it ?

This XML output is one of our organization standard. So I cannot
violate it. How can I generate this type of XML from infopath form.

Regards,
MAdhur
S.Y.M. Wong-A-Ton - 08 May 2007 07:37 GMT
You can make the two b's unique (that is, contain different data) by defining
a different namespace on each one of them. InfoPath will not prohibit you to
use the b twice. However, it *will* assume that the two b's contain the same
data if the opposite hasn't been defined.
---
S.Y.M. Wong-A-Ton

> Hello
>
[quoted text clipped - 21 lines]
> Regards,
> MAdhur
madhur - 08 May 2007 09:59 GMT
On May 8, 11:37 am, S.Y.M. Wong-A-Ton
<SYMWongA...@discussions.microsoft.com> wrote:
> You can make the two b's unique (that is, contain different data) by defining
> a different namespace on each one of them. InfoPath will not prohibit you to
[quoted text clipped - 28 lines]
> > Regards,
> > MAdhur

Thanks for the reply. But dont you think , changing the name space
will result in
the violation of standard. If I understand, the output of XML should
contain only one
namespace unless mentioned by the standard. Either I am missing
something or the
standard itself is poorly defined. What do you think ?

Madhur
S.Y.M. Wong-A-Ton - 08 May 2007 11:47 GMT
I'm not sure which standard you're talking about, but I'm assuming you mean
the organization's standard? Well... I cannot be the judge of whether it is
poorly defined or not. :)  Obviously there must have been a reason to choose
just one namespace, but XML does not dictate that you must use only one
namespace in a document - and neither does InfoPath.

If the namespace is not defined in the XML or XSD, unfortunately, it will be
in violation of the organization's standard.
---
S.Y.M. Wong-A-Ton


> On May 8, 11:37 am, S.Y.M. Wong-A-Ton
> <SYMWongA...@discussions.microsoft.com> wrote:
[quoted text clipped - 40 lines]
>
> Madhur
S.Y.M. Wong-A-Ton - 08 May 2007 12:33 GMT
I forgot to mention that you could define the b in such a way that it
contains anything. But I guess that would also be in violation of the
standard if certain elements are expected to appear in each b element. Just
out of curiosity: Was an XSD defined for this XML?
---
S.Y.M. Wong-A-Ton

> On May 8, 11:37 am, S.Y.M. Wong-A-Ton
> <SYMWongA...@discussions.microsoft.com> wrote:
[quoted text clipped - 40 lines]
>
> Madhur
madhur - 08 May 2007 13:50 GMT
On May 8, 4:33 pm, S.Y.M. Wong-A-Ton
<SYMWongA...@discussions.microsoft.com> wrote:
> I forgot to mention that you could define the b in such a way that it
> contains anything. But I guess that would also be in violation of the
[quoted text clipped - 47 lines]
>
> > Madhur

Hello

Actually I am talking about the Acord(www.acord.org) standard for
insurance. If you have any idea about
this standard, do let me know.

Madhur
S.Y.M. Wong-A-Ton - 09 May 2007 10:50 GMT
It is the first time I'm hearing about it, so am unfamiliar with it.
---
S.Y.M. Wong-A-Ton

> On May 8, 4:33 pm, S.Y.M. Wong-A-Ton
> <SYMWongA...@discussions.microsoft.com> wrote:
[quoted text clipped - 57 lines]
>
> Madhur
sajithkumartg@gmail.com - 11 Jun 2007 05:48 GMT
> Hello
>
[quoted text clipped - 21 lines]
> Regards,
> MAdhur

Hi Madhur

I am not sure if you are using Office 2007 or not. I have found that
InfoPath 2007 has a facility called Reference fields, by which you can
create two fields with same name under two different groups. Using
this feature, I was able to create the following XML, which seems to
be in lines with your example:

<?xml version="1.0" encoding="UTF-8"?><?mso-infoPathSolution
solutionVersion="1.0.0.3" productVersion="12.0.0" PIVersion="1.0.0.0"
href="file:///C:\Documents%20and%20Settings\sajlggo\Local%20Settings
\Application%20Data\Microsoft\InfoPath\Designer2\e53d7f9946144a8a
\manifest.xsf" ?><?mso-application progid="InfoPath.Document"
versionProgid="InfoPath.Document.2"?><my:myFields xmlns:my="http://
schemas.microsoft.com/office/infopath/2003/myXSD/2007-06-11T04:39:59"
xml:lang="en-us">
    <my:A>
        <my:B>Sajith</my:B>
    </my:A>
    <my:C>
        <my:B>Kumar</my:B>
    </my:C>
</my:myFields>

Thanks
Sajith
madhur - 11 Jun 2007 15:34 GMT
On Jun 11, 12:48 am, sajithkuma...@gmail.com wrote:

> > Hello
>
[quoted text clipped - 49 lines]
>
> - Show quoted text -

Hi Sajith

I am aware of the field referencing. But in the current standard,
there are some field names with same names having entirely different
child names. This results in the duplication of fields and this may
result in the redundant fields.

Thanks
Madhur
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.