A target namespace qualifies the children attributes so that you can refer to multiple children that have the same name but different contexts. For example, a child named 'ZipCode' in the 'com.yourcompany.inquiry' namespace might only need a single numeric five digit integer whereas a child named 'ZipCode' in 'gov.usps.www' namespace might need a character string of ten characters in length (zip+four).
Joined: Feb 07, 2012
Hi Thank you. I just have a doubt. namespace is generally used to avoid conflicts in naming XML tags.
targetNamespace is similar as giving package name in java & namespaces in C++. By targetNamespace we specify that the xml is inside the mentioned namespace.
Did that answer or you needed something else?