In the below PO Schema, I understand addr type of address schema. Why do we import it when we already mentioned in the schema definition? I dont get that point clearly. Can some one explain me the key point?
A very recent change to CodeRanch was the ability to recognize the type of code being posted, if you set it. You might also consider formatting your code so that it is easier for others to read. Finally, since it is almost impossible for for forum software to allow markup within the code you post, you are probably better referencing the line numbers that you have questions about, rather than trying to put them in bold.
Putting all this into practice:
Ashok wrote:I understand addr type of address schema. Why do we import it when we already mentioned in the schema definition?
Or: Why do we import it in line 7 when we already mentioned in the schema definition in line 5?
At line 5, the XML namespace prefix "addr" is declared. A namespace prefix is only a shorthand for the full namespace name, which in this case is "http://www.Monson-Haefel.com/jwsbook/ADDR".
At line 7, the XML schema is imported, in order to be able to use the types etc defined in that schema.