What is well-formedness and validity in the context of xml?

Assignment Help Programming Languages
Reference no: EM13902669

1. Imagine that you are asked to provide advice on implementing web services for a site. Discuss the merits and drawbacks of SOAP- and REST-based web services and for XML versus JSON as a REST data format.

2. Let us design our own CarML language. Define XML tags for describing your car and your friends' cars using these tags. Think about what properties should be defined as attributes and what properties are best described as elements. Make sure your documents are well-formed.


3. Define an XML DTD for CarML. You may want to revisit XML documents you defined in the previous exercise and rethink the element and attribute structure as you are defining the DTD. In the end, all your car specifications should be valid XML documents.

4. Define an XML Schema equivalent to the XML DTD from the previous exercise. Compare the two.

5. Are there constraints that can be expressed using XML Schema but not DTD? Provide examples.

6. What type of element should be used in an XML schema for the following XML document?

<?xml version="1.0" encoding="ISO-8859-1"?>

<lees_emailxmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="lee_schema.xsd">

<to>To: Bob Roberts</to>

<subject>Lawn Maintenance</subject>

<date_sent>August 3 </date_sent>

<body>We will be out to mow your lawn this week</body><closing>See you then! Warm regards, Lee</closing>

</lees_email>

7. Construct a threat model for an online ticket reservation system. For each threat, include an attacker profile (goal, experience, resources), the specific objective of the attack, the possible methods of attack, and the harm that would result from a successful attack.

8. What is well-formedness and validity in the context of XML? How do they differ? Is every well-formed document valid? Why? Is every valid document well-formed? Why?

Reference no: EM13902669

Questions Cloud

Discussing the issue of whether : Our study group is discussing the issue of whether the area that the Roman Empire came to control made sense as a geographical unit? As a result, this job assesses this possibility.
Improvements include new floors : On January 4 of this year, Freckles Boutique incurs a $ 105,000 cost to modernize its store.
Concepts of machismo and marianismo : This solution discusses in detail the concepts of "Machismo" and "Marianismo." It also explores the roles of women in Latin America today as compared to the past, and possible reasons for this change
What characteristics of monopolistically competitive market : What are the characteristics of a monopolistically competitive market? What happens to the equilibrium price and quantity in such a market if one firm introduces a new, improved product?
What is well-formedness and validity in the context of xml? : What is well-formedness and validity in the context of XML?
Relationship of climate and clouds : Considering the factors involved in the formation of clouds, discuss the relationship of climate and clouds. Would you expect such things as cloud height and the types of clouds to vary from one region to another due to differing climates?
Compute its total asset turnover : Compute its total asset turnover for 2013, and assess its level if competitors average a total asset turnover of 2.0 times.
Who are aware of the firm new brand : Construct a 95% confidence interval for the proportion of individuals in the target market segment who are aware of the firm's new brand
Find the values of a, q, and p that maximize the firm profit : Consider a firm with monopoly power that faces the demand curve P = 100 - 3Q + 4A1/2and has the total cost function C = 4Q2+ 10Q + A, where A is the level of advertising expenditures, and P and Q are price and output. Find the values of A, Q, ..

Reviews

Write a Review

Programming Languages Questions & Answers

  Describe logic why it is not enough to show reduction

If we can only show: if x belongs to A, then y does not belongs to B;explain the logic why it is not enough to show A reduction B.IN other words why the theory needs to prove"if and only if"?

  Program to assign anonymous array of double value

Write c++ statements to permit the user to enter n, number of values to be processed; then assign an anonymous array of n double values, storing its address in doublPtr.

  Write the program to sustain person-s savings

Write down the program to sustain the person's Savings and Checking accounts. Program must keep track of and show balances in both accounts, and sustain a list of transactions.

  Arithmetic and application of summaries

Write some R code that carries out computation, but do it with a single R expression that contains no commas (,) and no braces ({}).

  Develop program for concrete class in hierarchy

Develop program which reference objects of each concrete (non-abstract) class in hierarchy. Write down abstract method "display" which determines whether displayed shape is TwoDimensionalShape.

  Design employee objects-display each object-s yearly salary

Design two employee objects and display each object's yearly salary. Then provide each employee 10% raise and display each Employee's yearly salary again.

  Html/css

"Validating Your Work" Please respond to the following:  Describe attribute minimization. Explain what would happen if you tried to validate a page containing instances of attribute minimization. Propose a solution to this problem.

  Construct a diagram using rationaleto map the arguments

Construct a diagram using Rationaleto map the arguments about a moral claim that you have identified in the article/case study

  Correspondence between a grammar and a type

Identity the correspondence between a grammar and a type and identify the correspondence between a grammar and a recursive-descent parser.

  Write program to asks user to enter temperatures

Write down the C++ program which asks the user to enter 12 temperatures for each month in year and store them in one-dimensional array called "temps".

  Write a program for a furniture company

Write a program for a furniture company that determines the price of a table. Ask the user to choose 1 for pine, 2 for oak, or 3 for mahogany. The output is the name of the wood chosen as well as the price of the table

  Write techniques to ensure the site content is optimized

All Web pages is as small as possible without affecting the look and feel of the final product. What are some techniques to ensure the site content is optimized?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd