I already created XSD file and reference in ADF file.
Anyway, the XSD that generated from my XML file have many table. ( you
can try by generate XSD from my actual EventData.xml)
It is not too simple like EventData.xml in Stock application which have
only 2 element for StockSymbol and StockPrice.
My EventData.xml have some node as below
...
...
<files>
<file>
<name>zip</name>
<content>uesdbbqaaaaiaatk0c6r9ck</content>
</file>
</files>
...
...
You will see <name> and <content> that defined inside <files>/<file>.
I don't know how to define node <name> and <content> in ADF (not XSD)
that will generate database table for my application.
It's work if I modify my EventData.xml by remove node
<files>
<file>
</file>
<files>
***************Modified EventData.xml*************
<root>
<NewsID>abcd</NewsID>
<VendorTime>20030826T</VendorTime>
<UpdateTime>20030826T</UpdateTime>
<SourceCode>SWD</SourceCode>
<OriginalCode>STK</OriginalCode>
<Headline>sdfsd</Headline>
<Story>sdfasdf</Story>
<Language>Thai</Language>
<Symbol>BBL</Symbol>
<Reference>sdfsd</Reference>
<Name>sfsdf</Name>
<Content>aaaa</Content>
</root>
Then create the XSD file from the modiied EventData.xml.
But my application must support to the actual EventData.xml
The actual EventData.xml must be as below
**************Actual EventData.xml****************
<root>
<newsid>abcd</newsid>
<transaction>add</transaction>
<vendortime>20030826t</vendortime>
<updatetime>20030826t</updatetime>
<sourcecode>swd</sourcecode>
<originalcodes>
<originalcode>stk</originalcode>
</originalcodes>
<headline>asdsdas</headline>
<story>asdasdad</story>
<languages>
<language>thai</language>
</languages>
<symbol>bbl</symbol>
<reference>fsdfsdf</reference>
<files>
<file>
<name>zip</name>
<content>uesdbbqaaaaiaatk0c6r9ck</content>
</file>
</files>
</root>
*** Sent via Developersdex <a style='text-decoration: underline;' href="http://www.developersdex.com" target="_blank">http://www.developersdex.com</a> ***
Don't just participate in USENET...get rewarded for it!<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Schema File for XML data