all groups > dotnet xml > october 2003 >
You're in the

dotnet xml

group:

Formatting Output Text


Formatting Output Text Stefano Baldi
10/29/2003 9:18:00 AM
dotnet xml:
I'm using Dom to save a hierarchical structure (similar to a tree) to xml
format in this way

oXmlNode = XMLDOM.createElement("VALUECONDITION")

'Attribute Name

oXmlAttribute = XMLDOM.createAttribute("Name")

oXmlAttribute.value = oValueCondition.Name

oXmlNode.attributes.setNamedItem(oXmlAttribute)


Everything works fine. The only problem is that output text is not formatted
and when i open XML file with a text editor it's impossible to read it (the
are no tabs and no carriage return)
Is there a way to format text in a easy way?


Thanks
--

_______________

Ing. Stefano Baldi
ENGINEERING S.p.A. www.engineering.it
Via Sant'Orsola 51/1, 47023 Cesena, ITALY
Tel. ++39 547 630842/3 Fax ++39 547 630844

Re: Formatting Output Text Oleg Tkachenko
10/29/2003 2:39:07 PM
[quoted text, click to view]

Which API are you talikng about - .NET or MSXML?
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel
Re: Formatting Output Text Stefano Baldi
10/30/2003 11:31:56 AM
..NET
I would like to avoid to use XmlTextWriter


--

_______________

Ing. Stefano Baldi
ENGINEERING S.p.A. www.engineering.it
Via Sant'Orsola 51/1, 47023 Cesena, ITALY
Tel. ++39 547 630842/3 Fax ++39 547 630844


"Oleg Tkachenko" <oleg@NO!SPAM!PLEASEtkachenko.com> ha scritto nel messaggio
news:%23SBg$lhnDHA.1656@tk2msftngp13.phx.gbl...
[quoted text, click to view]

Re: Formatting Output Text Oleg Tkachenko
10/30/2003 12:45:06 PM
[quoted text, click to view]
Why?

--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel
AddThis Social Bookmark Button