Author Topic: XML Error  (Read 308 times)

0 Members and 1 Guest are viewing this topic.

Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1073
    • Joe’s Weather
XML Error
« on: September 13, 2020, 01:35:26 PM »
Getting an XML error message after updating my scripts, www.joesweather.info

XML error: Invalid document end at line 94

and I do not know where to go to find it or fix it.

Can anyone help me?

Thanks,
Joe
https://joesweather.info
Davis Vantage Pro 2 Plus 24-FARS Wireless
WeatherLink Live

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: XML Error
« Reply #1 on: September 13, 2020, 01:52:24 PM »
Getting an XML error message after updating my scripts, www.joesweather.info

XML error: Invalid document end at line 94

and I do not know where to go to find it or fix it.

Can anyone help me?

Thanks,
Joe
Check your https://www.joesweather.info/flyout-menu.xml
error on line 94 at column 1: Extra content at the end of the document

Quote
XML Parsing Error: junk after document element
Location: https://www.joesweather.info/flyout-menu.xml
Line Number 94, Column 1:
-->
^

Wim
« Last Edit: September 13, 2020, 01:54:28 PM by wvdkuil »

Offline Jumpin Joe

  • Forecaster
  • *****
  • Posts: 1073
    • Joe’s Weather
Re: XML Error
« Reply #2 on: September 13, 2020, 02:42:39 PM »
Thank you, once again, Wim!

That corrected it.

Can you tell me how you found the error so I can correct issues like this on my own from now on?

Joe


Getting an XML error message after updating my scripts, www.joesweather.info

XML error: Invalid document end at line 94

and I do not know where to go to find it or fix it.

Can anyone help me?

Thanks,
Joe
Check your https://www.joesweather.info/flyout-menu.xml
error on line 94 at column 1: Extra content at the end of the document

Quote
XML Parsing Error: junk after document element
Location: https://www.joesweather.info/flyout-menu.xml
Line Number 94, Column 1:
-->
^

Wim
https://joesweather.info
Davis Vantage Pro 2 Plus 24-FARS Wireless
WeatherLink Live

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: XML Error
« Reply #3 on: September 14, 2020, 03:28:45 AM »
Thank you, once again, Wim!

That corrected it.

Can you tell me how you found the error so I can correct issues like this on my own from now on?

Joe

In your browser run https://www.joesweather.info/
=> Right click and select  from the pop-up menu "show html" (or similar wording)
==> Only a few lines are there, the last one is  the <title> line
Use https://www.joesweather.info/check-fetch-times.php?show=structure
=> scan for <title>
==> that is displayed just before loading the flyout-menu.php script
That script https://www.joesweather.info/flyout-menu.php?sce=view loads an  xml - file of the menu
==> as set in line 21 $MENUdef = './flyout-menu.xml';
==>  open that file  https://www.joesweather.info/flyout-menu.xml  in the browser and the error is displayed.

Wim

 

anything