> But what if the structure not fixed or known.
For example i want a server to send and receive generic xml files without
knowing what's in them beforehand. In that case i can't create a custom
class
and xmlserialize its attributes.
In that case, I normally don't send raw-XML.
Technically speaking, it is very much possible to send raw-XML as string (<, etc get HTML-encoded)
My personal choice -- base64 encode the XML. Yes.. it does increase the size
of the content by 33%, just a personal preference.
Otherwise, even if the data in XML is Unicode data (with characters outside
ASCII), it will get UTF-8 encoded for the transfer and you don't need to
worry about it.
Now as I see your query closely... you are looking at "XML Files" and not
"XML Content".
In that case, why not try out MIME attachments. That way you can have all
attributes related to the file available, specifically the filename as MIME
headers itself and don't need to have another parameter (to the WebMethod
method) that provides the filename.
--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org http://www.edujini.in
-------------------