Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
Write TXMLDocument to a pretty formatted string
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Getting results from sql ...
by
eny
[
Today
at 08:20:05 pm]
add thumb up or like butt...
by
graavan
[
Today
at 08:07:25 pm]
[SOLVED] GTK3 : Icons hav...
by
ginoo
[
Today
at 06:55:37 pm]
Problem with drawing orde...
by
wp
[
Today
at 06:26:27 pm]
TChart: Wrong default val...
by
wp
[
Today
at 06:22:26 pm]
Hello! Anything new?
by
simone
[
Today
at 05:47:57 pm]
LAMW Foreground service -...
by
Mongkey
[
Today
at 05:40:05 pm]
could Ardour's YTK be use...
by
Fred vS
[
Today
at 04:59:52 pm]
Debian releases a Gtk3 La...
by
PascalDragon
[
Today
at 04:23:48 pm]
Any way to "embed" Window...
by
myisjwj
[
Today
at 02:50:41 pm]
mORMot again (HttpServer/...
by
ttomas
[
Today
at 12:45:49 pm]
Is it me or is there some...
by
Martin_fr
[
Today
at 11:48:04 am]
Exiting HeapTrace dump
by
jamie
[
Today
at 11:34:49 am]
CONCAT formula
by
Zvoni
[
Today
at 08:17:21 am]
emuloader: help to resurr...
by
arcadegamer
[March 15, 2026, 08:30:31 pm]
AutoSize TMemo.Height?
by
wp
[March 15, 2026, 05:55:05 pm]
Initialization & finaliza...
by
Martin_fr
[March 15, 2026, 05:24:36 pm]
Possible Enhancement to t...
by
jamie
[March 15, 2026, 04:10:38 pm]
lazarus 4.99 and missing ...
by
wp
[March 15, 2026, 03:11:43 pm]
Questions about TFuncSeri...
by
hedgehog
[March 15, 2026, 06:58:29 am]
CryptoLib4Pascal
by
Xor-el
[March 14, 2026, 06:17:32 pm]
Extended Module Player
by
Gigatron
[March 14, 2026, 05:32:06 pm]
[AGGPas] Difference betwe...
by
Roland57
[March 14, 2026, 04:36:02 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Write TXMLDocument to a pretty formatted string (Read 4030 times)
JimKueneman
Full Member
Posts: 246
Write TXMLDocument to a pretty formatted string
«
on:
August 15, 2012, 06:04:19 am »
I am sure this is obvious but I am missing it. How do I write a TXMLDocument that I have created dynamically in code to a nicely formatted string that I can assign to a TSynEdit.Text?
Thanks,
Jim
Logged
Leledumbo
Hero Member
Posts: 8835
Programming + Glam Metal + Tae Kwon Do = Me
Re: Write TXMLDocument to a pretty formatted string
«
Reply #1 on:
August 15, 2012, 01:37:37 pm »
Does XMLWrite.WriteXMLFile work for you?
Logged
Follow this if you want me to answer:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F
http://pascalgeek.blogspot.com
https://bitbucket.org/leledumbo
https://github.com/leledumbo
Code first, think later - Natural programmer B)
JimKueneman
Full Member
Posts: 246
Re: Write TXMLDocument to a pretty formatted string
«
Reply #2 on:
August 16, 2012, 03:08:11 pm »
I was expecting something a bit more packaged (return a string directly) but yes this did work with a small bit if effort. Thanks,
Jim
Logged
KpjComp
Hero Member
Posts: 680
Re: Write TXMLDocument to a pretty formatted string
«
Reply #3 on:
August 16, 2012, 03:12:28 pm »
There is a WriteXMLFile that takes a TStream.
So you could just create a TStringStream, and then you can avoid saving to file, if that's what your after.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
Write TXMLDocument to a pretty formatted string
TinyPortal
© 2005-2018