ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Is it possible to make xml.load a bit more 'verbose' when it encounters errors?
@ 2020-05-13 21:00 Gerben Wierda
  2020-05-14  6:53 ` Hans van der Meer
  0 siblings, 1 reply; 2+ messages in thread
From: Gerben Wierda @ 2020-05-13 21:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 350 bytes --]

I am loading an xml.file. I sometimes make mistakes editing that file and then xml.load creates a string that contains

<error>invalid xml file - parsed text</error>

At that point I check my file and sometimes (like now) I cannot find the error.

Is there a way to make xml.load somewhat more verbose about where it encounters the error? 

G

[-- Attachment #1.2: Type: text/html, Size: 967 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-14  6:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-13 21:00 Is it possible to make xml.load a bit more 'verbose' when it encounters errors? Gerben Wierda
2020-05-14  6:53 ` Hans van der Meer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).