Question

Please provide me small XML example with these requirements: Propose a tree structure for the XML...

Please provide me small XML example with these requirements:

Propose a tree structure for the XML document and Propose a DTD for the XML document.and Propose an XML Schema for the XML document.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Kindly find simple XML as below :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Client SYSTEM "Client.dtd">
<Client>
<Name>Tove</Name>
<address>725 Bridge Ave</address>
<city>Peachtree City</city>
<state>GA </state>
<zip>30269</zip>
</Client>


XML DTD as follows :


<!DOCTYPE Client
[
<!ELEMENT Client (Name,address,city,state,zip)>
<!ELEMENT Name (#PCDATA)>
<!ELEMENT address (#PCDATA)>
<!ELEMENT city (#PCDATA)>
<!ELEMENT state (#PCDATA)>
<!ELEMENT zip (#PCDATA)>
]>



XML Schema is as follows :

<xs:element name="Client">

<xs:complexType>
<xs:sequence>
<xs:element name="Name" type="xs:string"/>
<xs:element name="address" type="xs:string"/>
<xs:element name="city" type="xs:string"/>
<xs:element name="state" type="xs:string"/>
<xs:element name="zip" type="xs:string"/>
</xs:sequence>
</xs:complexType>

</xs:element>

Add a comment
Know the answer?
Add Answer to:
Please provide me small XML example with these requirements: Propose a tree structure for the XML...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT