Skip to content

Instantly share code, notes, and snippets.

@carlward
Created May 12, 2016 23:52
Parsing HTML and XML Webcast
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Soup Title</title>
<meta name="description" content="Soup">
<meta name="author" content="Soupy Soup">
<style type="text/css">
.tg {border-collapse:collapse;border-spacing:0;border-color:#999;border-width:1px;border-style:solid;margin:0px auto;}
.tg td {font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;border-color:#999;color:#444;background-color:#F7FDFA;}
.tg th {font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;border-color:#999;color:#fff;background-color:#26ADE4;}
.tg .tg-vn4c {background-color:#D2E4FC}
</style>
</head>
<body>
<table class="tg">
<tr>
<th class="tg-031e">Soup</th>
<th class="tg-031e">Price</th>
<th class="tg-031e">Weight</th>
<th class="tg-031e">Rating</th>
<th class="tg-031e">Reviews</th>
</tr>
<tr>
<td class="tg-vn4c">Amy's Kitchen Organic Gluten Free Low Fat Chunky Tomato Soup</td>
<td class="tg-vn4c">1.7</td>
<td class="tg-vn4c">.100</td>
<td class="tg-vn4c">5</td>
<td class="tg-vn4c">4</td>
</tr>
<tr>
<td class="tg-031e">Heinz Classic Cream of Tomato Soup</td>
<td class="tg-031e">.95</td>
<td class="tg-031e">.400</td>
<td class="tg-031e">5</td>
<td class="tg-031e">14</td>
</tr>
<tr>
<td class="tg-vn4c">Baxters Favourites Cream of Tomato Soup</td>
<td class="tg-vn4c">1.15</td>
<td class="tg-vn4c">.400</td>
<td class="tg-vn4c">2</td>
<td class="tg-vn4c">1</td>
</tr>
<tr>
<td class="tg-031e">Cross &amp; Blackwell Cream of Tomato Soup</td>
<td class="tg-031e">2.00</td>
<td class="tg-031e">4 x .400</td>
<td class="tg-031e">5</td>
<td class="tg-031e">2</td>
</tr>
<tr>
<td class="tg-vn4c">Morrisons Cream of Tomato Soup</td>
<td class="tg-vn4c">.45</td>
<td class="tg-vn4c">.100</td>
<td class="tg-vn4c">4</td>
<td class="tg-vn4c">1</td>
</tr>
</table>
</body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<soupdata>
<soup>
<name>Amy's Kitchen Organic Gluten Free Low Fat Chunky Tomato Soup</name>
<price currency="GBP">1.7</price>
<weight units='g'>.100</weight>
<rating>5</rating>
<reviews>4</reviews>
</soup>
<soup>
<name>Heinz Classic Cream of Tomato Soup</name>
<price currency="GBP">.95</price>
<weight units='g'>.400</weight>
<rating>5</rating>
<reviews>14</reviews>
</soup>
<soup>
<name>Baxters Favourites Cream of Tomato Soup</name>
<price currency="GBP">1.15</price>
<weight units='g'>.400</weight>
<rating>2</rating>
<reviews>1</reviews>
</soup>
<soup>
<name>Cross &amp; Blackwell Cream of Tomato Soup</name>
<price currency="GBP">2.00</price>
<weight units='g'>4 x .400</weight>
<rating>5</rating>
<reviews>2</reviews>
</soup>
<soup>
<name>Morrisons Cream of Tomato Soup</name>
<price currency="GBP">.45</price>
<weight units='g'>.100</weight>
<rating>4</rating>
<reviews>1</reviews>
</soup>
</soupdata>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment