Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default XML schema validation fails

Hi,

currently I have a little problem upon saving some excel worksheets as
xml data. Normally cell's without a value are not exported into xml,
because in my schema they are marked as optional (see schema below).
But sometimes values are copy-pasted into the worksheet and I'll get
the following error message while saving from the schema validation:
"Error parsing '' as decimal datatype. The attribute 'Exposure' with
value '' failed to parse."

I can't find any differences to other "empty" cells - same format,
formula and value are blank.

Any ideas?

Kind regards,
Michael


Here is the schema I use:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
<xs:element name="test"
<xs:complexType
<xs:sequence
<xs:element ref="myType" maxOccurs="unbounded" /
</xs:sequence
</xs:complexType
</xs:element
<xs:element name="myType"
<xs:complexType
<xs:attribute name="Exposure" type="Amount" use="optional" /
</xs:complexType
</xs:element
<xs:simpleType name="Amount"
<xs:restriction base="xs:decimal"
<xs:minInclusive value="0" /
<xs:fractionDigits value="12" /
</xs:restriction
</xs:simpleType
</xs:schema
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding validation fails with automation error [email protected] Excel Programming 4 February 13th 08 08:30 PM
Validation fails on copying x6v87qe Excel Discussion (Misc queries) 3 May 8th 07 09:10 AM
XMLMap and Schema validation Perico[_2_] Excel Programming 0 February 26th 07 02:06 AM
VBA Inserted Data Validation Fails _RickK Excel Programming 3 January 24th 07 05:18 PM
Cell Protection fails with validation lists AMiddleton Excel Programming 1 January 6th 04 04:00 PM


All times are GMT +1. The time now is 02:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"