Note that there are some explanatory texts on larger screens.

plurals
  1. POLarge Xml in a Qtreeview
    primarykey
    data
    text
    <p>I have a large XML file (2000 -3000 lines) that I want to go through. The purpose is to show all data in the Qtreeview and highlight those that could be wrong.</p> <p>I've tested with the Qt examples (XBEL) and the one from the Jasmin Blanchette's book, but it wasn't helping me as an example (besides I'm aware that the XMLStream is not supported anymore).</p> <p>What is the best way to parse and display some of the data highlighted in a Qtreeview ? <em>(QTreeview is just for data interpretation in my example, I know how to handle it)</em></p> <p>An extract of the file to parse : </p> <pre><code>&lt;Description xmlns="file://DeviceDescription-1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.software.com/schemas/Description-1.0.xsd Description-1.0.xsd file://Description-1.0.xsd OEMcCustom.xsd " xmlns:se="file://Description-1.0.xsd"&gt; &lt;Connector connectorId="1" explicit="false" hostpath="-1" interface="Serial" moduleType="91" role="child" alwaysmapping="true"&gt; &lt;Parameter ParameterId="8000" type="std:BOOL"&gt; &lt;Attributes download="false" offlineaccess="read" /&gt; &lt;Default&gt;true&lt;/Default&gt; &lt;Name&gt;NameConfig&lt;/Name&gt; &lt;Description&gt;Use the new NameConfig format&lt;/Description&gt; &lt;/Parameter&gt; &lt;Parameter ParameterId="12345692" type="localTypes:CHANNEL_PACKED"&gt; &lt;Attributes /&gt; &lt;Default&gt; &lt;Element name="FunctionCode"&gt;3&lt;/Element&gt; &lt;Element name="ReadOffset"&gt;16#0000&lt;/Element&gt; &lt;Element name="ReadLength"&gt;4&lt;/Element&gt; &lt;Element name="WriteOffset"&gt;0&lt;/Element&gt; &lt;Element name="WriteLength"&gt;0&lt;/Element&gt; &lt;Element name="Trigger"&gt;5&lt;/Element&gt; &lt;Element name="CycleTime"&gt;100&lt;/Element&gt; &lt;Element name="ErrorHandling"&gt;true&lt;/Element&gt; &lt;Element name="EnableRegisterBitMapping" /&gt; &lt;/Default&gt; &lt;Name&gt;Channel 1&lt;/Name&gt; &lt;Description&gt;ChannelConfig&lt;/Description&gt; &lt;/Parameter&gt; &lt;/Connector&gt; &lt;/Description&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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. This table or related slice is empty.
    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