You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, i am trying to deserialize an XML file using the Event:: functionality. I am looking to implement a linecounter for better error messages. Is there any smooth way to achieve this? All the apporaches i came across yet didn't really work for me. I am trying to avoid having to read the file "line-by-line" and simply counting the lines. My current apporach handles the file by jumping from Event to Event. My attempts to just count the "\n,\r,\r\n"-text events did not really result in a number close to how my file actually looked.
Any ideas are appreciated!
The text was updated successfully, but these errors were encountered:
Yes, you can find an example in the documentation of the Reader::into_inner method. The same approach should be possible to implement using get_ref or get_mut methods.
Hello, i am trying to deserialize an XML file using the Event:: functionality. I am looking to implement a linecounter for better error messages. Is there any smooth way to achieve this? All the apporaches i came across yet didn't really work for me. I am trying to avoid having to read the file "line-by-line" and simply counting the lines. My current apporach handles the file by jumping from Event to Event. My attempts to just count the "\n,\r,\r\n"-text events did not really result in a number close to how my file actually looked.
Any ideas are appreciated!
The text was updated successfully, but these errors were encountered: