A password will be e-mailed to you.

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.

Pages: [1]
Author Topic: Improved XML syntax checking/degugger
FSMP
Professional
Posts: 637
Send Message
Post Improved XML syntax checking/degugger
on: June 1, 2012, 07:44

Every day, addon planes are released for FSX & P3D with XML syntax errors in their XML gauges & models, resulting in expected functionality, not working.

While there is a crude XML Syntax Checker, that can be turned on in the the prepared.cfg file, the error reports from that syntax checker, are typically near to useless to identify wherer the error is.

ie: Error in abc.xml - Possibly a missing space !

No line numbers, and very seldom the context in which this error occured.

Please could the P3D developers at Lockheed apply some thought to either improving this built in checker, or providing a better external syntax checking tool, that gives more meaningfull error reports.

Benefits might be.
(1) Developers are able to far more efficiently find and correct XML syntax errors.
(2) For $50, I could see most serious developers, buying P3D, just to be able to better test their FSX XML !!

Geoff

janvaane
Professional
Posts: 544
Send Message
Jan Vaane
Post Re: Improved XML syntax checking/degugger
on: June 1, 2012, 08:12

What about this one?
http://www.w3schools.com/dom/dom_validate.asp
Open any XML with Notepad++ copy/paste and press verify xml button

Jan Vaane - http://flightsimeindhoven.nl/?page_id=6715

FSMP
Professional
Posts: 637
Send Message
Post Re: Improved XML syntax checking/degugger
on: June 1, 2012, 11:24

Quote from janvaane on June 1, 2012, 08:12
What about this one?
http://www.w3schools.com/dom/dom_validate.asp
Open any XML with Notepad++ copy/paste and press verify xml button

I don't think so :o (If only life was that easy !!)

That general XML "validator" is very different from what is required to PARSE a FSX XML gauge, and check that it is error free.

Geoff

bhollis
Lockheed Martin
Posts: 395
Send Message
bhollis
Post Re: Improved XML syntax checking/degugger
on: June 4, 2012, 17:55

I think our internal debug messages are a little more verbose. Next time I get one, I'll look into where it originates. If it can be easily wrapped with a ContentErrorReport, then I'll see if I can get the go ahead to add it in. If it's being thrown within the debug version of the xml parser lib then it may not be easy to actually capture the message.

Prepar3D Software Engineer

FSMP
Professional
Posts: 637
Send Message
Post Re: Improved XML syntax checking/degugger
on: June 4, 2012, 18:16

Thanks,

It would seem that even many of the major developers are NOT aware of the "xml pare debug" option in the config file, judging by the large number of addons planes that have numerous XML errors, as reported by the parser.

Even when one knows, and uses the debug parser, often it can take considerable time to determine the line where the XML error is, because of the minimal details in the error message. However, once found and corrected, the errors go away, and the gauge, in most cases, operates in the way programmed (even if not always the way intended !! ).

Geoff

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.31 ; Page loaded in: 0.092 seconds.