Comprehensive, categorized, searchable collection of links to ASP & ASP.NET resources...
Our Directory

Applications
ASP.NET Directory
Books & Media
Community
Components
Other ASP Sites
Reference Material
Software & Server
Tutorials & Code
Web Site Hosts

Expand Directory...
Personlise Results...

Newsgroups

Participate in over
100 ASP & ASP.NET related newsgroups right here @ Fuzzy Software...

.NET Framework
- .net.faqs
- .net.framework
- .net.general
- .net.setup
- .net.scripting
- .net.xml

Web Services
- aspnet.webservices
- msdn.soaptoolkit
- msdn.webservices

SQL Server
- sqlserver.setup
- sqlserver.prog...
- sqlserver.tools

Classic ASP
- asp.db
- asp.general
- asp.components

Scripting
- scripting.jscript
- scripting.remote
- scripting.vbscript
- scripting.wsh

All newsgroups...

ASP Built-in
Objects Reference


Application Object
ObjectContext Object
Request Object
Response Object
Server Object
Session Object

Personalise Fuzzy
Make Homepage
Link To Fuzzy
Bookmark This Page

Add our directory to your site in less than
2 minutes...














Whats New!


From: "Kevin Haney"
Subject: deserialize adding ascii 10 to beginning and end of XmlText ...
Date: Fri, 7 Jun 2002 13:21:18 -0400

When deserializing the following,

<session_id gid="foo" uid="111111" ipaddr="1.1.1.1">
sessionidhere
</session_id>

the XmlText attribute I define to capture the session_id node's text
attribute always comes back with two extra bytes (ascii 10 character), one
at the beginning and one at the end of the string.
I'm reading the data out of a file into TextReader, which I'm passing to
Deserialize. I've tried constructing the TextReader with each of the
various encoders, but no luck.

Here is the object definition:
[XmlRoot (Namespace = "", DataType="string", ElementName = "session_id")]
public class SessionData
{
[XmlAttribute()]
public string gid;
[XmlAttribute()]
public string uid;
[XmlAttribute()]
public string ipaddr;

[XmlText (DataType = "string", Type = typeof(string))]
public string SessionID;
}


Post a follow up to this message...





InstantGallery.NET - ASP.NET Enabled Image Gallery

Receive all the latest quality ASP
& ASP.NET content direct to your inbox. Sign-up to our newsletter.




MyLittleWebTools

CShapeFriends.com

DevASP.com

Learn VisualStudio.NET

World Of .NET

More partners...

Ektron web editor and content management software
  5714 ASP & ASP.NET resources in over 449 categories and growing daily...
Fuzzy Software - asp / asp.net resources, tutorials, code, scripts, applications, components, newsgroups, hosts and much more... Sitemap 0 1 4