on ‎2005 Oct 28 2:50 PM
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"?>
<xs:schema xmlns:xs="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
Request clarification before answering.
Hi Stefan,
Usually, the XSD needs a target namespace which you define in the XI Integration Repository for the File's Data Type.
For example, after the <?xml version="1.0" encoding="UTF-8" ?>, this line should exist:
<xsd:schema targetNamespace="urn://xitest:stefan" xmlns="urn://xitest:stefan" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Regards,
Bhanu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.