Hi,
Does anyone know if the layout of an xml file is important when using xmlreader to read the elements from and xml file.
I have a strange issue where if the source file is laid out like it would look in notepad++ using prety print and saved then it works just fine when reading in all the elements.
If the file is in one long line without any form of layout then saved, the program misses one specific element when looping through the elements and I've no idea why because there's nothing wrong with the element tag that gets missed.
One long line fails to read the <CNT-VERSION-INHALT> element
formatted is OKCode:<?xml version="1.0" encoding="UTF-8" standalone="no"?><SW-CNT><IDENT><CNT-DATEI>LALaLALALa.xml</CNT-DATEI><CNT-VERSION-INHALT>1012</CNT-VERSION-INHALT><CNT-VERSION-DATUM>24-11-2016</CNT-VERSION-DATUM></IDENT>
I've only shown the first part of the xml file due to sensitive information.Code:<?xml version="1.0" encoding="UTF-8" standalone="no"?> <SW-CNT> <IDENT> <CNT-DATEI>LALaLALALa.xml</CNT-DATEI> <CNT-VERSION-INHALT>1012</CNT-VERSION-INHALT> <CNT-VERSION-DATUM>24-11-2016</CNT-VERSION-DATUM> </IDENT>
Any suggestions gratefully received
Thanks
Phil




Reply With Quote
