2010
2009
Autopager - Create new ap rule for page without "next" in links - teesoft, make software to a tee
This works on AutoPager 0.5.1.4 or newer version. This is the recording of the steps to create the rule for http://www.pspad.com/en/pspad-extensions.php. This demo shows how to create AutoPager rules for the pages which don't have "Next" in links. They only have a navbar includes all the page numbers like this: Page: [1], 2, 3, 4. The final link xpath get in this tutorial is: //div[@id='obspoz']/p/text()[contains(.,'[')]/following-sibling::a[1] Steps explains: //div[@id='obspoz']/p :select the navbar. //div[@id='obspoz']/p/text() : select the texts in the navbar since current page number does not have a node //div[@id='obspoz']/p/text()[contains(.,'[')] : select the text for the current page number. It will be easier if the current page number has a node, for example if it's a span with class='current': //div[@id='obspoz']/p/span[@class='current']. //div[@id='obspoz']/p/text()[contains(.,'[')]/following-sibling::a[1] : select the first link after the current page number text.
Tutorial : Greasemonkey Recipe Book for Greasemonkey
Example Greasemonkey script below. The only things that need to be changed are bolded italic. In short, the XPath that identifies the top-level DIV, the XPath that identifies the DIV containing the content you want to display, and a list of XPath's that you want to remove.
2008
Use XPath to locate information in XML documents
Takeaway: XML provides a wonderful vehicle for packaging and exchanging data, but getting data from an XML document can be troublesome. XPath provides a simple, consistent vocabulary for getting the necessary data.
AutoPager FAQs___Teesoft, make software to a tee
Autopager 0.1.6.0.0 released. A new auto discovery site wizards is added. Access it at Tools->Auto Pager->AutoPager Site Setting Workshop. Download it Now .
XPath Tutorial____XPath is a language for finding information in an XML document
XPath is used to navigate through elements and attributes in an XML document.
1
(6 marks)
