You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Mel <me...@csn.ul.ie> on 2000/09/22 13:27:39 UTC
DOM serializer
hmm. Just took a quick look at the Java serialiser. I can't program Java
but the syntax is similar enough that I can read it. I don't think I was
actually miles off the mark with what I wrote. I added a way to flush the
output and to set formatting a little. If I added a copy constructor and a
way to change the output format to something other than UTF-8, would it be
worth submitting a patch over the weekend? Someone can write a better one
later but this would tie people over in the meantime
Re: DOM serializer
Posted by Andy Heninger <an...@jtcsv.com>.
A big thank yoiu for posting this code.
I'm away on a trip for most of this week, and won't have time
try it out till I get back, but I will when I return.
Thanks,
Andy Heninger
IBM XML Technology Group, Cupertino, CA
heninger@us.ibm.com
----- Original Message -----
From: "Mel" <me...@csn.ul.ie>
To: <xe...@xml.apache.org>
Sent: Monday, September 25, 2000 4:25 AM
Subject: RE: DOM serializer
>
> On Fri, 22 Sep 2000, James Pearson wrote:
>
> > How about a couple of sample code snippets too?
>
> hmm. here it is then - I presume the list allows attachments. If not,
it's
> at http://www.csn.ul.ie/~mel/xmlserial.tar.gz. As I said, it's quick,
> dirty and not the prettiest to read
>
[...]
RE: DOM serializer
Posted by Mel <me...@csn.ul.ie>.
On Fri, 22 Sep 2000, James Pearson wrote:
> How about a couple of sample code snippets too?
hmm. here it is then - I presume the list allows attachments. If not, it's
at http://www.csn.ul.ie/~mel/xmlserial.tar.gz. As I said, it's quick,
dirty and not the prettiest to read
Compile under Linux...
g++ xmlserialiser.cpp main.cpp -I /usr/src/xerces-c-src_1_2_0/include -lxerces-c1_2 -o main
(No, I don't do things like this normally but a Makefile would be overkill here wouldn't it :-) )
To compile under Windows, just put the three files into a shiny new
Console Application project (only tested under MSVC) and compile away. I
don't have access to anything else, but I would guess it will compile on
any platform
Take a look anyway, if you think it's worth the hassle, I'll add the copy
constructor and fix up the formatting and make a patch. It's a case of,
it's ok for me now, but I'd be happy to work more on it and complete it if
someone says so and there isn't anything bettter out there.
Have fun.
Mel
RE: DOM serializer
Posted by James Pearson <ja...@computer.org>.
How about a couple of sample code snippets too?
Nice work Mel.
Thanks,
Jim
-----Original Message-----
From: Andy Heninger [mailto:andyh@jtcsv.com]
Sent: Friday, September 22, 2000 2:48 PM
To: xerces-c-dev@xml.apache.org
Subject: Re: DOM serializer
Could you post what you've done to the list in a way that makes it easy to
pick it up and play with it? I know that I'd like to see what you have
done and try it out.
Thanks,
Andy Heninger
IBM XML Technology Group, Cupertino, CA
heninger@us.ibm.com
----- Original Message -----
From: "Mel" <me...@csn.ul.ie>
To: <xe...@xml.apache.org>
Sent: Friday, September 22, 2000 4:27 AM
Subject: DOM serializer
>
> hmm. Just took a quick look at the Java serialiser. I can't program Java
> but the syntax is similar enough that I can read it. I don't think I was
> actually miles off the mark with what I wrote. I added a way to flush
the
> output and to set formatting a little. If I added a copy constructor and
a
> way to change the output format to something other than UTF-8, would it
be
> worth submitting a patch over the weekend? Someone can write a better
one
> later but this would tie people over in the meantime
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: DOM serializer
Posted by Andy Heninger <an...@jtcsv.com>.
Could you post what you've done to the list in a way that makes it easy to
pick it up and play with it? I know that I'd like to see what you have
done and try it out.
Thanks,
Andy Heninger
IBM XML Technology Group, Cupertino, CA
heninger@us.ibm.com
----- Original Message -----
From: "Mel" <me...@csn.ul.ie>
To: <xe...@xml.apache.org>
Sent: Friday, September 22, 2000 4:27 AM
Subject: DOM serializer
>
> hmm. Just took a quick look at the Java serialiser. I can't program Java
> but the syntax is similar enough that I can read it. I don't think I was
> actually miles off the mark with what I wrote. I added a way to flush
the
> output and to set formatting a little. If I added a copy constructor and
a
> way to change the output format to something other than UTF-8, would it
be
> worth submitting a patch over the weekend? Someone can write a better
one
> later but this would tie people over in the meantime
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>