all groups > dotnet xml > july 2003 >
You're in the

dotnet xml

group:

novice: datatypes


novice: datatypes Al Knowles
7/29/2003 6:13:29 PM
dotnet xml:
In a VB6 application, I include this in the code that creates the xml that
is to be sent to the web service:

Set oAttribute = XDOM.createAttribute("SEQUENCENO")
oAttribute.dataType = "int"
oElement.setAttribute "SEQUENCENO", 42

I am not clear on how the .Net Web service XMLTextReader can determine the
datatype of the attribute. I tried GetType, but that did not return
anything I thought I could use.

I know, I know, I ask a lotta questions.

Thanks in advance for your assistance and patience.

(Next purchase will be an XML book, but I need these answers now.)

Re: novice: datatypes Dan Wahlin
8/2/2003 8:48:01 PM
The XmlValidatingReader can be used to read an XML document and get the
corresponding CLR type for a given node (based upon how the node's type is
defined in the schema). You can do this with the ReadTypedValue() method.

HTH,
Dan Wahlin

Wahlin Consulting
Microsoft MVP - ASP.NET and XML Web Services
http://www.xmlforasp.net




[quoted text, click to view]

AddThis Social Bookmark Button