XML parse error after upgrading to pr15

  • Hello,

    I have just tried to do the upgrade from pr14 to pr15 but without success.
    I'm including a config file in my xml, like this:
    <include url="list.xml" />
    The included file is loaded from http://zbooy.pl/giga/list.xml and looks like this:

    <panoramas>
    <pano name="wysoki-wierch-zachod" title="Wysoki Wierch" />
    <pano name="waksmundzki-wierch" title="Waksmundzki Wierch" />
    [.......]
    </panoramas>

    It's just a basic config file that worked just fine until today; now it stops with the XML parsing error.
    The file passes XML validation, of course. If I omit the include, everything else is OK.

    I have reverted krpano,js to pr14 and everything is working again. Any ideas?

    zbooy

    Einmal editiert, zuletzt von zbooy (30. März 2018 um 08:23)

  • Thank you very much, this did the trick!

    It is certainly stated in the docs:
    <krpano>
    This is the main / root element of a krpano xml file.
    All further xml elements need to be defined within this element.

    Although it seems this was not enforced until pr15 version.

    zbooy

  • Hi,

    that's related to this change in version 1.19-pr15:

    Zitat

    Improved xml parsing error checking for all browsers.


    Some browser were 'silently failing' on some invalid xml files - that means where was no error on the xml parsing, even if there should have been one. So to check such case there is now also a check for a <krpano> xml root element - and normally there should have been always one there ;-).


    I recommend remove a dblclick.js plugin. It is blocked by adblock.

    Right, the name 'dblclick' is also used by some ad-scripts and therefore blocked by ad-blockers.
    But simply renaming the file should already work.

    Or better - use a xml-only solution for double-click support:
    https://krpano.com/forum/wbb/inde…74482#post74482

    That solution works also on touch-devices and avoids some browser-compatibility problems.

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!