xml attributes and element in hindi

xml attributes and element in hindi :

xml attributes and element :  इस पोस्ट में एक्सएमएल element and attribute in asp.ne program के बारे में बताया गया है यह Subject विशेषकर PGDCA , BCA , BSC , MCA में पढ़ाया जाता है तो आइये पढ़ते है यह क्या होता है…

XML Element

  • XML Element XML के बिल्डिंग ब्लॉक्स होते है।
  • text, elements, attributes, media objects को होल्ड करके रखने का कार्य एक्सएमएल Element करता हैं।
  • प्रत्येक एक्सएमएल Document में एक या एक से अधिक Element होते हैं, प्रत्येक Element में Starting और Ending tag के मध्य Content को define किया जाता है।
  • XML Element के tag Case sensitive होते है|
  • tag को (<>) के अंदर लिखा जाता है |

Syntax :

<element-name >
content
</element-name>

XML Attributes

Attributes एक्सएमएल एलिमेंट का part हैं। एक एलिमेंट के बहुत सारे Attribute हो सकते हैं। Attribute एक्सएमएल एलिमेंट के बारे में अधिक जानकारी प्रदान करता है। एक्सएमएल Attribute की हमेशा एक Name – Value के साथ Pair होता है। Attribute कि Value को (”) या (“”) में लिखा जाता है |
Syntax :
<element-name attribute1=”” attribute2=”” >
….content..
< /element-name>

Syntax of Element and Attributes:

<root>
<child>
<subchild>…..</subchild>
</child>
</root>

Program of XML Element and Attributes:

<?xml version = “1.0” encoding = “UTF-8”?>
<!DOCTYPE field [
<!ELEMENT field (crop)*>
<!ELEMENT crop>
<!ATTLIST plants category CDATA #REQUIRED>
]>
<field >
<crop category = “wheat”>
</crop>
</field >

इसे भी पढ़े :

By Technology Tips

Technology Tips एक हिंदी Digital Educational Blog है , जहाँ हम आपको विभिन्न technology tips, mobile tips, internet tips, computer tips, gedgets tips, Digital Education tips and tech news से Update रखेंगे |

Leave a Reply