Revision dd32809e include/Attribute.h

View differences:

include/Attribute.h
39 39
            attribute_name.end(),
40 40
            attribute_name.begin(),
41 41
            (int(*)(int))toupper);
42

  
43
        // FIX Attribute name if it does not conform XML element
44
        // naming conventions
45

  
46
        int size = attribute_name.size();
47

  
48
        if  ((size >0 && !isalpha(aname[0]))||
49
             (size >=3 && (aname[0]=='X' && aname[1]=='M' && aname[2]=='L')))
50
        {
51
            attribute_name.insert(0,"ONE_");    
52
        }
42 53
    };
43 54

  
44 55
    virtual ~Attribute(){};

Also available in: Unified diff