Re: [xml] Extract title from html file

2018-08-14 Thread Eric S Eberhard
rg Subject: Re: [xml] Extract title from html file On Fri, 2018-08-10 at 02:46 +0100, James Read via xml wrote: > I have a bunch of html files on disk and want to open them and extract > the contents of the title tag using libxml2. By this do you mean the title element in the head? You can

Re: [xml] Extract title from html file

2018-08-09 Thread Liam R E Quin
On Fri, 2018-08-10 at 02:46 +0100, James Read via xml wrote: > I have a bunch of html files on disk and want to open them and > extract the contents of the title tag using libxml2. By this do you mean the title element in the head? You can use XPath on an XML document to extract /html/head/title