From 303e13f6165fcd0fd537a0594b2a1e2271bb5f9e Mon Sep 17 00:00:00 2001 From: stav Date: Tue, 18 Sep 2012 12:56:52 -0500 Subject: [PATCH] selector documentation typos --- docs/topics/selectors.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/topics/selectors.rst b/docs/topics/selectors.rst index 7361b47c1..4211ea025 100644 --- a/docs/topics/selectors.rst +++ b/docs/topics/selectors.rst @@ -361,15 +361,15 @@ XmlXPathSelector examples ~~~~~~~~~~~~~~~~~~~~~~~~~ Here's a couple of :class:`XmlXPathSelector` examples to illustrate several -concepts. In all cases we assume there is already a :class:`XmlPathSelector` +concepts. In both cases we assume there is already an :class:`XmlPathSelector` instantiated with a :class:`~scrapy.http.Response` object like this:: - x = HtmlXPathSelector(xml_response) + x = XmlPathSelector(xml_response) 1. Select all ```` elements from a XML response body, returning a list of :class:`XPathSelector` objects (ie. a :class:`XPathSelectorList` object):: - x.select("//h1") + x.select("//product") 2. Extract all prices from a `Google Base XML feed`_ which requires registering a namespace::