[Serialization/Archive] Handle comments in xml-files

Hi, can anyone tell me where in the code I can find the place, where I can disable comment-processing as normal name-value-pairs? Because If I have xml-comments (<!-- -->) in the xml-file, the deserialization will fail with a boost::archive::archive_exception. Thanks in advance for your help! Gerrit

It might be better to just strip the comments first. This XSL will do
that:
<?xml version="1.0"?>

This would require upgrading the sprite parser grammar used for parsing the xml input. Not a big job for someone already familiar with spirit but there IS a learning curve for this!!!. Robert Ramey Gerrit Brehmer wrote:
Hi,
can anyone tell me where in the code I can find the place, where I can disable comment-processing as normal name-value-pairs? Because If I have xml-comments (<!-- -->) in the xml-file, the deserialization will fail with a boost::archive::archive_exception.
Thanks in advance for your help! Gerrit
participants (3)
-
Gerrit Brehmer
-
John Wilkinson
-
Robert Ramey