The document discusses the fundamentals of XML including XML document structure, elements, attributes, character data, the XML declaration, document type declaration, and XML content model. It also covers XML rules for structure, namespaces, and the differences between well-formed and valid XML documents.
The eXtensible Markup Language (XML) is not a language itself, but rather a meta-language used to create markup languages to suit whatever purpose you may have. In this session you will learn the basic rules of XML and the philosophy behind it. You will also be introduced to the basics of the popular XML editor, oxygen.
XML Introduction,Syntax of XML,Well formed XML Documents,XML Document Structure,Document Type Definitions,XML Namespace,XML Schemas,DOM(Document Object Model)
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsVictor Morales
K8sGPT is a tool that analyzes and diagnoses Kubernetes clusters. This presentation was used to share the requirements and dependencies to deploy K8sGPT in a local environment.
A review on techniques and modelling methodologies used for checking electrom...nooriasukmaningtyas
The proper function of the integrated circuit (IC) in an inhibiting electromagnetic environment has always been a serious concern throughout the decades of revolution in the world of electronics, from disjunct devices to today’s integrated circuit technology, where billions of transistors are combined on a single chip. The automotive industry and smart vehicles in particular, are confronting design issues such as being prone to electromagnetic interference (EMI). Electronic control devices calculate incorrect outputs because of EMI and sensors give misleading values which can prove fatal in case of automotives. In this paper, the authors have non exhaustively tried to review research work concerned with the investigation of EMI in ICs and prediction of this EMI using various modelling methodologies and measurement setups.
Online aptitude test management system project report.pdfKamal Acharya
The purpose of on-line aptitude test system is to take online test in an efficient manner and no time wasting for checking the paper. The main objective of on-line aptitude test system is to efficiently evaluate the candidate thoroughly through a fully automated system that not only saves lot of time but also gives fast results. For students they give papers according to their convenience and time and there is no need of using extra thing like paper, pen etc. This can be used in educational institutions as well as in corporate world. Can be used anywhere any time as it is a web based application (user Location doesn’t matter). No restriction that examiner has to be present when the candidate takes the test.
Every time when lecturers/professors need to conduct examinations they have to sit down think about the questions and then create a whole new set of questions for each and every exam. In some cases the professor may want to give an open book online exam that is the student can take the exam any time anywhere, but the student might have to answer the questions in a limited time period. The professor may want to change the sequence of questions for every student. The problem that a student has is whenever a date for the exam is declared the student has to take it and there is no way he can take it at some other time. This project will create an interface for the examiner to create and store questions in a repository. It will also create an interface for the student to take examinations at his convenience and the questions and/or exams may be timed. Thereby creating an application which can be used by examiners and examinee’s simultaneously.
Examination System is very useful for Teachers/Professors. As in the teaching profession, you are responsible for writing question papers. In the conventional method, you write the question paper on paper, keep question papers separate from answers and all this information you have to keep in a locker to avoid unauthorized access. Using the Examination System you can create a question paper and everything will be written to a single exam file in encrypted format. You can set the General and Administrator password to avoid unauthorized access to your question paper. Every time you start the examination, the program shuffles all the questions and selects them randomly from the database, which reduces the chances of memorizing the questions.
4. Document type declaration(DOCTYPE)
• Link to DTD
• General forms:
– <!DOCTYPE NAME SYSTEM “file”>
– <!DOCTYPE NAME []>
– <!DOCTYPE NAME SYSTEM “file” []>
6. Markup and content
Six kinds of markup in XML document:
• Elements
• Entity references
• Comments
• Processing instruction
• Marked section
• Document Type Definition
7. Elements
• A matched pair of XML tags
<shirt> ….. </shirt>
• Single XML tags with ‘self-closing’/empty
element
<shirt/>
• Nested elements
8. Rules for element name
• Element name can contain letters, numbers,
other characters
• No start with a number or punctuation character
• No white space inbetween words
<this_is_really_long_element_name>
• no name as xml or with colon
• Should be descriptive, not confusing.
• Avoid hyphen(-) and dot(.)
9. Attributes
• Additional information about element
• Eg:
<price currency=“USD”>….</price>
<on_sale start_date=“10.5.2001”/>
• In DTD, attribute can be required, optional, fixed
and enumerated.
• Eg:
<shirt><color>red</color></shirt>
Or <shirt color=“red”/>
10. Entity reference
• Symbols referred by name
• Starts with ampersand and ends with
semicolon.
• Eg: <element> 4 > 2</element>
• Types: internal entity & external entity
11. Comments & PI
• <!-- comments lines -->
• PI(processing Instruction) same as comments.
• Information about how the content should be
processed.
• <?instruction options?>
• PI target
• Eg: <?send message “process completed”?>
12. Marked CDATA section
• Character data/CDATA section
• Instructs parser to ignore all markup like
elements, entity, PI,…
• All passed as string.
• <![CDATA[content]]>
13. DTD
• Validate the documents.
• Well defined rules for document structure and
content.
14. XML content
• Content between the elements
• Can consist any data
• Can be long ie.100MB
15. XML content model
• 3 types: open, closed & mixed.
• Open: can add elements & attributes without
declaration in DTD or XML schema.
• Closed: restricts elements and attributes to
only those that are specified in the DTD or
schema.
• Mixed
16. Handling whitespace
• Character spaces, tabs, linefeeds, and carriage
returns in documents.
• Whitespace is significant is by knowing the
content model of the XML document .
• Mixed-significant
• Open/closed-not significant
• Special attribute:- xml:space with 2
values:perserve/default
17.
18. Rules of XML structure
Rule 1:All XML elements must have a closing tag.
Eg: <markup>This is not valid XML
<markup>Since there is no closing tag.
Rule 2:XML tags are case sensitive.
Eg: <Markup>These two tags are very
different</markup>
19. Rules of XML structure
Rule 3:All XML Elements Must Have Proper
Nesting.
Eg:<oxygen><nitrogen>These tags are
improperly nested</oxygen></nitrogen>
Rule 4: All XML Documents Must Contain a
Single Root Element.
20.
21. Rules of XML structure
Rule 5:Attribute Values Must Be Quoted.
Eg:
<?xml version=1.0?>
<shirt>
<price currency=USD>14.99</price>
</shirt>
22. Rules of XML structure
Rule 6:Attributes May Only Appear Once in the
Same Start Tag
Eg: shirt size=”large” size=”small”>Zippy Tee
</shirt>
Rule 7: Attribute Values Cannot Contain References
to External Entities
Rule 8:All Entities Except amp, lt, gt, apos, and quot
Must Be Declared Before They Are Used
Eg: & , <,>, ', &qout;
23.
24. Well formed and valid document
• a valid XML document is a more strict form of
a well-formed XML document .
• well formed if it follows all the preceding
syntax rules of XML.
• valid XML documents can improve the quality
of document processes.
26. Namespace
• Method to avoid the name conflict.
• Namespaces use a colon-delimited prefix to
associate external semantics with elements
that can be identified via a Universal
Resource Identifier (URI).