Last post Aug 03, 2011 09:18 PM by Decker Dong - MSFT
Aug 02, 2011 01:46 AM|vishal_asp.net|LINK
Can somebody please explain xml file and related xml schema with simple and complex types.
Request Please provide with sample codes (XML and XML Schema also if possible), so that it helps me understanding those to incorporate into my project.
Aug 02, 2011 05:51 AMfirstname.lastname@example.org|LINK
XML will contain only the attributes with its value
XML with Schema wil contain the attributes datatypes in the top of the xml
Aug 02, 2011 09:25 AM|vishal_asp.net|LINK
I already mentioned I need some details answers with some examples of XML file and related XML schemas and if probably you dont know better quit away and dont waste efforts rather fruitlessly. Since it is so much crucial to my project you dont know. If possible
please come with some live examples and codes
Aug 02, 2011 04:11 PM|ShiftyDev|LINK
I'm not sure if you know what you typed, but your second reply was rather insulting and I'm certain that's going to drive help away. Those who read the thread understand you don't know the difference and would like examples, but that is a lengthy reply
that would be answered just as well by Google. The reply you were given is an adequate explanation as to the difference and the reply should warrant thanks and not insults, despite not being exactly what you wanted.
An XML file is just heirarchial collection of tags, their values, and attributes. XML stores information and doesn't do much more than that. An XML document is going to consist of a Declaration (the first line of the document) and then the contents afterwards.
That XML is super simple and it is fairly straight forward. It's a collection of People, consisting of two Persons. Each Person has an attribute of Gender. Each person has two elements; Name and Age, and their respective values contained within.
The XML Schema is the detailed definition of the structure of the document and it contains information for validation. Some of the things we could write into the Schema would be, "Age must be an Integer", "Attribute Gender must be either Male or Female",
"Element Name can not contain numbers".
Check that out for more information.
I hope this helps because I'm fragile and I can't absorb any insults today. :P
Aug 02, 2011 11:18 PM|vishal_asp.net|LINK
I am sorry but sometimes we need to be rude because you see the point counts in each and every reply so just some people in order for points reply whatever they want with but doesn't reply with exact what one needs.
I am also concerned with contributing somewhat benefial things to community - that is my main motive also I dont want to fill community with junks. So simple and beatiful answers are, I hope, will mostly liked by everyone. See each reply occupies some resource
on server. Dont misuse those.
Sometimes we need to be rude just for others because this is community. And dont mind I got add some points to me by replying to you but I never intend to do so. I need only honest points.
I know how to define DTDs and XML file but need to know XML Schemas as I have many other things to explore in ASP.NET also. Time is less so need perfect answers.
Aug 03, 2011 09:18 PM|Decker Dong - MSFT|LINK
but need to know XML Schemas as I have many other things to explore in ASP.NET also. Time is less so need perfect answers.
An Xml schema is something like a skeleton that has defined what you can write, what you cannot do when creating a certain xml file applying the kind of rules. In fact, it seems that you want to know more about xml schema. You can follow the torturial：http://www.w3schools.com/schema/schema_intro.asp
PS：This is a nice torturial, and follow this you can learn a lot about that, and it'll be easy for you create an xml schema soon. Thanks for your supporting and hope you don't be so angry. We are always glad to help