Feature #1511
TBX: 0.7.7, enhance XML stream processing diagnostic messages in XML import modules
Status: | New | Start date: | 09/20/2015 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% |
|
Category: | Import | Spent time: | - | |
Target version: | TXM X.X |
Description
Currently, a typical XML syntax error produces an error message like the following:
javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2286373,202] Message: Un caractère XML non valide (Unicode : 0x{2}) a été détecté dans la valeur de l'attribut "{1}" et l'élément est "3".
Comments¶
- A) the
@javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2286373,202]
@ line is cryptic and there isn't enough contextual information to understand the problem - B) the content of the message is incorrect with a strange formulation
- {{(Unicode : 0x{2})}} should display something like {{(caractère Unicode 0x001F)}}
- {{l'attribut "{1}"}} should display something like {{l'attribut "nom-attribut"}}
- {{l'élément est "3"}} is suspect, '3' should not be the name of an XML element
Solution 1¶
- A) replace the first line of the error message by:
** Erreur de syntaxe XML dans le fichier "fr_07jan.xml" au 202ième caractère de la ligne 2286373 : {{contenu complet de la ligne 2286373 avec encadrement du 202ième caractère}} par exemple, <tweet tweet-id-str="553130950125977600" job-id="4227" ... from-user-name="PaulinePd[v]" ... ---------------------------------------------------------------------------------------^ {{la mise en évidence du caractère se fait par des crochets mais on peut utiliser du gras}}
- B) the whole sentence should be rephrased {{Un caractère Unicode non valide 0x001F a été détecté dans la valeur de l'attribut "nom-attribut" de la balise "<nom-élément>"}}. {{le niveau de langage doit être celui de l'utilisateur de TXM}}
Solution 2¶
- A) add an hyperlink on the {{fichier "fr_07jan.xml" au 202ième caractère de la ligne 2286373}} message part in the console opening an XML editor at line 2286373 with the cursor blinking at character 202.
History
#1 Updated by Serge Heiden about 8 years ago
- Description updated (diff)
- Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.7.8
#2 Updated by Serge Heiden about 8 years ago
- Target version changed from TXM 0.7.8 to TXM 0.8.0a (split/restructuration)
#3 Updated by Sebastien Jacquot over 5 years ago
- Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0
#4 Updated by Matthieu Decorde over 4 years ago
- Target version changed from TXM 0.8.0 to TXM X.X