I am trying XML for the first time for DI. I manage to extract data from a source table into an XML template.
However, I would like to use the XML produced as a source in another dataflow. Where should I import this source to? In the DTDs or XML Schemas? But does that mean I need to create DTD or XSD for the source output in order to configure this?
Anyway I see your point, but what I don’t quite get it is that the XML and DTD are generated by DI. Hence, shouldn’t it be able to read what it generate just as easily?
Do you mean that in order for the XML source to be readoff, we have to amend the content of the file? And how can DI archieve that?
You cannot generate a DTD out of an XML. You can guess it, but nor generate. Even worse, DI does not generate the DTD from the XML source data, it is using the schema information only. And hence we do not know the keys, the mandatory columns, attributes vs. elements, allowed values, what are repetitive elements,… all that can be included in a XML.
Just compare it with SQL: Out of an insert statement
“insert into tab1 (colA, colB) values 1, ‘XY’)”
you can guess the table structure but quite some information is missing.
So think about the DTD generation in DI as a way to shorten the time to build the DTD, but you still have to edit it.