html:parse() fails on webpage

Monday, 14 September 2020 · 6 messages · last reply 15 Sep 2020
AM
Andreas Mixich14 Sep 2020 23:00 #
Hi, when doing:
html:parse(fetch:binary("https://ant.apache.org/manual/Tasks/chmod.html"),
map{"method":"xml"})
and also
html:parse(fetch:binary("https://ant.apache.org/manual/Tasks/chmod.html"),
map{"method":"html"})
or
    html:doc("https://ant.apache.org/manual/Tasks/chmod.html")
I get [html:parse] Line 23: </head> found, </link> expected. I use the BaseX version from 14 minutes ago ;-) (BaseX944-20200914.223814).
-- Goody Bye, Minden jót, Mit freundlichen Grüßen, Andreas Mixich
CG
Christian Grün14 Sep 2020 23:04 #
Hi Andreas, I get…
<html lang="en">
  <head>
    <link rel="stylesheet" type="text/css" href="../stylesheets/style.css"/>
    <title>Chmod Task</title>
  </head>
  <body>
<h2 id="chmod">Chmod</h2>
<h3>Description</h3>
Are you sure that TagSoup is included in your classpath? Cheers Christian
Quoted text · Andreas Mixich · 32 lines
On Mon, Sep 14, 2020 at 11:00 PM Andreas Mixich <mixich.andreas at gmail.com> wrote: > > Hi, > > when doing: > > > html:parse(fetch:binary("https://ant.apache.org/manual/Tasks/chmod.html"), > map{"method":"xml"}) > > and also > > > html:parse(fetch:binary("https://ant.apache.org/manual/Tasks/chmod.html"), > map{"method":"html"}) > > or > > html:doc("https://ant.apache.org/manual/Tasks/chmod.html") > > I get > > [html:parse] Line 23: </head> found, </link> expected. > > > I use the BaseX version from 14 minutes ago ;-) (BaseX944-20200914.223814). > > -- > Goody Bye, Minden jót, Mit freundlichen Grüßen, > Andreas Mixich >
AM
Andreas Mixich14 Sep 2020 23:53 #
Quoted text · Christian Grün · 5 lines
Am 14.09.2020 um 23:04 schrieb Christian Grün: > Hi Andreas, > > > Are you sure that TagSoup is included in your classpath?
Hmmm... I was. But now, that you say it..., yes, you are right! When I start via 'BaseX.exe' all is fine. When I start via my own script, it fails (though, from first testing the string concatenation I use, builds the classpath just fine). I am currently debugging my script, but its definitely on my side. Sorry for the hassle.
-- Goody Bye, Minden jót, Mit freundlichen Grüßen, Andreas Mixich
AM
Andreas Mixich15 Sep 2020 00:24 #
I just checked my script and could not find any issue with it. I do not even remember, why I did not just run 'BaseX.exe' all the time, since this is what I do now. Problem solved. Thanks.
-- Goody Bye, Minden jót, Mit freundlichen Grüßen, Andreas Mixich
AM
Andreas Mixich15 Sep 2020 17:30 #
Quoted text · Andreas Mixich · 6 lines
Am 15.09.2020 um 00:24 schrieb Andreas Mixich: > I just checked my script and could not find any issue with it. > > I do not even remember, why I did not just run 'BaseX.exe' > all the time, since this is what I do now. Problem solved. > Thanks.
The journey goes on... and now I remember why did the script! :-) When I use BaseX.exe, it seems, that my %CLASSPATH% does not get added, since 'xslt:processor()' results in `Java', but when I start via *basexgui.bat* I get Saxon. Also, BaseXGUI.exe starts with other files opened in the editor. The reason I did my own script (Message-ID: <dc805a94-85f0-9284-5568-e02d39639bbd at gmail.com>) was to suppress the opening window. Back to debugging my script.
-- Goody Bye, Minden jót, Mit freundlichen Grüßen, Andreas Mixich
AM
Andreas Mixich15 Sep 2020 17:36 #
Quoted text · Andreas Mixich · 2 lines
Am 15.09.2020 um 17:30 schrieb Andreas Mixich: > Also, BaseXGUI.exe starts with other files opened in the editor.
Seems I was wrong on that one.
-- Goody Bye, Minden jót, Mit freundlichen Grüßen, Andreas Mixich

⚡Generated with XQuery