Re: [Pharo-users] Writing XML

2017-09-15 Thread monty
> Sent: Friday, September 15, 2017 at 4:30 PM > From: "Jimmie Houchin" > To: "Any question about pharo is welcome" > Subject: Re: [Pharo-users] Writing XML > > I didn't pay attention to this previously. But I just noticed that using > #printTo

Re: [Pharo-users] Writing XML

2017-09-15 Thread Jimmie Houchin
d GemStone. Use #parseFileNamed:/#onFileNamed: to get portable automatic file decoding when parsing. Sent: Wednesday, September 13, 2017 at 1:02 PM From: "Jimmie Houchin" To: "Any question about pharo is welcome" Subject: [Pharo-users] Writing XML Hello, I am attempting t

Re: [Pharo-users] Writing XML

2017-09-15 Thread Jimmie Houchin
tomatic file decoding when parsing. Sent: Wednesday, September 13, 2017 at 1:02 PM From: "Jimmie Houchin" To: "Any question about pharo is welcome" Subject: [Pharo-users] Writing XML Hello, I am attempting to read and write an XML document. Currently I have parsed the docum

Re: [Pharo-users] Writing XML

2017-09-15 Thread monty
chin" > To: "Any question about pharo is welcome" > Subject: [Pharo-users] Writing XML > > Hello, > > I am attempting to read and write an XML document. > > Currently I have parsed the document successfully. I have basic > navigation and have learned how

Re: [Pharo-users] Writing XML

2017-09-14 Thread Stephane Ducasse
Henrik is cool :) On Thu, Sep 14, 2017 at 8:17 PM, Jimmie Houchin wrote: > Thanks. I am trying to learn the ways of Pharo 6 and not use > StandardFileStream and MultiByteFileStream. So I do not know all of the best > ways to do things. Thanks for the education. Your "best" way worked > perfectly

Re: [Pharo-users] Writing XML

2017-09-14 Thread Jimmie Houchin
Thanks. I am trying to learn the ways of Pharo 6 and not use StandardFileStream and MultiByteFileStream. So I do not know all of the best ways to do things. Thanks for the education. Your "best" way worked perfectly in Pharo 6. Again, thanks. Jimmie On 09/14/2017 07:24 AM, Henrik Sperre Jo

Re: [Pharo-users] Writing XML

2017-09-14 Thread Henrik Sperre Johansen
Jimmie Houchin-5 wrote > I still do not know how to do this correctly. But I have something that > seems to work for the moment. > > Using #asUTF8Bytes > > f nextPutAll: (writer write contents asUTF8Bytes). > > Now the file is in UTF-8 and normal size. openForWriteFileNamed: opens a binary st

Re: [Pharo-users] Writing XML

2017-09-13 Thread Jimmie Houchin
I still do not know how to do this correctly. But I have something that seems to work for the moment. Using #asUTF8Bytes f nextPutAll: (writer write contents asUTF8Bytes). Now the file is in UTF-8 and normal size. Jimmie On 09/13/2017 12:02 PM, Jimmie Houchin wrote: Hello, I am attemptin

[Pharo-users] Writing XML

2017-09-13 Thread Jimmie Houchin
Hello, I am attempting to read and write an XML document. Currently I have parsed the document successfully. I have basic navigation and have learned how to modify the XMLDocument. Now I want to write the modified document back to the file system. What I have tried so far is: writer := XMLWr