Home > Back-end > How to check the syntax of XML BCB?
How to check the syntax of XML BCB?
Time:10-24
I grab by BCB information web page, the user name column can appear sometimes & lt;> This time, will cause the XML syntax is not correct, program cannot proceed, excuse me what method can solve this problem?
& lt; ? The XML version='1.0' encoding='GBK'?> KSUSER1 & lt; NJ> 1270 & lt;/TEMP> 30 & lt;/HUMI>
When reading the USER, due to the USER in because there are & lt; NJ> , because its not with the matching & lt;/> , so read XML will make a mistake, is there any way I can solve this problem?
CodePudding user response:
Replace him as a string of ABC, parsing out replacement back
CodePudding user response:
The key word is not fixed, sometimes it is & lt; NJ> Sometimes it may be & lt; Any other content & gt;