Re: manupulating a xml-file
- From: Arne Vajhøj <arne@xxxxxxxxxx>
- Date: Mon, 31 Mar 2008 10:30:50 -0400
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
.
- Follow-Ups:
- Re: manupulating a xml-file
- From: Jan Müller
- Re: manupulating a xml-file
- References:
- manupulating a xml-file
- From: Jan Müller
- manupulating a xml-file
- Prev by Date: Re: Formatting of strings
- Next by Date: Re: manupulating a xml-file
- Previous by thread: Re: manupulating a xml-file
- Next by thread: Re: manupulating a xml-file
- Index(es):
Relevant Pages
|