user253202
user253202

Reputation:

Symbols in XML attributes

Can i use symbol ':' in xml attributes like

<tag1 attribute1:meaning1="true">

Upvotes: 1

Views: 221

Answers (2)

Sagar Varpe
Sagar Varpe

Reputation: 3599

Yes you can use ":" symbol in xml attributes

like

img src="http://----" />

Upvotes: 0

Oded
Oded

Reputation: 499002

The : is used to include a namespace (which is part of the fully qualified name of the attribute) before the local name of the node.

So, yes it is allowed.

Upvotes: 1

Related Questions