cancel
Showing results for 
Search instead for 
Did you mean: 

Syndication problem while creating MAP with XML Schema

Former Member
0 Kudos

Hi,

I am trying to create the MAP using Destination Properties with Type "XML Schema File" but Root option is not enabled and because of this problem OK button is also disabled. Please look into the following xml schema structure and guide me what is the problem:

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"

xmlns="http://www.tibco.com/schemas/TibcoManuals/Schema.xsd"

targetNamespace="http://www.tibco.com/schemas/TibcoManuals/Schema.xsd"

elementFormDefault="qualified"

attributeFormDefault="unqualified">

<xs:element name="Product">

<xs:complexType>

<xs:sequence>

<xs:element ref="Name"/>

</xs:sequence>

</xs:complexType>

</xs:element>

<xs:element name="Name" type="xs:string"/>

</xs:schema>

Regards,

Shahid Nadeem

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shahid,

I made some changes in your xml file

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:element name="Product">

<xs:complexType>

<xs:sequence>

<xs:element ref="Name"/>

</xs:sequence>

</xs:complexType>

</xs:element>

<xs:element name="Name" type="xs:string"/>

</xs:schema>

I used this XML file and the <b>OK </b>button was enabled. <b>Product </b>appears to be the Root element.

Try this out.

Please revert if any queries.

Thanks and Regards,

<b>Sagar Sonje

Mark Helpful Answers</b>

Answers (1)

Answers (1)

Former Member
0 Kudos

I found most of the issues I've had with the XSD files have been the header. Try this...

<?xml version="1.0" ?>

<xs:schema id="Products" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">

<xs:element name="Product" msdata:IsDataSet="true" msdata:EnforceConstraints="False">

<xs:complexType>

<xs:sequence>

<xs:element ref="Name"/>

</xs:sequence>

</xs:complexType>

<xs:element name="Name" type="xs:string"/>

</xs:schema>

Former Member
0 Kudos

Dear Andrew,

Thank you very much for your one step helping.

I have tried with your xsd but Root option is still disabled. And you know without specifying Root element I cannot create a map of type Xml Schema. Kindly help me more....

Regards,

Shahid Nadeem

Message was edited by:

Shahid Nadeem