XML Getting Started Tutorial: XML browser support

Source: Internet
Author: User
Tags version xsl xslt
xml| Tutorial | browser | Getting Started Tutorial

XML and XSLT are supported in almost all major browsers.

Mozilla Firefox

Starting with version 1.0.2, Firefox has started supporting XML and XSLT (including CSS).

Mozilla

Mozilla contains expat for XML parsing and supports the display of XML + CSS. Mozilla also has some support for namespaces.

Mozilla can also do the execution of XSLT (XSLT implementation).

Netscape

Since version 8, Netscape has started using Mozilla's engine, so its support for XML/XSLT is the same as Mozilla's.

Opera

Since version 9, Opera has been able to support XML/XSLT (and CSS). Version 8 supports only XML + CSS.

Internet Explorer

Internet Explorer has been supporting XML, namespaces, CSS, XSLT, and XPath since version 6.

Note: Internet Explorer 5 also has support for XML, but the XSL section is not compatible with the official standards of the Consortium!

viewing XML files

The original XML files can be viewed in the following browsers: Mozilla, Firefox, Opera, Internet Explorer, and Netscape 6+.

However, if you need to display XML as a Web page, you need to add some display information.

viewing XML files

In Firefox and Internet Explorer:

Open the XML file-the XML document will appear as the code-color root and child elements. You can expand or close the structure of an element by clicking the plus or minus sign on the left side of the element. To view source code without + and-symbol, choose View Source from the browser menu.

In Netscape 6:

Open the XML file, and then right-click in the XML file and select View Source code. The XML document is displayed as the root and child element of the code color.

In Opera 7 and 8:

In Opera 7, open the XML file, then right-click in the XML file and choose Frame/View Source. The XML document will appear as plain text. In Opera 8: Open the XML file, then right-click in the XML file and select Source. The XML document will appear as plain text.

View this XML file:

<?xml version= "1.0" encoding= "Iso-8859-1"?>
-<!--edited with XML Spy v2007 (http://www.altova.com)
-->
-<note>
<to>Tove</to>
<from>Jani</from>
<body>don ' t forget me this weekend!</body>
</note>

Note: Do not expect XML files to be formatted like HTML documents!

To view an invalid XML file

If the browser opens an XML file with an error, it will report the error.

Please view this XML file:

<?xml version= "1.0" encoding= "Iso-8859-1"?>
-<!--edited with XML Spy v2007 (http://www.altova.com)
-->
-<note>
<to>Tove</to>
<from>Jani</from>
<body>don ' t forget me this weekend!</body>
</note>

Other XML instances

Check out these XML documents, which will help you build your perceptual knowledge of XML.

a CD directory of XML

This is my father's CD collection, which is stored as XML data (I guess it could be a very old, boring topic ...:-))

&lt;?xml version= "1.0" encoding= iso-8859-1 "?&gt;"


-&lt;!--edited with XML Spy v2007 (http://www.altova.com)


--&gt;


-&lt;CATALOG&gt;


-&lt;CD&gt;


&lt;title&gt;empire burlesque&lt;/title&gt;


&lt;artist&gt;bob dylan&lt;/artist&gt;


&lt;COUNTRY&gt;USA&lt;/COUNTRY&gt;


&lt;COMPANY&gt;Columbia&lt;/COMPANY&gt;


&lt;PRICE&gt;10.90&lt;/PRICE&gt;


&lt;YEAR&gt;1985&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;hide your heart&lt;/title&gt;


&lt;artist&gt;bonnie tyler&lt;/artist&gt;


&lt;COUNTRY&gt;UK&lt;/COUNTRY&gt;


&lt;company&gt;cbs records&lt;/company&gt;


&lt;PRICE&gt;9.90&lt;/PRICE&gt;


&lt;YEAR&gt;1988&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;greatest hits&lt;/title&gt;


&lt;artist&gt;dolly parton&lt;/artist&gt;


&lt;COUNTRY&gt;USA&lt;/COUNTRY&gt;


&lt;COMPANY&gt;RCA&lt;/COMPANY&gt;


&lt;PRICE&gt;9.90&lt;/PRICE&gt;


&lt;YEAR&gt;1982&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;still got the blues&lt;/title&gt;


&lt;artist&gt;gary moore&lt;/artist&gt;


&lt;COUNTRY&gt;UK&lt;/COUNTRY&gt;


&lt;company&gt;virgin records&lt;/company&gt;


&lt;PRICE&gt;10.20&lt;/PRICE&gt;


&lt;YEAR&gt;1990&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;TITLE&gt;Eros&lt;/TITLE&gt;


&lt;artist&gt;eros ramazzotti&lt;/artist&gt;


&lt;COUNTRY&gt;EU&lt;/COUNTRY&gt;


&lt;COMPANY&gt;BMG&lt;/COMPANY&gt;


&lt;PRICE&gt;9.90&lt;/PRICE&gt;


&lt;YEAR&gt;1997&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;one Night only&lt;/title&gt;


&lt;artist&gt;bee gees&lt;/artist&gt;


&lt;COUNTRY&gt;UK&lt;/COUNTRY&gt;


&lt;COMPANY&gt;Polydor&lt;/COMPANY&gt;


&lt;PRICE&gt;10.90&lt;/PRICE&gt;


&lt;YEAR&gt;1998&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;sylvias mother&lt;/title&gt;


&lt;ARTIST&gt;Dr.Hook&lt;/ARTIST&gt;


&lt;COUNTRY&gt;UK&lt;/COUNTRY&gt;


&lt;COMPANY&gt;CBS&lt;/COMPANY&gt;


&lt;PRICE&gt;8.10&lt;/PRICE&gt;


&lt;YEAR&gt;1973&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;maggie may&lt;/title&gt;


&lt;artist&gt;rod stewart&lt;/artist&gt;


&lt;COUNTRY&gt;UK&lt;/COUNTRY&gt;


&lt;COMPANY&gt;Pickwick&lt;/COMPANY&gt;


&lt;PRICE&gt;8.50&lt;/PRICE&gt;


&lt;YEAR&gt;1990&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;TITLE&gt;Romanza&lt;/TITLE&gt;


&lt;artist&gt;andrea bocelli&lt;/artist&gt;


&lt;COUNTRY&gt;EU&lt;/COUNTRY&gt;


&lt;COMPANY&gt;Polydor&lt;/COMPANY&gt;


&lt;PRICE&gt;10.80&lt;/PRICE&gt;


&lt;YEAR&gt;1996&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;when A Man Loves a woman&lt;/title&gt;


&lt;artist&gt;percy sledge&lt;/artist&gt;


&lt;COUNTRY&gt;USA&lt;/COUNTRY&gt;


&lt;COMPANY&gt;Atlantic&lt;/COMPANY&gt;


&lt;PRICE&gt;8.70&lt;/PRICE&gt;


&lt;YEAR&gt;1987&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;black angel&lt;/title&gt;


&lt;artist&gt;savage rose&lt;/artist&gt;


&lt;COUNTRY&gt;EU&lt;/COUNTRY&gt;


&lt;COMPANY&gt;Mega&lt;/COMPANY&gt;


&lt;PRICE&gt;10.90&lt;/PRICE&gt;


&lt;YEAR&gt;1995&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;1999 Grammy nominees&lt;/title&gt;


&lt;ARTIST&gt;Many&lt;/ARTIST&gt;


&lt;COUNTRY&gt;USA&lt;/COUNTRY&gt;


&lt;COMPANY&gt;Grammy&lt;/COMPANY&gt;


&lt;PRICE&gt;10.20&lt;/PRICE&gt;


&lt;YEAR&gt;1999&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;for the good times&lt;/title&gt;


&lt;artist&gt;kenny rogers&lt;/artist&gt;


&lt;COUNTRY&gt;UK&lt;/COUNTRY&gt;


&lt;company&gt;mucik master&lt;/company&gt;


&lt;PRICE&gt;8.70&lt;/PRICE&gt;


&lt;YEAR&gt;1995&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;big Willie style&lt;/title&gt;


&lt;artist&gt;will smith&lt;/artist&gt;


&lt;COUNTRY&gt;USA&lt;/COUNTRY&gt;


&lt;COMPANY&gt;Columbia&lt;/COMPANY&gt;


&lt;PRICE&gt;9.90&lt;/PRICE&gt;


&lt;YEAR&gt;1997&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;tupelo honey&lt;/title&gt;


&lt;artist&gt;van morrison&lt;/artist&gt;


&lt;COUNTRY&gt;UK&lt;/COUNTRY&gt;


&lt;COMPANY&gt;Polydor&lt;/COMPANY&gt;


&lt;PRICE&gt;8.20&lt;/PRICE&gt;


&lt;YEAR&gt;1971&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;TITLE&gt;Soulsville&lt;/TITLE&gt;


&lt;artist&gt;jorn hoel&lt;/artist&gt;


&lt;COUNTRY&gt;Norway&lt;/COUNTRY&gt;


&lt;COMPANY&gt;WEA&lt;/COMPANY&gt;


&lt;PRICE&gt;7.90&lt;/PRICE&gt;


&lt;YEAR&gt;1996&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;the Very Best of&lt;/title&gt;


&lt;artist&gt;cat stevens&lt;/artist&gt;


&lt;COUNTRY&gt;UK&lt;/COUNTRY&gt;


&lt;COMPANY&gt;Island&lt;/COMPANY&gt;


&lt;PRICE&gt;8.90&lt;/PRICE&gt;


&lt;YEAR&gt;1990&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;TITLE&gt;Stop&lt;/TITLE&gt;


&lt;artist&gt;sam brown&lt;/artist&gt;


&lt;COUNTRY&gt;UK&lt;/COUNTRY&gt;


&lt;company&gt;a and M&lt;/company&gt;


&lt;PRICE&gt;8.90&lt;/PRICE&gt;


&lt;YEAR&gt;1988&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;bridge of Spies&lt;/title&gt;


&lt;artist&gt;t ' pau&lt;/artist&gt;


&lt;COUNTRY&gt;UK&lt;/COUNTRY&gt;


&lt;COMPANY&gt;Siren&lt;/COMPANY&gt;


&lt;PRICE&gt;7.90&lt;/PRICE&gt;


&lt;YEAR&gt;1987&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;private dancer&lt;/title&gt;


&lt;artist&gt;tina turner&lt;/artist&gt;


&lt;COUNTRY&gt;UK&lt;/COUNTRY&gt;


&lt;COMPANY&gt;Capitol&lt;/COMPANY&gt;


&lt;PRICE&gt;8.90&lt;/PRICE&gt;


&lt;YEAR&gt;1983&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;midt om natten&lt;/title&gt;


&lt;artist&gt;kim larsen&lt;/artist&gt;


&lt;COUNTRY&gt;EU&lt;/COUNTRY&gt;


&lt;COMPANY&gt;Medley&lt;/COMPANY&gt;


&lt;PRICE&gt;7.80&lt;/PRICE&gt;


&lt;YEAR&gt;1983&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;pavarotti Gala concert&lt;/title&gt;


&lt;artist&gt;luciano pavarotti&lt;/artist&gt;


&lt;COUNTRY&gt;UK&lt;/COUNTRY&gt;


&lt;COMPANY&gt;DECCA&lt;/COMPANY&gt;


&lt;PRICE&gt;9.90&lt;/PRICE&gt;


&lt;YEAR&gt;1991&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;the Dock of the bay&lt;/title&gt;


&lt;artist&gt;otis redding&lt;/artist&gt;


&lt;COUNTRY&gt;USA&lt;/COUNTRY&gt;


&lt;COMPANY&gt;Atlantic&lt;/COMPANY&gt;


&lt;PRICE&gt;7.90&lt;/PRICE&gt;


&lt;YEAR&gt;1987&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;picture book&lt;/title&gt;


&lt;artist&gt;simply red&lt;/artist&gt;


&lt;COUNTRY&gt;EU&lt;/COUNTRY&gt;


&lt;COMPANY&gt;Elektra&lt;/COMPANY&gt;


&lt;PRICE&gt;7.20&lt;/PRICE&gt;


&lt;YEAR&gt;1985&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;TITLE&gt;Red&lt;/TITLE&gt;


&lt;artist&gt;the communards&lt;/artist&gt;


&lt;COUNTRY&gt;UK&lt;/COUNTRY&gt;


&lt;COMPANY&gt;London&lt;/COMPANY&gt;


&lt;PRICE&gt;7.80&lt;/PRICE&gt;


&lt;YEAR&gt;1987&lt;/YEAR&gt;


&lt;/CD&gt;


-&lt;CD&gt;


&lt;title&gt;unchain my heart&lt;/title&gt;


&lt;artist&gt;joe cocker&lt;/artist&gt;


&lt;COUNTRY&gt;USA&lt;/COUNTRY&gt;


&lt;COMPANY&gt;EMI&lt;/COMPANY&gt;


&lt;PRICE&gt;8.20&lt;/PRICE&gt;


&lt;YEAR&gt;1987&lt;/YEAR&gt;


&lt;/CD&gt;


&lt;/CATALOG&gt;

a directory of XML plants

A catalogue of plants from a gardening store, stored as XML data.

&lt;?xml version= "1.0" encoding= iso-8859-1 "?&gt;"


-&lt;!--edited with XML Spy v2007 (http://www.altova.com)


--&gt;


-&lt;CATALOG&gt;


-&lt;PLANT&gt;


&lt;COMMON&gt;Bloodroot&lt;/COMMON&gt;


&lt;botanical&gt;sanguinaria canadensis&lt;/botanical&gt;


&lt;ZONE&gt;4&lt;/ZONE&gt;


&lt;light&gt;mostly shady&lt;/light&gt;


&lt;PRICE&gt;$2.44&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;031599&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;COMMON&gt;Columbine&lt;/COMMON&gt;


&lt;botanical&gt;aquilegia canadensis&lt;/botanical&gt;


&lt;ZONE&gt;3&lt;/ZONE&gt;


&lt;light&gt;mostly shady&lt;/light&gt;


&lt;PRICE&gt;$9.37&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;030699&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;marsh marigold&lt;/common&gt;


&lt;botanical&gt;caltha palustris&lt;/botanical&gt;


&lt;ZONE&gt;4&lt;/ZONE&gt;


&lt;light&gt;mostly sunny&lt;/light&gt;


&lt;PRICE&gt;$6.81&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;051799&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;COMMON&gt;Cowslip&lt;/COMMON&gt;


&lt;botanical&gt;caltha palustris&lt;/botanical&gt;


&lt;ZONE&gt;4&lt;/ZONE&gt;


&lt;light&gt;mostly shady&lt;/light&gt;


&lt;PRICE&gt;$9.90&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;030699&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;dutchman ' s-breeches&lt;/common&gt;


&lt;botanical&gt;dicentra cucullaria&lt;/botanical&gt;


&lt;ZONE&gt;3&lt;/ZONE&gt;


&lt;light&gt;mostly shady&lt;/light&gt;


&lt;PRICE&gt;$6.44&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;012099&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;ginger, wild&lt;/common&gt;


&lt;botanical&gt;asarum canadense&lt;/botanical&gt;


&lt;ZONE&gt;3&lt;/ZONE&gt;


&lt;light&gt;mostly shady&lt;/light&gt;


&lt;PRICE&gt;$9.03&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;041899&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;COMMON&gt;Hepatica&lt;/COMMON&gt;


&lt;botanical&gt;hepatica americana&lt;/botanical&gt;


&lt;ZONE&gt;4&lt;/ZONE&gt;


&lt;light&gt;mostly shady&lt;/light&gt;


&lt;PRICE&gt;$4.45&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;012699&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;COMMON&gt;Liverleaf&lt;/COMMON&gt;


&lt;botanical&gt;hepatica americana&lt;/botanical&gt;


&lt;ZONE&gt;4&lt;/ZONE&gt;


&lt;light&gt;mostly shady&lt;/light&gt;


&lt;PRICE&gt;$3.99&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;010299&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;COMMON&gt;Jack-In-The-Pulpit&lt;/COMMON&gt;


&lt;botanical&gt;arisaema triphyllum&lt;/botanical&gt;


&lt;ZONE&gt;4&lt;/ZONE&gt;


&lt;light&gt;mostly shady&lt;/light&gt;


&lt;PRICE&gt;$3.23&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;020199&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;COMMON&gt;Mayapple&lt;/COMMON&gt;


&lt;botanical&gt;podophyllum peltatum&lt;/botanical&gt;


&lt;ZONE&gt;3&lt;/ZONE&gt;


&lt;light&gt;mostly shady&lt;/light&gt;


&lt;PRICE&gt;$2.98&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;060599&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;phlox, woodland&lt;/common&gt;


&lt;botanical&gt;phlox divaricata&lt;/botanical&gt;


&lt;ZONE&gt;3&lt;/ZONE&gt;


&lt;light&gt;sun or shade&lt;/light&gt;


&lt;PRICE&gt;$2.80&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;012299&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;phlox, blue&lt;/common&gt;


&lt;botanical&gt;phlox divaricata&lt;/botanical&gt;


&lt;ZONE&gt;3&lt;/ZONE&gt;


&lt;light&gt;sun or shade&lt;/light&gt;


&lt;PRICE&gt;$5.59&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;021699&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;COMMON&gt;Spring-Beauty&lt;/COMMON&gt;


&lt;botanical&gt;claytonia virginica&lt;/botanical&gt;


&lt;ZONE&gt;7&lt;/ZONE&gt;


&lt;light&gt;mostly shady&lt;/light&gt;


&lt;PRICE&gt;$6.59&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;020199&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;COMMON&gt;Trillium&lt;/COMMON&gt;


&lt;botanical&gt;trillium grandiflorum&lt;/botanical&gt;


&lt;ZONE&gt;5&lt;/ZONE&gt;


&lt;light&gt;sun or shade&lt;/light&gt;


&lt;PRICE&gt;$3.90&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;042999&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;wake robin&lt;/common&gt;


&lt;botanical&gt;trillium grandiflorum&lt;/botanical&gt;


&lt;ZONE&gt;5&lt;/ZONE&gt;


&lt;light&gt;sun or shade&lt;/light&gt;


&lt;PRICE&gt;$3.20&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;022199&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;violet, dog-tooth&lt;/common&gt;


&lt;botanical&gt;erythronium americanum&lt;/botanical&gt;


&lt;ZONE&gt;4&lt;/ZONE&gt;


&lt;LIGHT&gt;Shade&lt;/LIGHT&gt;


&lt;PRICE&gt;$9.04&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;020199&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;trout lily&lt;/common&gt;


&lt;botanical&gt;erythronium americanum&lt;/botanical&gt;


&lt;ZONE&gt;4&lt;/ZONE&gt;


&lt;LIGHT&gt;Shade&lt;/LIGHT&gt;


&lt;PRICE&gt;$6.94&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;032499&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;adder ' s-tongue&lt;/common&gt;


&lt;botanical&gt;erythronium americanum&lt;/botanical&gt;


&lt;ZONE&gt;4&lt;/ZONE&gt;


&lt;LIGHT&gt;Shade&lt;/LIGHT&gt;


&lt;PRICE&gt;$9.58&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;041399&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;COMMON&gt;Anemone&lt;/COMMON&gt;


&lt;botanical&gt;anemone blanda&lt;/botanical&gt;


&lt;ZONE&gt;6&lt;/ZONE&gt;


&lt;light&gt;mostly shady&lt;/light&gt;


&lt;PRICE&gt;$8.86&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;122698&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;grecian windflower&lt;/common&gt;


&lt;botanical&gt;anemone blanda&lt;/botanical&gt;


&lt;ZONE&gt;6&lt;/ZONE&gt;


&lt;light&gt;mostly shady&lt;/light&gt;


&lt;PRICE&gt;$9.16&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;071099&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;bee balm&lt;/common&gt;


&lt;botanical&gt;monarda didyma&lt;/botanical&gt;


&lt;ZONE&gt;4&lt;/ZONE&gt;


&lt;LIGHT&gt;Shade&lt;/LIGHT&gt;


&lt;PRICE&gt;$4.59&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;050399&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;COMMON&gt;Bergamot&lt;/COMMON&gt;


&lt;botanical&gt;monarda didyma&lt;/botanical&gt;


&lt;ZONE&gt;4&lt;/ZONE&gt;


&lt;LIGHT&gt;Shade&lt;/LIGHT&gt;


&lt;PRICE&gt;$7.16&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;042799&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;black-eyed susan&lt;/common&gt;


&lt;botanical&gt;rudbeckia hirta&lt;/botanical&gt;


&lt;ZONE&gt;Annual&lt;/ZONE&gt;


&lt;LIGHT&gt;Sunny&lt;/LIGHT&gt;


&lt;PRICE&gt;$9.80&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;061899&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;COMMON&gt;Buttercup&lt;/COMMON&gt;


&lt;BOTANICAL&gt;Ranunculus&lt;/BOTANICAL&gt;


&lt;ZONE&gt;4&lt;/ZONE&gt;


&lt;LIGHT&gt;Shade&lt;/LIGHT&gt;


&lt;PRICE&gt;$2.57&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;061099&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;COMMON&gt;Crowfoot&lt;/COMMON&gt;


&lt;BOTANICAL&gt;Ranunculus&lt;/BOTANICAL&gt;


&lt;ZONE&gt;4&lt;/ZONE&gt;


&lt;LIGHT&gt;Shade&lt;/LIGHT&gt;


&lt;PRICE&gt;$9.34&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;040399&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;butterfly weed&lt;/common&gt;


&lt;botanical&gt;asclepias tuberosa&lt;/botanical&gt;


&lt;ZONE&gt;Annual&lt;/ZONE&gt;


&lt;LIGHT&gt;Sunny&lt;/LIGHT&gt;


&lt;PRICE&gt;$2.78&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;063099&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;COMMON&gt;Cinquefoil&lt;/COMMON&gt;


&lt;BOTANICAL&gt;Potentilla&lt;/BOTANICAL&gt;


&lt;ZONE&gt;Annual&lt;/ZONE&gt;


&lt;LIGHT&gt;Shade&lt;/LIGHT&gt;


&lt;PRICE&gt;$7.06&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;052599&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;COMMON&gt;Primrose&lt;/COMMON&gt;


&lt;BOTANICAL&gt;Oenothera&lt;/BOTANICAL&gt;


&lt;ZONE&gt;3-5&lt;/ZONE&gt;


&lt;LIGHT&gt;Sunny&lt;/LIGHT&gt;


&lt;PRICE&gt;$6.56&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;013099&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;COMMON&gt;Gentian&lt;/COMMON&gt;


&lt;BOTANICAL&gt;Gentiana&lt;/BOTANICAL&gt;


&lt;ZONE&gt;4&lt;/ZONE&gt;


&lt;light&gt;sun or shade&lt;/light&gt;


&lt;PRICE&gt;$7.81&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;051899&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;blue gentian&lt;/common&gt;


&lt;BOTANICAL&gt;Gentiana&lt;/BOTANICAL&gt;


&lt;ZONE&gt;4&lt;/ZONE&gt;


&lt;light&gt;sun or shade&lt;/light&gt;


&lt;PRICE&gt;$8.56&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;050299&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;jacob ' s ladder&lt;/common&gt;


&lt;botanical&gt;polemonium caeruleum&lt;/botanical&gt;


&lt;ZONE&gt;Annual&lt;/ZONE&gt;


&lt;LIGHT&gt;Shade&lt;/LIGHT&gt;


&lt;PRICE&gt;$9.26&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;022199&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;greek valerian&lt;/common&gt;


&lt;botanical&gt;polemonium caeruleum&lt;/botanical&gt;


&lt;ZONE&gt;Annual&lt;/ZONE&gt;


&lt;LIGHT&gt;Shade&lt;/LIGHT&gt;


&lt;PRICE&gt;$4.36&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;071499&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;california poppy&lt;/common&gt;


&lt;botanical&gt;eschscholzia californica&lt;/botanical&gt;


&lt;ZONE&gt;Annual&lt;/ZONE&gt;


&lt;LIGHT&gt;Sun&lt;/LIGHT&gt;


&lt;PRICE&gt;$7.89&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;032799&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;shooting star&lt;/common&gt;


&lt;BOTANICAL&gt;Dodecatheon&lt;/BOTANICAL&gt;


&lt;ZONE&gt;Annual&lt;/ZONE&gt;


&lt;light&gt;mostly shady&lt;/light&gt;


&lt;PRICE&gt;$8.60&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;051399&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;COMMON&gt;Snakeroot&lt;/COMMON&gt;


&lt;BOTANICAL&gt;Cimicifuga&lt;/BOTANICAL&gt;


&lt;ZONE&gt;Annual&lt;/ZONE&gt;


&lt;LIGHT&gt;Shade&lt;/LIGHT&gt;


&lt;PRICE&gt;$5.63&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;071199&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


-&lt;PLANT&gt;


&lt;common&gt;cardinal flower&lt;/common&gt;


&lt;botanical&gt;lobelia cardinalis&lt;/botanical&gt;


&lt;ZONE&gt;2&lt;/ZONE&gt;


&lt;LIGHT&gt;Shade&lt;/LIGHT&gt;


&lt;PRICE&gt;$3.02&lt;/PRICE&gt;


&lt;AVAILABILITY&gt;022299&lt;/AVAILABILITY&gt;


&lt;/PLANT&gt;


&lt;/CATALOG&gt;

a simple menu

This is the breakfast menu from the restaurant, stored as XML data.

 <?xml version= "1.0" encoding= "iso-8859-1"?>
-<!--  edited with XML Spy v2007 (h ttp://www.altova.com)
 -->
-<breakfast_menu>
-<food>
  <name>belgian waffles</name>
  <price>$5.95</price>
  <description>two of our famous Belgian waffles with plenty to real Maple syrup</description>
  <calories>650</calories>
  </FOOD>
-<food>
  <name>strawberry Belgian waffles</name>
  < price>$7.95</price>
  <description>light Belgian waffles covered with strawberries, and whipped cream</description>
  <calories>900</calories>
  </FOOD>
-<food
  <name>berry-berry Belgian waffles</name>
  <price>$8.95</price>
  <description>light Belgian Waffles covered with an asSortment of fresh berries and whipped cream</description>
  <calories>900</calories>
& nbsp </food>
-<food>
  <name>french toast</name>
  <price>$4.50</ price>
  <description>thick slices made from our homemade sourdough bread</description>
& nbsp <calories>600</calories>
  </FOOD>
-<food>
  <name>homestyle breakfast</name>
  <price>$6.95</price>
  <description>two eggs, bacon or Sausage, toast, and our ever-popular hash browns</description>
  <calories>950</calories>
  </food>
  </BREAKFAST_MENU>

Why does XML display this way?

The XML document does not carry information about how to display the data.

Because XML tags are "invented" by the author of an XML document, browsers cannot determine whether a label like <table> actually describes an HTML table or a table.

In the absence of any information about how to display data, most browsers simply display XML documents as source code.

In the following sections, we'll look at a few solutions for this display problem, which will use CSS, XSL, JavaScript, and XML data islands.







Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.