Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML & Web Service #3

Closed
beta opened this issue Nov 5, 2015 · 0 comments
Closed

XML & Web Service #3

beta opened this issue Nov 5, 2015 · 0 comments

Comments

@beta
Copy link
Owner

beta commented Nov 5, 2015

deadline: 2015-11-20


From the directory, there are two files, one is BookStore.xml, the other is mails.xml.

  1. Please create Bookstore.xsd and mails.xsd files which can match above XML files.
  2. Use XML Spy or IE to verify the schema files you created.

BookStore.xml

<?xml version="1.0"?>
<BookStore xmlns="http://www.books.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Magazine>
        <Title>Natural Health</Title>
        <Date>1999</Date>
    </Magazine>
    <Book>
        <Title>Illusions The Adventures of a Reluctant Messiah</Title>
        <Author>Richard Bach</Author>
        <Date>1977</Date>
        <ISBN>0-440-34319-4</ISBN>
        <Publisher>Dell Publishing Co.</Publisher>
    </Book>
    <Book>
        <Title>The First and Last Freedom</Title>
        <Author>J. Krishnamurti</Author>
        <Date>1954</Date>
        <ISBN>0-06-064831-7</ISBN>
        <Publisher>Harper &amp; Row</Publisher>
    </Book>
</BookStore>

mails.xml

<?xml version="1.0" encoding="ISO-8859-1"?>
<mails xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <mail id="0">
        <envelope From="bill@microsoft.com">
            <From>user@unknown.domain.org</From>
            <To>user@cduce.org</To>
            <Date>2003-10-15T15:44:01Z</Date>
            <Subject>I desperately need XML Schema support in CDuce</Subject>
            <header name="Reply-To">bill@microsoft.com</header>
        </envelope>
        <body>
            As subject says, is it possible to implement it?
        </body>
        <attachment name="signature.doc">
            <mimetype type="application" subtype="msword"/>
            <content>### removed by spamoracle ###</content>
        </attachment>
    </mail>
    <mail id="1">
        <envelope From="zack@cs.unibo.it">
            <From>zack@di.ens.fr</From>
            <To>bill@microsoft.com</To>
            <Date>2003-10-15T16:17:39Z</Date>
            <Subject>Re: I desperately need XML Schema support in CDuce</Subject>
        </envelope>
        <body>
            user@unknown.domain.org wrote:
            As subject says, is possible to implement it?

            Sure, I'm working on it, in a few years it will be finished
        </body>
    </mail>
</mails>
@beta beta added the homework label Nov 5, 2015
@beta beta closed this as completed Nov 11, 2015
@beta beta reopened this Nov 11, 2015
@beta beta closed this as completed Nov 11, 2015
@beta beta added the valid label Nov 11, 2015
@beta beta reopened this Nov 13, 2015
@beta beta closed this as completed Nov 13, 2015
@beta beta changed the title XML & WebService XML & Web Service Nov 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant