Category : xml

I’m trying to create a very function to read a very simple XML file and print its content on the QTCreator console. I created the following XML file : <SCANNERS> <SCANNER> <NAME>Test scanner</NAME> <SERIAL>10102030</SERIAL> </SCANNER> <SCANNER> <NAME>Test scanner 2</NAME> <SERIAL>10102031</SERIAL> </SCANNER> <SCANNER> <NAME>Test scanner 3</NAME> <SERIAL>10102032</SERIAL> </SCANNER> <SCANNER> <NAME>Test scanner 4</NAME> <SERIAL>10102033</SERIAL> </SCANNER> <SCANNER> <NAME>Test ..

Read more

I want to parse a large XML File (33000 lines). Following the structure of my xml file: <?xml version="1.0" encoding="UTF-8"?><Root_2010 xmlns:noNamespaceSchemaLocation="textpool_1.2.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" lang="de-DE"> <Textpool Version="V20.12.08"> <TextpoolList FontFamily="Standard" FontSize="16" FontStyle="normal" FontWeight="bold" SID="S1" TextCharacterLength="0" TextLength="135"> <Text>GlobalCommonTextBook</Text> </SID_Name> <TextpoolBlock> <TextpoolRecord CharacterLengthCheck="Ok" Status="Released" StdTextCharacterLength="4" StdTextLength="???" TID="Txt0_0" TermCheck="NotChecked" TermCheckDescription="NotChecked" TextLengthCheck="Ok" fixed="true"> <IEC translate="no"> <Text/> </IEC> <ExplanationText/> <Text>nein</Text> </ShortText> </Description> <Creator>z0046abb</Creator> ..

Read more

To begin with, the application I’m working on uses libxml2 to parse XML and to validate this XML against a schema, and I cannot use another XML-parsing library. The schema contains type information for elements in the XML, and I’m trying to get this type information but am not succeeding. Example schema: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element ..

Read more

I am working on an application that requires a server request for an SVG that is representative of a particular product configuration. This is my first time dealing with SVG and I am hung up on decoding the server response in such a way where the image can be displayed with a QSvgRenderer. Something like ..

Read more