46 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
183
views
writeTextElement() of QXmlStreamWriter crashed when writting the content of a big file
Here is the qt code that crash:
Writing the content of a 130MB binary file will crash, but writing a 2MB binary file will not.
Is there any solution for writeTextElement to write big file content? ...
0
votes
0
answers
190
views
Parse QString with QXmlStreamReader
I'm trying to parse this QString that contains XML. This is the content
<Field_A>xxx_1</Field_A>
<Field_B>xxx_2</Field_B>
<Field_C>xxx_3</Field_C>
...
This XML has ...
0
votes
0
answers
288
views
Parsing texts from XML file with QXmlStreamReader, '\n' replaced with '\\n'
I am parsing a xml file with QXmlStreamReader.
This XML is like this:
<?xml version="1.0" encoding="UTF-8"?>
<LangDef langCode="0809">
<LangID ID="...
0
votes
0
answers
187
views
QXMLStreamReader cannot read attribute
I want to parse the following xml (it's a xsd):
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" ...
0
votes
1
answer
724
views
Parse XSD with QXmlStreamReader
I need to process some XSD for performing operations, and I need to process them as normal XML files. I want to take every element of the XSD and process them (for example by printing them and their ...
0
votes
1
answer
523
views
QXmlStreamWriter find tag value and replace with another specific value
I have a xml files which contains English and French strings as messages. I am trying to read a specific element from xml file and replace their value with some another specifc value.
Example (In the ...
1
vote
1
answer
479
views
QXmlStreamReader get tag value
I have a problem with getting value for nested tags using QXmlStreamReader. My xml is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<Class Name="Simple1">
<...
0
votes
1
answer
2k
views
QDomDocument: setContent error with XML tag
I am trying to set my XML file to QDomDocument using setContent and it returns an error.
My XML file:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<Tag1>
<...
4
votes
1
answer
302
views
Qt QXmlStreamReader Access Violation
I am using Qt 5.11.1(MSVSC2015 32bit) and QtCreator 4.6.2.
I am having trouble parsing XML with QXmlStreamReader. Code is written based on Qt's example.
When my code is executed it produces access ...
0
votes
1
answer
802
views
parsing xml Qstring using QXmlStreamReader qt
I am trying to parse the QString which looks like below:
<unit>
<unit_type>110A</unit_type>
<manufacturer>ABC</manufacturer>
<article_number>9900</...
2
votes
1
answer
3k
views
Read XML tags inside StartElement (QXmlStreamReader)
So, I'm attempting to read through a modest-sized XML document. It's structured like so:
<project identifier="project1">
<author>Joe Smith</author>
<author2>Rick Jones&...
0
votes
1
answer
237
views
How to read XML which have same tag name
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE CINEMAS_PROJECT_FILE>
<CinemasProject XMLversion="1">
<Cascade>
<ChildrenIDs>
<JobName>1<...
0
votes
1
answer
972
views
read xml file with nested tag using QxmlStreamReader
I am trying to read the xml file that has nested tags, below is my xml file
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<Header>
<Hvers>1.0.0.0</Hvers>
<SvVers>...
0
votes
0
answers
537
views
how to find out element has child elements or not in QXmlStreamReader CPP
I have a huge Xml file, whose elements can be repetative and can contain number of child elements. I need a generic code which can read all elements and their Child elements without hardcoding.
Note: ...
3
votes
1
answer
3k
views
QT: QXmlStreamReader always returns "Premature End of Document" error
I have strange issue with Qt QXmlStreamReader. I'am trying to parse simple document (note: it is generated using QXmlStreamWriter):
<?xml version="1.0" encoding="UTF-8"?>
<tex>
<...