Skip to Content
0
Former Member
Oct 28, 2005 at 01:50 PM

Problem with xml namespace

22 Views

Hi,

I want to convert a csv-file that has follow structure as textfile:

field1,field2,field3

in a xml-file.

I also have created a mapping, so I get a mapping error when i want to convert the txt-file to xml

In the message monitoring the generated xml-file has follow structure:

<ns:target>

<Recordset>

<source>

<source_value_1>Source_value_1</source_value_1>

<source_value_2>source_value_2</source_value_2>

<source_value_3>source_value_3</source_value_3>

</source>

</Recordset>

</ns:target>

and the xsd has follow structure:

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

http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">

<xs:element name="source">

<xs:annotation>

<xs:documentation>Comment describing your root element</xs:documentation>

</xs:annotation>

<xs:complexType>

<xs:sequence>

<xs:element name="source_value_1" minOccurs="0"/>

<xs:element name="source_value_2" minOccurs="0"/>

<xs:element name="source_value_3" minOccurs="0"/>

</xs:sequence>

</xs:complexType>

</xs:element>

</xs:schema>

So I get an error that there is a conflict in the namespace.

Can ynybody help me please.

Thanks

Regards

Stefan