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

  Create program which asks for number of fat grams

Create a program which asks for number of fat grams and calories in a food item. Validate input as follows: Make sure number of fat grams and calories are not less than 0.

  Biggest challenges in planning and designing

In your opinion, what are the three biggest challenges in planning and designing a solution for a programming problem? What can you do to overcome these challenges

  Write ipo charts for program contains four value functions

Add new C++ source file to project. Name the source file Ch9AppE05. Use Ipo charts you created in step a to code program. Display gross pay with a dollar sign and two decimal places.

  Write down a program that will randomly generate a number

write a program that will randomly generate a number from 1 to 100. the user will then guess the number via several

  Write a program to enter series of numbers

Write a program that ask the user to enter a series of numbers ending with -1. After the -1 is input, program should print how many numbers are even and how many numbers are odd.

  Program to sort array by employee identification

Let a program which will read employee information into array of objects, sort array by employee identification number, write the sorted array, and calculate different statistics on data.

  What flash and html5 can and cannot do

Provide recommendations for developers ­in terms of developing within and between each platform.

  Write program to prints question do you want to continue

Write a program which prints question"do you want to continue?"and reads user input. if user input is"y", "yes", "ok", "sure", or "why not?" , print out "ok".

  Use switch statement to display roman numeral version

Use a switch statement to display the Roman numeral version of that number. Input Validation: Do not accept a number less than 1 or greater than 10.

  How he sees the future of world englishes and world standard

Discuss how David Crystal’s book is a reaction to the official English movement in the United States. Explain how he constructs an argument about the benefits of multilingualism through the notions of identity and intelligibility

  Explain the importance of usability when designing a website

Explain the importance of usability when designing a website and develop a set of recommendations for website usability

  Create a rexx program that asks a user for separate lines

Create a REXX program that asks a user for four separate lines of input, and then outputs those lines all at once, one line at a time

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