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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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