Re: manupulating a xml-file



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


.



Relevant Pages

  • Re: manupulating a xml-file
    ... 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. ... modified content + end tag in endElement. ...
    (comp.lang.java.programmer)
  • Re: My experience with XML::DOM VS XML::LibXML
    ... >>looking for inner xml structures. ... Thats not necessary with SAX. ... You just set the handlers to filter the data you ... >tag, end tag, content (and by the way for every other w3c ...
    (comp.lang.perl.misc)
  • Re: My experience with XML::DOM VS XML::LibXML
    ... >>>It is false as long as its left operand is false. ... >looking for inner xml structures. ... Thats not necessary with SAX. ... tag, end tag, content (and by the way for every other w3c ...
    (comp.lang.perl.misc)
  • Re: My experience with XML::DOM VS XML::LibXML
    ... >>>looking for inner xml structures. ... Thats not necessary with SAX. ... You just set the handlers to filter the data you ... >>tag, end tag, content (and by the way for every other w3c ...
    (comp.lang.perl.misc)
  • Re: My experience with XML::DOM VS XML::LibXML
    ... >>In SAX you don't have to preprocess like your doing here. ... >>looking for inner xml structures. ... Thats not necessary with SAX. ... > tag, end tag, content (and by the way for every other w3c ...
    (comp.lang.perl.misc)