Тёмный

C++ Qt 94 - Writting XML 

VoidRealms
Подписаться 84 тыс.
Просмотров 37 тыс.
50% 1

QML Beginners: www.udemy.com/course/qml-for-...
Qt Core Beginners: www.udemy.com/course/qt-core-...
Qt Core Intermediate: www.udemy.com/course/qt-core-...
QT Core Advanced: www.udemy.com/course/qt-core-...
Qt Widgets Beginners: www.udemy.com/course/qt-widge...

Опубликовано:

 

26 сен 2011

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@samuellourenco1050
@samuellourenco1050 5 лет назад
It is useful to specify that the encoding is set to UTF-8, by using the createProcessingInstruction() function in the document. For example: QDomProcessingInstruction instruction = document.createProcessingInstruction("xml", "version=\"1.0\" encoding=\"utf-8\""); document.appendChild(instruction); You can then set your file output encoding to match: QTextStream out(&file); out.setCodec("UTF-8"); Anyway, nice tutorial!
@giovanniaguirre9264
@giovanniaguirre9264 4 года назад
Hey Brian, really like your videos. Glad this works perfectly fine 9 years later. I hope you're doing great.
@VoidRealms
@VoidRealms 4 года назад
Thank you
@fs9035
@fs9035 5 лет назад
watching you do it while you comment, makes it easier to follow the logic. Great tutorials
@npozh
@npozh 4 года назад
Thx for understand video, all are fine, wish you only best!
@ansakotze2717
@ansakotze2717 11 лет назад
LOVE the tutorials! Thanx!!
@Carnifrex
@Carnifrex 12 лет назад
Thanks! Great tutorial!
@andrewwilkins4238
@andrewwilkins4238 5 лет назад
At first I was annpyed by Brian talking about what was going on in his life. It has grown on me. Now I enjoy glimpses into the life of Brian. Remember how sad we all felt when his cat died, but how happy we were when we found out he got a new one. Brian, Brian, Brian....you dog you
@andrewwilkins4238
@andrewwilkins4238 5 лет назад
Oh, he actually saw this. Hope your doing well man. Im binging your videos this weekend. You did a great job on these.
@dtvdave1
@dtvdave1 8 лет назад
If it's any consolation, dogs do the same thing. I'll be working on some tiny CAD drawing detail, when one of mine decides to get my attention by bumping their nose into my hand and grinning at me! Thanks for the great tutorials!
@aussieboy77
@aussieboy77 12 лет назад
Excellent. Thank you.
@sing759
@sing759 4 года назад
9:15 love your cat , Byran :)
@IzzyMonroe
@IzzyMonroe 7 лет назад
LOL MANAGEMENT:D:D:D also daw kitty! Anyway thank you for the writing XML tutorial
@feraudyh
@feraudyh 11 лет назад
Thanks again, I was amused by the cat.
@jeanlucmonkey
@jeanlucmonkey 9 лет назад
When I try to create a Document as u did, i don't get a xml - prolog. Do you know any reasons for this ?
@iiZyKloN
@iiZyKloN 12 лет назад
@Kryomega No, it's OCD in alphabetical order. (Obsessive-Compulsive Disorder)
@michaeltolsma7717
@michaeltolsma7717 4 года назад
The Bucky Rogers of Qt.
@azamhaghighi2100
@azamhaghighi2100 7 лет назад
Hi Brayan, thank you for your usefull tutorials. I realy learn alot. I have a question. how can I use Append here ? I dont want my XML file be rewrite. When I use QIOdevice:: Append after Text I only get an empty XML file. Thank you for your help
@TremendousSax
@TremendousSax 12 лет назад
@webmastertool Why should it affect the root element if you add the chapters to the current book element? If instead of book.appendChild(chapter) you did root.appendChild(chapter) it would do that. The root element consists of ten book elements and nested inside each book element is ten chapters. That's exactly what the code instructs it to do. It's not as if the root (called document in the code) contains ten books and one hundred chapters all at the same level of nesting.
@gandarom
@gandarom 12 лет назад
Thank u very much Brian "And so if my wife "
@superknife24
@superknife24 11 лет назад
is there a way to write xml recursively?
@gilbertwahba3580
@gilbertwahba3580 3 года назад
Hello I know it has been a wile since you uploaded this videos but I am still learning alot thrue your tutorials (I have done every singel in the list untill now) I have a question :D sommtimes you are using "#include " and sommtimes you are using "#include ". so what exatly is the difference between theese two? (sorry for my bad english)
@VoidRealms
@VoidRealms 3 года назад
Qt is the library, and Q is the header. these are a bit older, there's a bunch of us in the void rooms Facebook group, and I have released completely new tutorials on Udemy
@iiZyKloN
@iiZyKloN 12 лет назад
@webmastertool yes, that's the joke. It's OCD in alphabetical order.
@fulloflolcats
@fulloflolcats 7 лет назад
well, I've copied the first part of tutorial, and tried, so Xml declaration didn't appear. what's wrong with is?
@fulloflolcats
@fulloflolcats 7 лет назад
QDomProcessingInstruction header = report.createProcessingInstruction( "xml", "version=\"1.0\"" ); report.appendChild( header ); // is how I solved this. but why you have the header already?
@MC-Minority
@MC-Minority 3 года назад
Who's here from CIS-17 B? 🤙
@doctoratcox
@doctoratcox 10 лет назад
your website has been broken for at least a week. every link gives an exception:
@iiZyKloN
@iiZyKloN 12 лет назад
you spelled 'writing' wrong. sorry, i have a minor case of cdo, lol
Далее
C++ Qt 95 - Read XML with DOM
20:56
Просмотров 58 тыс.
Нашли Краша Младшей Сестры !
23:46
It works! #beatbox #tiktok
00:15
Просмотров 2,5 млн
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Просмотров 27 млн
Alisha Lehmann joins Juventus Women 🤍🖤
00:16
Просмотров 4,7 млн
Reading XML with C++ Boost Library
10:57
Просмотров 12 тыс.
C++ Qt 93 - Basic XML Primer
7:47
Просмотров 20 тыс.
Giant numbers
7:27
Просмотров 10 тыс.
Intel's CPUs Are Failing, ft. Wendell of Level1 Techs
23:59
C++ Qt 62 - Viewer Feedback Signals and Slots in depth
17:33
Нашли Краша Младшей Сестры !
23:46