Wednesday 1 December 2021

Explain logical structure of XML? एक्सएमएल की तार्किक संरचना की व्याख्या करें। (VMOU MSCCS/PGDCA/CAWD/MCA I Year - June 2019 Q9)


 

STRUCTURE OF XML

The XML document is divided into two different structures – Logical and Physical structure.

एक्सएमएल की संरचना

XML दस्तावेज़ को दो अलग-अलग संरचनाओं में विभाजित किया गया है - तार्किक और भौतिक संरचना।

 

Logical Structure

            Each XML document contains one or more elements, The boundaries of which are either delimited by start-tags and end-tags, or for empty elements, by an empty-element tag. Elements are the building bricks out of which an XML document is assembled. Each XML document must have only one root element, and all the other elements must be perfectly nested inside that element. Each element has a type, identified by name, sometimes called as “generic identifier” (GI), and may have a set of attribute specifications. Each attribute specification has a name and a value.

तार्किक संरचना

            प्रत्येक XML दस्तावेज़ में एक या अधिक तत्व होते हैं,  जिनकी सीमाएँ या तो स्टार्ट-टैग और एंड-टैग द्वारा सीमांकित की जाती हैं, या खाली तत्वों के लिए, एक खाली-तत्व टैग द्वारा। ये तत्व इमारत की ईंटों की तरह हैं जिनको जोड-जोडकर एक XML Document तैयार किया जाता है। प्रत्येक XML दस्तावेज़ में केवल एक मूल तत्व होना चाहिए, और अन्य सभी तत्व उस तत्व के अंदर पूरी तरह से नेस्टेड होने चाहिए। प्रत्येक तत्व का एक प्रकार होता है, जिसे नाम से पहचाना जाता है, जिसे कभी-कभी "सामान्य पहचानकर्ता" (जीआई) कहा जाता है, और इसमें विशेषता विनिर्देशों का एक सेट हो सकता है। प्रत्येक विशेषता विनिर्देश का एक नाम और एक मान होता है।

The arrangement of the elements in an XML document is called the logical structure. In order to be usable (technically, in order to be well-formed), the logical and physical structure of an XML document must be synchronous.

            XML दस्तावेज़ में तत्वों की व्यवस्था को तार्किक संरचना कहा जाता है। प्रयोग करने योग्य होने के लिए (तकनीकी रूप से, अच्छी तरह से गठित होने के लिए), XML दस्तावेज़ की तार्किक और भौतिक संरचना समकालिक होनी चाहिए।

 

Important to remember

Physical Structure

In XML, each document contains one or more elements. An XML document may consist of one or many storage units. These are called entities, they all have content and are all identified by entity name.

 

Each XML document has one entity called the document entity, which serves as the starting point for the XML processor and may contain the whole document. Entities may be either parsed or unparsed. The contents of a parsed entity referred as its replacement text, this text is considered an integral part of the document. An unparsed entity is a resource whose contents may or may not be text and if text, they may be other than XML text. Each unparsed entity has an associated notation, identified by name. XML places no constraints on the contents of unparsed entities. Parsed entities are invoked by name using entity references, unparsed entities by name, given in the value of ENTITY or ENTITITES attributes.

 

General entities are entities for use within the document content and sometimes referred with the unqualified term entity. Parameter entities are parsed entities for use within the DTD. These two types of entities use different forms of reference and are recognized in different contexts. They occupy different namespaces; a parameter entity and a general entity with the same name are two distinct entities.


 


No comments:

Post a Comment