XML/DTD to be converted to XSD
Hi ,
I have requirement that i am getting xml file as input which i need to read through inbound file adaptor and write another delimited file.
The challenge i am facing is i am not able to transmit xml file to xsd file trough native format builder.
Can you please provide solution for generating xsd file for xml files.
Note: There is format type called "DTD to be converted to XSD" under native format builder wizard.Is it like that first we need to convert xml to DTD then XSD?
If so can you please geve me small example of demonstrating these steps,because whenever i try with sample dtd file i am getting error: "No element found in DTD Specified"
My sample file "note.dtd" is <?xml version="1.0"?>
<!DOCTYPE note [
<!ELEMENT note (to,from,heading,body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
]>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend</body>
</note>
Thanks in advance.