<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Problem with xml namespace in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/problem-with-xml-namespace/qaa-p/1044684#M413413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Sender File adapter configuration in the Int. Directory, within section Content Conversion parameters, &lt;/P&gt;&lt;P&gt;there's are parameters called Document Name and Document Namespace.  You should put in the corresponding values for the Message Type and the Namespace the Message Type belongs to that you defined in the Int. Repository.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incidentally, within your test environment of your Message Mapping, if you click on the button "Generate Instance", it will give you an empty instance with the correct namespace of the message the mapping is expecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Oct 2005 15:39:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-28T15:39:48Z</dc:date>
    <item>
      <title>Problem with xml namespace</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-with-xml-namespace/qaq-p/1044682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to convert a csv-file that has follow structure as textfile:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1,field2,field3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a xml-file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have created a mapping, so I get a mapping error when i want to convert the txt-file to xml&lt;/P&gt;&lt;P&gt;In the message monitoring the generated xml-file has follow structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ns:target&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;Recordset&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;source&amp;gt;&lt;/P&gt;&lt;P&gt;       &amp;lt;source_value_1&amp;gt;Source_value_1&amp;lt;/source_value_1&amp;gt;&lt;/P&gt;&lt;P&gt;       &amp;lt;source_value_2&amp;gt;source_value_2&amp;lt;/source_value_2&amp;gt;&lt;/P&gt;&lt;P&gt;       &amp;lt;source_value_3&amp;gt;source_value_3&amp;lt;/source_value_3&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;/source&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;/Recordset&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ns:target&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the xsd has follow structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"&amp;gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;xs:element name="source"&amp;gt;&lt;/P&gt;&lt;P&gt;		&amp;lt;xs:annotation&amp;gt;&lt;/P&gt;&lt;P&gt;			&amp;lt;xs:documentation&amp;gt;Comment describing your root element&amp;lt;/xs:documentation&amp;gt;&lt;/P&gt;&lt;P&gt;		&amp;lt;/xs:annotation&amp;gt;&lt;/P&gt;&lt;P&gt;		&amp;lt;xs:complexType&amp;gt;&lt;/P&gt;&lt;P&gt;			&amp;lt;xs:sequence&amp;gt;&lt;/P&gt;&lt;P&gt;				&amp;lt;xs:element name="source_value_1" minOccurs="0"/&amp;gt;&lt;/P&gt;&lt;P&gt;				&amp;lt;xs:element name="source_value_2" minOccurs="0"/&amp;gt;&lt;/P&gt;&lt;P&gt;				&amp;lt;xs:element                             name="source_value_3" minOccurs="0"/&amp;gt;&lt;/P&gt;&lt;P&gt;			&amp;lt;/xs:sequence&amp;gt;&lt;/P&gt;&lt;P&gt;		&amp;lt;/xs:complexType&amp;gt;&lt;/P&gt;&lt;P&gt;	&amp;lt;/xs:element&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/xs:schema&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I get an error that there is a conflict in the namespace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can ynybody help me please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2005 13:50:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-with-xml-namespace/qaq-p/1044682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-28T13:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with xml namespace</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-with-xml-namespace/qaa-p/1044683#M413412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually, the XSD needs a target namespace which you define in the XI Integration Repository for the File's Data Type.&lt;/P&gt;&lt;P&gt;For example, after the &amp;lt;?xml version="1.0" encoding="UTF-8" ?&amp;gt;, this line should exist:&lt;/P&gt;&lt;P&gt;&amp;lt;xsd:schema targetNamespace="urn://xitest:stefan" xmlns="urn://xitest:stefan" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2005 15:22:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-with-xml-namespace/qaa-p/1044683#M413412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-28T15:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with xml namespace</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-with-xml-namespace/qaa-p/1044684#M413413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Sender File adapter configuration in the Int. Directory, within section Content Conversion parameters, &lt;/P&gt;&lt;P&gt;there's are parameters called Document Name and Document Namespace.  You should put in the corresponding values for the Message Type and the Namespace the Message Type belongs to that you defined in the Int. Repository.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incidentally, within your test environment of your Message Mapping, if you click on the button "Generate Instance", it will give you an empty instance with the correct namespace of the message the mapping is expecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2005 15:39:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-with-xml-namespace/qaa-p/1044684#M413413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-28T15:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with xml namespace</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-with-xml-namespace/qaa-p/1044685#M413414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is that the xsd-file that I have created with xml spy has a namespace with "xs".&lt;/P&gt;&lt;P&gt;&amp;lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the xml-file that is generated wiht XI has a namespace with "ns":&lt;/P&gt;&lt;P&gt;&amp;lt;ns:schema xmlns:ns="http://www.im-c.de/test_01"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, how can I solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2005 08:04:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-with-xml-namespace/qaa-p/1044685#M413414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-31T08:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with xml namespace</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-with-xml-namespace/qaa-p/1044686#M413415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;I do not think that your problem is the difference between xs and ns.&lt;/P&gt;&lt;P&gt;Indeed &amp;lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" &amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ns:schema xmlns:ns="http://www.w3.org/2001/XMLSchema" &amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are logically equivalent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ns:schema xmlns:ns="http://www.im-c.de/test_01"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;xs:schema xmlns:xs="http://www.im-c.de/test_01"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are logically equivalent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is rather that in the first case the schema element belongs to the namespace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.w3.org/2001/XMLSchema" target="test_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereas in the second case it belongs to the namespace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.im-c.de/test_01" target="test_blank"&gt;http://www.im-c.de/test_01&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not clear to me how the second element was exactly produced but to me this seems not to make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;          Stephan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2005 09:04:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-with-xml-namespace/qaa-p/1044686#M413415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-31T09:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with xml namespace</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-with-xml-namespace/qaa-p/1044687#M413416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your hints, but I have left the namspace in the fileadapter empty, so I could solve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2005 11:04:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-with-xml-namespace/qaa-p/1044687#M413416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-31T11:04:02Z</dc:date>
    </item>
  </channel>
</rss>

