xml - Difference between Default Namespace and targetnamespace? null namespace? -
i've read through several posts found on google , wiki article namespace , xml scheme, , dont know.. cant quite understand difference between default namespace , targetnamespace..
so default namespace namespace used default (if no other namespace defined elements) while targetnamespace seems of same use?
also i've read, attributes default signed null namespace? nullnamespace?
in example:
<test xmlns="www.example.org" attribute1="1" attribute2="tbla" attribute3="helloworld"> <child1></child1> </test>
so child1 in www.example.org namespace while attribute1 /attribute2 , attribute 3 in null namespace?
i think benefit question: why need targetnamespace?
my understanding targetnamespace developed match xml schema (.xsd) xml document using schema. above question , discussion answers in more depth.
Comments
Post a Comment