Re: manupulating a xml-file
- From: "Jan Müller" <janmueller@xxxxxxx>
- Date: Mon, 31 Mar 2008 16:38:22 +0200
hi arne,
thank you very much for the idea. i will try your suggestion.
thx,
jan
"Arne Vajhøj" <arne@xxxxxxxxxx> schrieb im Newsbeitrag
news:47f0f595$0$90269$14726298@xxxxxxxxxxxxxxxxxx
Jan Müller wrote:
i want to manupulate a element-text of a xml-file like this:
<element>text</element> ==> <element>manupulated text</element>.
for the parsing of the xml-file i use SAX, but i have no idea how i have
to manipulate the text and write it back into the xml-file.
SAX is purely an API for reading XML, so SAX in itself does not
provide any way of writing an updated file.
But it is relative simple to do - you can write out
start tag with attributes in startElement and
modified content + end tag in endElement.
Arne
.
- References:
- manupulating a xml-file
- From: Jan Müller
- Re: manupulating a xml-file
- From: Arne Vajhøj
- manupulating a xml-file
- Prev by Date: Re: manupulating a xml-file
- Next by Date: Java Garbage Collection
- Previous by thread: Re: manupulating a xml-file
- Next by thread: DV AVI parser
- Index(es):
Relevant Pages
|