Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XMLAdapter maps Integer to C(254)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
XMLAdapter maps Integer to C(254)
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01091350
Message ID:
01091350
Vues:
80
XMLAdapter seems to map XML Integer attributes to Character (254) as opposed to VFP Integers as one would expect.

Extract from Schema:
<xsd:attribute name="VendorCode" use="required">
	<xsd:simpleType>
		<xsd:restriction base="xsd:integer">
			<xsd:minInclusive value="1"/>
			<xsd:maxInclusive value="999999"/>
		</xsd:restriction>
	</xsd:simpleType>
</xsd:attribute>
Extract from XML data:
<PurchaseOrder VendorCode="1234">
XMLAdapter.ToCursor() then creates a cursor with a character(254) field 'VendorCode'.

Anyone else noticed this?

Nick
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform