September 27, 2007 at 5:33 am
Help, please.
I'm learning how to create XML Schema Collections and I have questions on the "basic" stuff they always include in the help files, but never fully explain.
Here are my questions:
1) In the first part of the collection, there's always a ?xml Version="1.0" ? line. What exactly is this? If I change the value of the version, how does this affect the collection? Or can I even change the value of the version?
2) xsd:schema .. Does xsd always have be followed by "schema" or is this some sort of changable title?
3) What's the difference between TargetNameSpace and XMLNS?
Thanks in advance for any clarification on these questions. I know they sound kind of foolish, but I hate writing code when I only understand part of how the command works. I want to know all the details so I know when I can and can't alter something.
September 27, 2007 at 2:38 pm
Brandie Tarvin (9/27/2007)
Help, please.I'm learning how to create XML Schema Collections and I have questions on the "basic" stuff they always include in the help files, but never fully explain.
Here are my questions:
1) In the first part of the collection, there's always a ?xml Version="1.0" ? line. What exactly is this? If I change the value of the version, how does this affect the collection? Or can I even change the value of the version?
is processing instruction (PI) for the xml schema document. Version="1.0" tells the xml procesor the xml document complies with XML W3C specification 1.0. You can have other instructors in it, like encoding etc. PI is not mandatory for an xml document
2) xsd:schema .. Does xsd always have be followed by "schema" or is this some sort of changable title?
It always follows "scehma", which is the root element for xml schema document. however, instead of xsd, you can use any abbrevation for the xml schema namespace
3) What's the difference between TargetNameSpace and XMLNS?
TargetNameSpace defines the name space of your xml document. XMLNS defines the name space that your schema document is using becuase xml schema uis defined by xml document.
Thanks in advance for any clarification on these questions. I know they sound kind of foolish, but I hate writing code when I only understand part of how the command works. I want to know all the details so I know when I can and can't alter something.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply