473,385 Members | 1,185 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Schema Value Types int and Integer

According to the help file in VSNET 2003 the XML Schema Type "Integer" maps
to a .NET Framework type of "System.Decimal". This does not seem logical?
The Schema Type "int" maps to "System.int32" which seems logical. Can
someone explain this?

Wayne
Nov 12 '05 #1
2 1347
The schema type Integer does not have a lower and upper bound defined on
it - hence the reason of being mapped to the CLR type Decimal which is the
closest match to that data type. However, schema type int and CLR type Int32
have the same bounds.

"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:e6**************@TK2MSFTNGP10.phx.gbl...
According to the help file in VSNET 2003 the XML Schema Type "Integer" maps to a .NET Framework type of "System.Decimal". This does not seem logical?
The Schema Type "int" maps to "System.int32" which seems logical. Can
someone explain this?

Wayne

Nov 12 '05 #2
Zafar;

Thanks for that explanation. Still seems a bit strange.

Wayne

"Zafar Abbas [MSFT]" <za****@microsoft.com> wrote in message
news:Oz**************@TK2MSFTNGP10.phx.gbl...
The schema type Integer does not have a lower and upper bound defined on
it - hence the reason of being mapped to the CLR type Decimal which is the closest match to that data type. However, schema type int and CLR type Int32 have the same bounds.

"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:e6**************@TK2MSFTNGP10.phx.gbl...
According to the help file in VSNET 2003 the XML Schema Type "Integer"

maps
to a .NET Framework type of "System.Decimal". This does not seem logical? The Schema Type "int" maps to "System.int32" which seems logical. Can
someone explain this?

Wayne


Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jari Kujansuu | last post by:
I can successfully parse XML document using SAX or DOM and I can also validate XML document against schema. Problem is that my program should deal with user-defined schemas which means that when...
3
by: Sorrow | last post by:
Say I have the following (simplistic) schema: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"...
3
by: David Norman | last post by:
How can I create an xml schema where both of the following documents are valid? <theElement> <child>some text</child> </theElement> and <theElement>1234</theElement>
0
by: Adam Retter | last post by:
Hi Guys, I have a need to create a html form based on my schema. I initially decided to do this using xql, have got some way but am finding this difficult (it may be as I am very new to xql)....
1
by: Ian Pilcher | last post by:
I am using an XML-based format to define my applications data types. For example, here are the "primitive" types that holds a Java Integers and Floats: <type name="int" class="Value">...
1
by: Ed Sutton | last post by:
I have data from an embedded device that I want to represent as an XML schema. Each data sample in the device's data log consists of a 24-bit pressure value plus a 1 byte temperature value. I am...
6
by: Martin | last post by:
Hi, I have a xml file like the one below <?xml version="1.0" encoding="utf-8"?><e1 xmlns:e1="http://tempuri.org/Source1.xsd" e1:att1="1" e1:att2="2" e1:rest="345"/> If I try to create a...
0
by: eduardasm | last post by:
Hello, I have a problem with XML schema update for one XML column (problem exists in both SP1 and SP2 for SQL Server 2005). 1. I have a table that looks like this: CREATE TABLE .( NOT NULL...
0
by: SBearss | last post by:
Does anyone know how to specify a dataset ( or diffgram) as an element in a schema? For example and empty schema is defined as <?xml version="1.0" encoding="utf-8"?> <xsd:schema id="NewDataSet"...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.