Click here to Skip to main content
15,890,438 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionCan we lock just a single table in xml file?? Pin
Ron.S1-Apr-08 19:46
Ron.S1-Apr-08 19:46 
AnswerRe: Can we lock just a single table in xml file?? Pin
led mike2-Apr-08 4:42
led mike2-Apr-08 4:42 
AnswerRe: Can we lock just a single table in xml file?? Pin
Dave Kreskowiak2-Apr-08 4:46
mveDave Kreskowiak2-Apr-08 4:46 
QuestionContains Function!!! Please Help me (XPath) Pin
Masterhame31-Mar-08 8:07
Masterhame31-Mar-08 8:07 
GeneralRe: Contains Function!!! Please Help me (XPath) Pin
led mike1-Apr-08 4:51
led mike1-Apr-08 4:51 
GeneralSchema Namespaces Pin
GraemeYeo28-Mar-08 7:49
GraemeYeo28-Mar-08 7:49 
QuestionDetermine elements according to attributes Pin
goutsi27-Mar-08 6:24
goutsi27-Mar-08 6:24 
QuestionCreating a XML and XSD for data storage. Starting with empty xml Pin
steve_rm24-Mar-08 23:32
steve_rm24-Mar-08 23:32 
Hello,

I am using a xml and xsd store data. My table will be very small no more than 10 rows.

However, I would like to start with zero records. However, I am finding I get an error with the following.

The ID element is auto incremented which is set and run time when the dataset reads the xsd schema.

My XSD:
<code>
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="RedialNumbers">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="RecentNumber">
<xs:complexType>
<xs:sequence>
<xs:element name="ID" type="xs:unsignedInt" />
<xs:element name="Number" type="xs:string" />
<xs:element name="Name" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</code>

My XML:
<code>
<?xml version="1.0" encoding="utf-8" ?>
<RedialNumbers>
<RecentNumber>
<ID></ID>
<Number></Number>
<Name></Name>
</RecentNumber>
</RedialNumbers>
</code>
However, I get a error under the </ID> attribute. "The 'ID' element is invalid - The value '' is invalid according to its datatype 'http://www.w3.org/2001/XMLSchema:unsignedInt' - The string '' is not a valid UInt32 value."

However, If I add a <ID>0</ID> I don't get the error message. However, I get 1 row already created which is what I don't want. All the rows will be created and saved at run-time.

How is it possible to start off with a blank rows?

Many thanks for any suggestions,

Steve
Questionload xml+xsl in html Pin
Member 466072419-Mar-08 21:12
Member 466072419-Mar-08 21:12 
GeneralRe: load xml+xsl in html Pin
led mike20-Mar-08 4:47
led mike20-Mar-08 4:47 
GeneralRe: load xml+xsl in html Pin
Aurelius166420-Mar-08 5:25
Aurelius166420-Mar-08 5:25 
GeneralRe: load xml+xsl in html Pin
Member 466072423-Mar-08 22:16
Member 466072423-Mar-08 22:16 
QuestionCombine several xml schemata in a single file? Pin
maki.stud17-Mar-08 3:59
maki.stud17-Mar-08 3:59 
Questionhow to code some sql properties in xsd? [modified] Pin
khinezw17-Mar-08 3:08
khinezw17-Mar-08 3:08 
QuestionHow to XSL this XML file? Pin
ASCIIyhr16-Mar-08 10:07
ASCIIyhr16-Mar-08 10:07 
Generalsetting XML Schema Restriction Pin
laziale14-Mar-08 4:11
laziale14-Mar-08 4:11 
AnswerRe: setting XML Schema Restriction Pin
buchstaben15-Mar-08 6:05
buchstaben15-Mar-08 6:05 
GeneralRe: setting XML Schema Restriction Pin
laziale15-Mar-08 6:16
laziale15-Mar-08 6:16 
QuestionCombining XmlNodeList with another? Pin
Peter Nap11-Mar-08 23:37
Peter Nap11-Mar-08 23:37 
GeneralRe: Combining XmlNodeList with another? Pin
led mike13-Mar-08 4:30
led mike13-Mar-08 4:30 
Questionxml file bind into data grib view from window in C# Pin
thanhtikezaw11-Mar-08 0:24
thanhtikezaw11-Mar-08 0:24 
Generalcross post (ignore) Pin
led mike11-Mar-08 6:00
led mike11-Mar-08 6:00 
Questionhow do i Deserialize a xml docuement that contains reserve char in .net 1.1 Pin
abstar10-Mar-08 13:01
abstar10-Mar-08 13:01 
GeneralRe: how do i Deserialize a xml docuement that contains reserve char in .net 1.1 Pin
led mike11-Mar-08 5:56
led mike11-Mar-08 5:56 
GeneralGetting Crazy with Excel XML File Creation Pin
Bodo van Laak7-Mar-08 5:48
Bodo van Laak7-Mar-08 5:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.