Re: Save changes in the original XML file
- From: suchenwi <richard.suchenwirth-bauersachs@xxxxxxxxxxx>
- Date: Tue, 18 Nov 2008 07:03:54 -0800 (PST)
On 18 Nov., 15:11, "haigang0...@xxxxxxxxx" <haigang0...@xxxxxxxxx>
wrote:
I'm trying to update XML file using DOM. But as the dom-tree is stored
in memory, i found the original XML file is not updated after i
modified the value of certain nodes.
Is there any command that saves changes of nodes into the original XML
file?
In tdom that would be (assoming root is the top documentElement):
set f [open $outfile w]
#-- maybe fconfigure -encoding, write <?xml ...> line
$f puts [$root asXML]
close $f
Check your documentation, I'm quite sure tcldom has similar
functionality.
.
- Follow-Ups:
- Re: Save changes in the original XML file
- From: haigang0708@xxxxxxxxx
- Re: Save changes in the original XML file
- References:
- Save changes in the original XML file
- From: haigang0708@xxxxxxxxx
- Save changes in the original XML file
- Prev by Date: man page layout standard/spec?
- Next by Date: Re: Listening to Windows Socket events
- Previous by thread: Save changes in the original XML file
- Next by thread: Re: Save changes in the original XML file
- Index(es):
Relevant Pages
|