difficulty in designing infopath form from more than one xml schem

  • Thread starter ChandraSekhar Annapragada
  • Start date
C

ChandraSekhar Annapragada

Hi all,

We are designing infopath forms basing on xml schema provided with us.

There is an option to generate infopath forms from more than one xml schema.

but if we select the 2nd schema to be added to the infopath form, it is
showing an
error like "
The XML Schema or XML document cannot be used because InfoPath does not
support adding complete XML Schemas without a target namespace, or XML
documents without an explicit namespace."

We could not understand this.

Could you please help us on this?

Thanks ,

CS
 
A

Andrew Watt [MVP - InfoPath]

Hi all,

We are designing infopath forms basing on xml schema provided with us.

There is an option to generate infopath forms from more than one xml schema.

but if we select the 2nd schema to be added to the infopath form, it is
showing an
error like "
The XML Schema or XML document cannot be used because InfoPath does not
support adding complete XML Schemas without a target namespace, or XML
documents without an explicit namespace."

We could not understand this.

Could you please help us on this?

Thanks ,

CS

Very broadly, there are two types of XML document. Those where
elements are in a namespace and those where elements are not in any
namespace.

In this document,

<book>
<title>Microsoft InfoPath 2003 Kick Start</title>
<author>Andrew Watt</author>
</book>

the elements are not in any namespace.

However, in this document

<book xmlns="http://www.xmml.com/somefictitiousnamespace" >
<title>Microsoft InfoPath 2003 Kick Start</title>
<author>Andrew Watt</author>
</book>

each element is associated with a URI,
http://www.xmml.com/somefictitiousnamespace", which allows the element
to be more precisely identified.

A W3C XML Schema document may have a targetNamespace attribute on the
start tag of the <xsd:schema> element. Is there a targetNamespace
attribute present on the start tag in the schema document that is
causing problems for you?

Andrew Watt
MVP - InfoPath
 

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