Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Just changing the order of the two lines won't cause an <code>xml_archive_parsing_error</code> exception. The <a href="http://www.boost.org/doc/libs/1_42_0/libs/serialization/doc/exceptions.html#xml_archive_parsing_error" rel="noreferrer">doc</a> you've linked says that itself: </p> <blockquote> <p>(...)This might be possible if only the data is changed and not the XML attributes and nesting structure is left unaltered.(...)</p> </blockquote> <p>You haven't changed attributes and the order change has kept the structure (still two fields on the first level of your XML). No exception will ever be thrown this way.</p> <p>Also, when reading a XML using the <code>make_nvp function</code>, the name parameter won't put any restriction on what is being read. It will just tell arbitrarily the name to be used with the new name-value pair.</p> <p>So, you can change the name of your XML tags on your input, as long you don't change your expected order i.e. you could rename <code>producer</code> and <code>producer_version</code> on your XML to <code>foo</code> and <code>bar</code> and still would read the serialized data correctly i.e.:</p> <blockquote> <p><code>&lt;foo&gt;XXX&lt;/foo&gt;</code><br> <code>&lt;bar&gt;0.0.1&lt;/bar&gt;</code></p> </blockquote> <p>And your printed answer would still be <strong>"XXX 0.0.1"</strong>. </p> <p>Since this only formatting your serialized data as a XML, there is no interest in checking the tag names. They are only used for making your serialized output more readable.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload