cancel
Showing results for 
Search instead for 
Did you mean: 

Attribute & element

Former Member
0 Kudos

Hello,

Please explain difference between element and attribute.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi VJ,

You can also think of a context node as a "class" definition. Like a class, it has a name, and member variables (the attributes).

An element is an "instance" of the class. So once you have a concrete instance, you can set its attribute values.

The cardinality of a node defines how many concrete instances (elements) can exist simultaneously.

Walter

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

There are some good documents and explanations already provided, but here is one more: the web dynpro context is basically an XML document. Therefore you can often read about XML documents in general and reuse that knowledge when working with Web Dynpro.

Former Member
0 Kudos

Hi,

Attribute is like Single Column. But Element is like Single Row.

For Example:

Student is a Node, and Student Node contains following attributes : Name, Rollno, and Addres.

Name Rollno Address

Vijay 51 Tamilnadu,India

above row is Single Element ( Vijay 51 Tamilnadu,India ).

Regards,

Vijay

Former Member
0 Kudos