How to dynamically create a valid xml document from xml schema? I mean - xml schema is unknown at compile time, lets assume that we put file path or url of xml schema at runtime, and application creates valid xml document with some default values...
I have never understood why anybody would want to do that. But I see this question a lot, so there must be some reason for it. However the people who ask the question never bother to explain why they need it so I am still baffled.
Anyway pretty much all of the XML editing tools on the market have that as a feature, I believe. I suppose they must be getting the same demand from their customers. Check them out. Google keywords: xml editor.
Right, some of the code generation tools (like IDEs) do this - they create a skeleton xml file from the xsd. And like any other auto-generated code, this too needs further manual edits to make the xml practically useful for any application specifics. But outside code generation, I don't see where auto generation of xml from a schema might be applicable.