Loading
XML Element and Attribute

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  What is the XML Element and Attribute ?


Ans)

An element describes the data that it contains. Elements can also contain other elements and
attributes. For more information, see below.

Element :
<xs:element name="quantity" type="xs:integer" />
XML  :
<quantity>63</quantity>

An attribute is a named simple-type definition that cannot contain other elements. Attributes can
also be assigned an optional default value and they must appear at the bottom of complex-type
definitions.

Exmaple Attribute :
<xs:element name="OrderInfo">
<xs:complexType>
<xs:attribute name="OrderDiscount" type="xs:number" />
</xs:complexType>
</xs:element>

XML :
<OrderInfo number='123456'> </OrderInfo>



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

XML Element and Attribute


XML Element and Attribute

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free