O'Reilly logo

Go Standard Library Cookbook by Radomir Sohlich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

  1. Open the console and create the folder chapter05/recipe11.
  2. Navigate to the directory.
  3. Create the data.xml file with the following XML content:
        <?xml version="1.0"?>        <catalog>          <book id="bk101">            <author>Gambardella, Matthew</author>            <title>XML Developer's Guide</title>            <genre>Computer</genre>            <price>44.95</price>            <publish_date>2000-10-01</publish_date>            <description>An in-depth look at creating applications              with XML.</description>          </book>          <book id="bk112">            <author>Galos, Mike</author>            <title>Visual Studio 7: A Comprehensive Guide</title>            <genre>Computer</genre>            <price>49.95</price>            <publish_date>2001-04-16</publish_date>            <description>Microsoft Visual Studio 7 is explored in depth, looking at how Visual Basic, Visual C++, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required