Top "Attributes" questions

The attributes tag should be used for any issues relating to a property of an object, element, or file, etc.

How do I get attribute set name?

I am trying to get attribute set name in Magento product view template. I can get attribute value by $_product-&…

magento attributes
Test if a class has an attribute?

I'm trying to do a little Test-First development, and I'm trying to verify that my classes are marked with an …

c# unit-testing attributes
Get a list of attribute options from Magento

I've been grabbing attribute options from Magento like so: <?php if ($attribute->usesSource()) { $options = $attribute->getSource()-&…

php attributes magento multi-select
finding elements by attribute with lxml

I need to parse a xml file to extract some data. I only need some elements with certain attributes, here's …

python attributes find lxml
selecting attribute values from lxml

I want to use an xpath expression to get the value of an attribute. I expected the following to work …

python python-2.7 attributes lxml
XML Serialization - Disable rendering root element of array

Can I somehow disable rendering of root element of collection? This class with serialization attributes: [XmlRoot(ElementName="SHOPITEM", Namespace="")] public …

c# serialization attributes
JAXB unmarshalling ignoring namespace turns element attributes into null

I'm trying to use JAXB to unmarshal an xml file into objects but have come across a few difficulties. The …

java namespaces jaxb attributes jdk1.5
How does inheritance work for Attributes?

What does the Inherited bool property on attributes refers to? Does it mean that if I define my class with …

c# .net vb.net attributes
Python Count Elements in a List of Objects with Matching Attributes

I am trying to find a simple and fast way of counting the number of Objects in a list that …

python list object attributes count