How you define XML Entity?

How you define XML Entity?

Using Entity we can represent the information in symbolic form.

Syntax:

When we write entity in the XML.We start with ampersand(&),after that write name than after write semicolon(;)

&entity_name;

 Here,I am writing a syntax to create XML entities.

<!ENTITY entityname \"write information according to entity.\">

Example:

<!ENTITY welcomenote \"Hello,I am Vivek.R4R welcome you! and enjoy after getting membership of R4R.\">

 Further,I given you a example how to use a XML entity.

Example:

<!ENTITY welcomenote \"Hello,I am Vivek.R4R welcome you! and enjoy after getting membership of R4R.\">

<email>

<to>client</to>

<body>&welcomenote;</body>

</email>


  


By:Vivek
Date:2014-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related XML Subjective Links

XML Subjective interview questions and answers for experienced and fresher