From 7a8b01e1022c989361079dcd95277517a3c10c45 Mon Sep 17 00:00:00 2001 From: Erik Hanson Date: Fri, 19 Apr 2024 14:45:30 -0700 Subject: [PATCH] Update docs with links to blog post --- README.md | 3 ++- lib/xml_query.ex | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 86e3e96..f4e2c62 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,8 @@ The input can be: * Anything that implements the `String.Chars` protocol. We created a related library called [HtmlQuery](https://hexdocs.pm/html_query/readme.html) which has the same API but -is used for querying HTML. +is used for querying HTML. You can read more about them in +[Querying HTML and XML in Elixir with HtmlQuery and XmlQuery](https://eahanson.com/articles/html-query-xml-query). This library is MIT licensed and is part of a growing number of Elixir open source libraries published at [github.com/synchronal](https://github.com/synchronal#elixir). diff --git a/lib/xml_query.ex b/lib/xml_query.ex index 755e0e9..6fde94d 100644 --- a/lib/xml_query.ex +++ b/lib/xml_query.ex @@ -5,6 +5,10 @@ defmodule XmlQuery do A concise API for querying XML. XML parsing is handled by Erlang/OTP’s built-in [xmerl](https://www.erlang.org/doc/man/xmerl) library. + We created a related library called [HtmlQuery](https://hexdocs.pm/html_query/readme.html) which has the same API but + is used for querying HTML. You can read more about them in + [Querying HTML and XML in Elixir with HtmlQuery and XmlQuery](https://eahanson.com/articles/html-query-xml-query). + ## Data types All functions accept XML in the form of a string, an `Xmerl.xml_attribute`, an `Xmerl.xml_document`, an