B
Bob
Hi,
I am new to XML documents.
I have to write an app that will pass an XML document to a remote app. This
may be by remoting of a web service. Don't know yet.
The document structure has not been specified yet.
So I thought I could create an XML schema in my project with a best guess
structure. (mySchema.xsd)
When I come to the part where I want to create and send the xml document I
had expected to be able to create a doc based on mydoc.xsd in code.
eg. Pseudocode:
XMLDoc myDoc = new XMLDoc(mySchema);
myDoc.Node1.value="Data String"
etc etc.
Is this approach possible?
The only thing I can see is an external tool XSD.exe which will make classes
from xsd files.
I tried to feed it my schema but it gave an error 'Can only generate one of
classes or datasets'
Thanks
Bob
I am new to XML documents.
I have to write an app that will pass an XML document to a remote app. This
may be by remoting of a web service. Don't know yet.
The document structure has not been specified yet.
So I thought I could create an XML schema in my project with a best guess
structure. (mySchema.xsd)
When I come to the part where I want to create and send the xml document I
had expected to be able to create a doc based on mydoc.xsd in code.
eg. Pseudocode:
XMLDoc myDoc = new XMLDoc(mySchema);
myDoc.Node1.value="Data String"
etc etc.
Is this approach possible?
The only thing I can see is an external tool XSD.exe which will make classes
from xsd files.
I tried to feed it my schema but it gave an error 'Can only generate one of
classes or datasets'
Thanks
Bob