Does the namespace of an XML element extend to its attributes?

SammieC

New Member
[Duplicate question: see here for answer ("No, don't qualify the attributes")]This is my first time working with XML namespaces, and I want to make sure I'm doing this right. Strangely, for such a simple thing, I can't find anything on SO that addresses the question:I've got a namespace-qualified XML element with some attributes. Do the attributes need to be qualified too, or does the scope extend to them?\[code\]<foo:tag value="http://stackoverflow.com/questions/10465478/bar" />\[/code\]or \[code\]<foo:tag foo:value="http://stackoverflow.com/questions/10465478/bar" />\[/code\]
 
Back
Top