2

[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?

<foo:tag value="bar" />

or

<foo:tag foo:value="bar" />
Community
  • 1
  • 1
Ternary
  • 597
  • 4
  • 8

0 Answers0