XML element and attributes in hindi :
इस पोस्ट के माध्यम से ASP. Net में आने वाले XML के element व् attrubutes के बारे में समझाया गया है यह Subject विशेषकर PGDCA , BCA , BSC , MCA में पढ़ाया जाता है इस पोस्ट में xml element in asp.net in hindi , xml attribute in asp.net , xml element and attribute program , pgdca 2 sem asp notes in hindi के बारे में बताया गया है तो आइये पढ़ते है यह क्या होता है…
XML Element
- XML Element XML के बिल्डिंग ब्लॉक्स होते है।
- text, elements, attributes, media objects को होल्ड करके रखने का कार्य XML Element करता हैं।
- प्रत्येक XML Document में एक या एक से अधिक Element होते हैं, प्रत्येक Element में Starting और Ending tag के मध्य Content को define किया जाता है।
- XML Element के tag Case sensitive होते है|
- tag को (<>) के अंदर लिखा जाता है |
Syntax :
<element-name >
content
</element-name>
XML Attributes
Attributes XML एलिमेंट का part हैं। एक एलिमेंट के बहुत सारे Attribute हो सकते हैं। Attribute XML एलिमेंट के बारे में अधिक जानकारी प्रदान करता है। XML 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 >
Click here to visit our youtube channel
इसे भी पढ़े :
-
ASP.Net Web form Controls in Hindi | वेब फॉर्म कंट्रोल्स
-
data types in ms access in hindi
-
Understanding Web Application in hindi