85. Explain about XML attributes

Attributes are simple name/value pairs associated with an element.

They are attached to the start-tag, as shown below, but not to the end-tag:

<name nickname=”sharat”>
<first>sharat</first>
<middle></middle>
<last>lastname</last>
</name>

Attributes must have values–even if that value is just an empty string (like “”)–and those values must be in quotes.

Attributes Can Provide Meta Data that May Not be Relevant to Most Applications Dealing with Our XML

Attributes are Un-Ordered

Elements Can Be More Complex Than Attributes.

Advertisements

2 Responses

  1. […] Dealing with Our XML Attributes are Un-Ordered Elements Can Be More Complex Than Attributes. Add comment October 9th, […]

  2. Well£¬it depends.He has many strange ideas in his mind.She is a composer for the harp.I feel like sleeping taking a walkI can’t follow you.The Beatles represented part of the spirit of their age.Did you enter the contest? Where is your office?What do you think? He asked me some personal questions, but I would never answer them.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: