So here's what I did :
1. Create a csv file with two field headers:
Name,Age
John A,21
John B,21
Johnny Appleseed,18
Johnny Walker,65
Joe Nobody,85
2. I created a DTD based on above (hope I'm right)
<!-- Defines a Sample (PA) Document -->
<!-- The root of the document -->
<!ELEMENT PA (Header)*>
<!ELEMENT Header (Name, Age,)>
<!ELEMENT Name (#PCDATA)>
<!ELEMENT Age (#PCDATA)>
3. I imported the DTD to mercator and it created an XML typetree.
Question: 1. Do I have to use the created typetree as both
input and output(XMLDATA)and have my csv file as the
source data?
2. Do I have to create a separate tree for the csv file with the headers(1:1) and data(s) as separate records?
Note: I have only done simple mapping in mercator but I have no idea how to map to an xml data.
Thanks for any help.