Insert a tag with NSFileHandle
Posted
by zp26
on Stack Overflow
See other posts from Stack Overflow
or by zp26
Published on 2010-06-07T14:49:49Z
Indexed on
2010/06/07
14:52 UTC
Read the original article
Hit count: 291
Hi, I want insert a tag in the Xml file. I have NSFileHandle object and i know the "offsetInFile" and the "seekToFileOffset:" methods but i don't know how to use. I have the Xml below and i want insert a tag between "positions" and "/positions" tag. Thanks so much.
<?xml version=1.0 encoding=UTF-8 ?>
<positions>
//I want insert in this position my tag with the NSFileHandle.
</positions>
© Stack Overflow or respective owner