XML Lab 1 - solutions

XML Lab 1 - solutions - HIT3693 XML Technologies Exercise 1...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
HIT3693 XML Technologies Exercise 1 SOLUTIONS CREATING XML FILES The solutions shown are one of many ways of answering the questions. 2.1 Welcome Page <?xml version = "1.0" encoding="UTF-8" standalone="yes"?> <Editor> <Title>Superior XML Editor</Title> <WelcomeMsg>Welcome to XML/DTD editor that will change the way you use XML!</WelcomeMsg> <Introduction> <OuterText>This editor allows you to take an XML file, </OuterText> <Filename>datafile.xml</Filename> <OuterText>and add any new element you like to the file. The editor also automatically updates the internal DTD associated with the XML file. You may have up to two attributes for the new element.</OuterText> </Introduction> <Instructions> <Pre-listText> <OuterText>You use the</OuterText> <Link>Element Input Page</Link> <OuterText>to provide details about the element, including:</OuterText> </Pre-listText> <InstrList> <Instr>the name of the element</Instr> <Instr>the superelement of this element (in other words, which element does the new element nest inside?)</Instr> <Instr>an attribute and its associated default value</Instr> <Instr>another attribute and its associated default value</Instr> <Instr>the element data (in order words, the text found between the new element's start and end tags)</Instr> < / I n s t r L i s t > </Instructions> <Ending>Have fun with the editor!</Ending> </Editor>
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
HIT3693 XML Technologies Exercise 1 Swinburne University of Technology Faculty of Information and Communication Technologies 2009 2 2.2 Personal record of study The example shows only some data that could be recorded about a subject. Of course you may wish to record other data, such as grades, etc. <?xml version = "1.0" encoding="UTF-8" standalone="yes"?>
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

XML Lab 1 - solutions - HIT3693 XML Technologies Exercise 1...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online