Hi Sonam,
Sorry for the delay in replying.
I have just checked and found records created in developer through a schema seem to generate the xsd as required, but not hand coded records, using the same service.
I looked further and found that there are differences in the individual node.ndf files and the record’s field properties, in particular the Content Type (properties - > Constraints).
I haven’t had the time to play around with it. Maybe sometime this week when I have a chance.
Not much of help to you, I guess.
What I normally do is hand code an xml (canonical) in XMLSPY. Generate xsd in xmlspy. Create record in developer by referencing the schema (on my local drive). This not only creates the record, but also a schema with the same name.
Cheers,
Conrad