Mustafa Essam
Mustafa Essam

Reputation: 47

When to use a question mark for XML attributes?

Some XML attributes need to start its value with a question mark (?) and I just wondering how can I know these attributes, particularly these attributes, aren't shown when I press on ( CTRL + Space ) to show suggested attributes examples of these attributes:

Upvotes: 1

Views: 851

Answers (1)

Martin Zeitler
Martin Zeitler

Reputation: 76639

the ? is for referencing style attributes; the documentation explains it:

To reference a style attribute, the name syntax is almost identical to the normal resource format, but instead of the at-symbol (@), use a question-mark (?), and the resource type portion is optional.

?[<package_name>:][<resource_type>/]<resource_name>

Upvotes: 1

Related Questions