[resolved] [XSD metadata] import attribute elements

Highlighted
One Star

[resolved] [XSD metadata] import attribute elements

Hello.

I am beginner with Talend and see we can create an xml metadata imported from a xsd file.
In the last step, my schema contains all my columns but for all, values nullable and length take default value. Both are configured in my xsd but seems not imported from it.

Did Talend can import it or my xsd wasn't good ?

<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="">
<xs:element name="Header">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:string" length="1" name="value1"/>
<xs:element type="xs:string" length="2" name="value2"/>
<xs:element type="xs:string" length="6" name="value3"/>
<xs:element type="xs:string" use="required" length="20" name="value4"/>

Accepted Solutions
One Star

Re: [resolved] [XSD metadata] import attribute elements

Find, i export one metadata to see how it composed.

This is not an XSD but an XML like this one.


<?xml version="1.0" encoding="UTF-8"?>
<schema>
    <column comment="id" default="" key="true" label="id" length="6" nullable="false" originalDbColumnName="Id" pattern="" precision="0" talendType="id_Int" type="INT"/>
    <column comment="value1" default="" key="false" label="value1" length="2" nullable="false" originalDbColumnName="Value1" pattern="" precision="0" talendType="id_String" type="VARCHAR"/>

View solution in original post


All Replies
One Star

Re: [resolved] [XSD metadata] import attribute elements

Find, i export one metadata to see how it composed.

This is not an XSD but an XML like this one.


<?xml version="1.0" encoding="UTF-8"?>
<schema>
    <column comment="id" default="" key="true" label="id" length="6" nullable="false" originalDbColumnName="Id" pattern="" precision="0" talendType="id_Int" type="INT"/>
    <column comment="value1" default="" key="false" label="value1" length="2" nullable="false" originalDbColumnName="Value1" pattern="" precision="0" talendType="id_String" type="VARCHAR"/>

View solution in original post

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog