You are not logged in.

1

Saturday, October 10th 2020, 1:03pm

Problem with parsing xml file.

Hello.
just yesterday updated the version of krpano from 1.19 (16) to 1.20.8
and ran into such a problem that it is no longer possible to parse the scene, the one that was indicated at loading.
namely.
previously i used

let xml;

function xml_parse_content () {
const krpano = document.getElementById ("krpanoSWFObject");
xml = krpano.get (`xml.content`)
console.log (xml)
xml_parser_tablet (xml)
}
function xml_parser_tablet (name) {
let parser = new DOMParser ();
let xmlDoc = parser.parseFromString (name, "application / xml")
console.log (xmlDoc)
}

A nd I was fine with all the xml files found in the scene

(all include)

And now, after the update, it just displays what is in the scene tag and everything without going into include

Please tell me how to extract xml files in the new version (1.20.8) to parse them.
john2801 has attached the following images:
  • 1.19(16).png
  • 1.19(16)_2.png
  • 1.20.8.png

This post has been edited 1 times, last edit by "john2801" (Oct 10th 2020, 2:33pm)


2

Monday, October 12th 2020, 9:36am

Has anyone met something like this? *confused* *confused*