To create the XML document

1. Copy the text below into a file in a text editor.

<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <!DOCTYPE StockHoldings [

<

ELEMENT

StockHoldings (Stock+)>

<

ELEMENT

Stock (name)>

<

ELEMENT

Stock (price)>

<

ELEMENT

Stock (symbol)>

<

ELEMENT

Stock (shares)>

<StockHoldings>

<Stock exchange="NASDAQ"> <name>Borland</name> <price>10.37 5</price> <symbol>BORL</symbol> <shares>100</shares> </Stock>

<StockHoldings>

<Stock exchange="NASDAQ"> <name>Borland</name> <price>10.37 5</price> <symbol>BORL</symbol> <shares>100</shares> </Stock>

<Stock exchange="NYSE"> <name>MyCompany</name> <price>8.75</price> <symbol>MYCO</symbol>

<shares type="preferred">25</shares> </Stock> </StockHoldings>

  1. Save the file to your local drive as an XML document. Give it a name such as stock.xml.
  2. Open the document in your browser.

The contents should display without error.

Note: In the browser, you can choose View ^ Source to view the source in the text editor file.

Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment