Hi Mimi,
The best course for you is to upgrade your DTD to XML Schema, and use one
of the tools that help you generate clases from the schema, such as XSD.exe
or XsdObjectGen.exe. Unfortunately, if you are starting with a DTD, you'll
have to do a conversion, and then fill in any appropriate type information,
since DTD didn't have data types.
I agree with you that sending a string that has what appears to be XML is a
fragile approach. Better to have strongly typed classes to work with so
you get the benefits of type checking.
Regards
Dan Rogers (danro)
Microsoft Corporation
--------------------
>From: mh2521@hotmail.com (Mimi)
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
[quoted text clipped - 7 lines]
>Content-Transfer-Encoding: 8bit
>X-Trace: posting.google.com 1100104545 26468 127.0.0.1 (10 Nov 2004
16:35:45 GMT)
>X-Complaints-To: groups-abuse@google.com
>NNTP-Posting-Date: Wed, 10 Nov 2004 16:35:45 +0000 (UTC)
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fastwebnet.it!tiscali!new
sfeed1.ip.tiscali.net!news.glorb.com!postnews.google.com!not-for-mail
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:26438
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
[quoted text clipped - 8 lines]
>again. Has anyone done that or do you have any suggestion or
>examples? Thanks
mimi - 12 Nov 2004 17:26 GMT
Thanks Dan.
> Hi Mimi,
>
[quoted text clipped - 28 lines]
> >NNTP-Posting-Date: Wed, 10 Nov 2004 16:35:45 +0000 (UTC)
> >Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fastwebnet.it!tiscali!new
> sfeed1.ip.tiscali.net!news.glorb.com!postnews.google.com!not-for-mail
> >Xref: cpmsftngxa10.phx.gbl
[quoted text clipped - 11 lines]
> >again. Has anyone done that or do you have any suggestion or
> >examples? Thanks