From 00a593c9362aabd5df4f4c9d37d00ef1caba139f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 19 Jul 2019 16:00:53 +0100 Subject: Tweak README formatting. --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fa8300a..13b70bf 100644 --- a/README.md +++ b/README.md @@ -6,24 +6,24 @@ C++ API than libxml++ for parsing HTML. For example: - cxml::Document doc ("RootNodeName"); - doc.read ("foo.xml"); + cxml::Document doc("RootNodeName"); + doc.read("foo.xml"); /* Get the contents of child node , throwing an * exception if it does not exist */ - string s = doc.string_child ("Fred"); + string s = doc.string_child("Fred"); /* Get the contents of child node , or 42 if it * does not exist */ - int i = doc.optional_number_child ("Jim").get_value_or (42); + int i = doc.optional_number_child("Jim").get_value_or(42); /* Get the contents of within , * throwing an exception if either node * is not present. */ - double d = doc.node_child("Sheila").number_child ("Roger"); + double d = doc.node_child("Sheila").number_child("Roger"); For full details, see src/cxml.h -- cgit v1.2.3