473,394 Members | 1,812 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,394 software developers and data experts.

xs:element name in xsd file for int.

Hi all,

I am having table in database with say name as '1company'. when i
generate strongly typed dataset for this table in xsd file i am
getting entry as below:-

<xs:element name="_x0031_company" type="xs:string" minOccurs="0" />

Can anyone tell me why column name '1company' is written as
"_x0031_company"?

why can't i have entry as below:
<xs:element name="1company" type="xs:string" minOccurs="0" />

Any help will be truely appreciated.

Feb 23 '07 #1
1 1816
tr**************@yahoo.com wrote:
I am having table in database with say name as '1company'. when i
generate strongly typed dataset for this table in xsd file i am
getting entry as below:-

<xs:element name="_x0031_company" type="xs:string" minOccurs="0" />

Can anyone tell me why column name '1company' is written as
"_x0031_company"?

why can't i have entry as below:
<xs:element name="1company" type="xs:string" minOccurs="0" />
A name is not allowed to start with a digit, it has to start with what
the XML specification respectively the "Namespaces in XML 1.0"
specification specifies as an allowed character
<http://www.w3.org/TR/REC-xml/#NT-Name>
<http://www.w3.org/TR/REC-xml-names/#ns-qualnames>
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Feb 23 '07 #2

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

Similar topics

1
by: Alex Sab | last post by:
Hi, I have a XML structure where the element name can be chosen freely but the element attributes must be all of the same names. <Node> <AnyName1 Type="Single" Unit="" Comment="">0</AnyName1>...
2
by: Adam Retter | last post by:
I would like to have an element defined in my XML Schema, that can hold either an xs:string or xs:int value. Is this possible? e.g. something like - <xs:element name="service">...
5
by: Gregg | last post by:
Hello all, I have been banging my head over a problem that I am having reading a comma seperated file (CSV) that can contain from 1 to 10,000 records. My code snipit is as follows: **Start...
0
by: swtrse | last post by:
Hi, There is a big problem using an XSD-Schema in C# to generate an XML-File (with WriteXML). The Scheme is defined as ------------------------------------------------------------ <?xml...
3
by: David Elliott | last post by:
I wrote an application to scrape a database and create an XSD file which will be annotated by a map file in order to create a Typed DataSet. I was wondering if I could do the annotation using...
2
by: Json | last post by:
Ok, brand new to SQLXML 3.0 and its various issues. Heres what I'm trying to do: 1. I am trying to load xml data into an empty SQL table from my .NET console application. 2. This isn't a huge...
3
by: ciaran.mchale | last post by:
Hi folks, I downloaded the binary version of Xerces C++ 2.7.0 for Windows and am using it to help me get up to speed with XML and XML Schema. So please excuse me if this is a "novice" question....
1
by: ronchese | last post by:
Hello All. I need to complement some information in a xml file, using the Xml.XmlDocument object. This xml contains several <xs:element ....> nodes (is a saved dataset), and I need to write new...
3
by: Sushant Panda | last post by:
I m trying to validating xml file against xsd file in vb6.0 but i m getting an error xsd file:(Aces_Dlr.xsd) <?xml version="1.0" encoding="UTF-8"?> <!--W3C Schema generated by XMLSpy v2010...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.