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

Non-Deterministic Schemas

The following article says the .NET SOM will not allow what it calls
"non-deterministic" schemas
http://msdn.microsoft.com/library/de...sticschema.asp

** Is this a bug in the SOM or in the schema ? **

Is it something that will be resolved in a future release?

Actually, it is not my schema, but one that has been given to me by an
international body, and validates on many different parsers. So what do I do
here, when the .NET parser tells me "Content model must be deterministic"?
Nov 12 '05 #1
5 1417
Interesting question: is this a bug in the SOM or the Schema...

what schema?

You didn't post any part of a schema.

You say that the schema came from an international body. Can you contact
them about the fact that their schema won't parse on .NET?
The fact is that a schema is a structure that is used to validate an XML
file using basic rules. In many cases, it is possible to represent the
rules with more than one schema. In other words, it may be possible for the
schema to be re-coded so that it will work with the Microsoft SOM.

Or, perhaps not.

Clearly, one of the main goals of publishing a schema is interoperability.
If the schema that is published won't work with the largest commercial
development platform on the planet, then the international body didn't
achieve their goal. If you point out that minor changes, made early, using
the XML versioning standard, may be able to repair the problem, then you may
get some traction.

Otherwise, I'd suggest that you may want to get about three-dozen instance
documents, run them through XSD.EXE to generate some schemas, and then, by
hand, work out a schema that will work in .NET.

If you simply cannot get one to work, then read the XML as a well-formed
document, and parse it yourself... hopefully into a format that .NET *can*
read.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"rox.scott" <ro******@discussions.microsoft.com> wrote in message
news:0C**********************************@microsof t.com...
The following article says the .NET SOM will not allow what it calls
"non-deterministic" schemas:
http://msdn.microsoft.com/library/de...sticschema.asp
** Is this a bug in the SOM or in the schema ? **

Is it something that will be resolved in a future release?

Actually, it is not my schema, but one that has been given to me by an
international body, and validates on many different parsers. So what do I do here, when the .NET parser tells me "Content model must be deterministic"?

Nov 12 '05 #2
> Clearly, one of the main goals of publishing a schema is interoperability.

Clearly, one of the main goals of publishing a platform is functionality.

Hence, my question is ... are the limitations of the Microsoft SOM (as
described in the MSDN article -- i don't need to post my schema here) valid?
or not?
Nov 12 '05 #3
Are the limitations valid?

What an odd question.

By the standard of the developers of the SOM, the limitations are valid.
By the standard of the developers of a competing parser that doesn't have
that limitation, they are not valid.
The W3C standard doesn't pick one side or the other, AFAIK.

So... what standard are you measuring with? The one that says 'yes,' the
one that says 'no,' or the one that says 'maybe?'

Who cares!

The international body failed to meet their goals. You are far more likely
to get them to change the schema than you are to get MS to change the SOM.

Pick your battles.

Reread my previous post for a list of suggestions on how to work around this
problem.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"rox.scott" <ro******@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
Clearly, one of the main goals of publishing a schema is
interoperability.
Clearly, one of the main goals of publishing a platform is functionality.

Hence, my question is ... are the limitations of the Microsoft SOM (as
described in the MSDN article -- i don't need to post my schema here) valid? or not?

Nov 12 '05 #4
I am not sure why this post has incurred such an emotional response -- I'll
try to restate the question again in plain English to avoid further scourge...

Does Microsoft have plans to allow "non-deterministic" schemas in a future
release?

--scott

"Nick Malik [Microsoft]" wrote:
Are the limitations valid?

What an odd question.

By the standard of the developers of the SOM, the limitations are valid.
By the standard of the developers of a competing parser that doesn't have
that limitation, they are not valid.
The W3C standard doesn't pick one side or the other, AFAIK.

So... what standard are you measuring with? The one that says 'yes,' the
one that says 'no,' or the one that says 'maybe?'

Who cares!

The international body failed to meet their goals. You are far more likely
to get them to change the schema than you are to get MS to change the SOM.

Pick your battles.

Reread my previous post for a list of suggestions on how to work around this
problem.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"rox.scott" <ro******@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
Clearly, one of the main goals of publishing a schema is

interoperability.

Clearly, one of the main goals of publishing a platform is functionality.

Hence, my question is ... are the limitations of the Microsoft SOM (as
described in the MSDN article -- i don't need to post my schema here)

valid?
or not?


Nov 12 '05 #5
mono has an implementation of the XML reader that will support
non-deterministic schema and they are working on a schema validator that is
compliant with RELAX NG, which, from what I've heard, supports many of the
non-deterministic constraints.

I have not dug through .Net 2.0 enough to know if non-deterministic schema
are supported. I have not seen any public announcement either way. Perhaps
if you ask on the beta forums, you will get an answer that is specific to
the new version of the framework.

I can say this:
Microsoft's XML implementation is W3C compliant.
I hope this helps,

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"rox.scott" <ro******@discussions.microsoft.com> wrote in message
news:10**********************************@microsof t.com...
I am not sure why this post has incurred such an emotional response -- I'll try to restate the question again in plain English to avoid further scourge...
Does Microsoft have plans to allow "non-deterministic" schemas in a future
release?

--scott

"Nick Malik [Microsoft]" wrote:
Are the limitations valid?

What an odd question.

By the standard of the developers of the SOM, the limitations are valid.
By the standard of the developers of a competing parser that doesn't have that limitation, they are not valid.
The W3C standard doesn't pick one side or the other, AFAIK.

So... what standard are you measuring with? The one that says 'yes,' the one that says 'no,' or the one that says 'maybe?'

Who cares!

The international body failed to meet their goals. You are far more likely to get them to change the schema than you are to get MS to change the SOM.
Pick your battles.

Reread my previous post for a list of suggestions on how to work around this problem.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"rox.scott" <ro******@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
> Clearly, one of the main goals of publishing a schema is

interoperability.

Clearly, one of the main goals of publishing a platform is functionality.
Hence, my question is ... are the limitations of the Microsoft SOM (as
described in the MSDN article -- i don't need to post my schema here)

valid?
or not?


Nov 12 '05 #6

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

Similar topics

5
by: klaus triendl | last post by:
hi, recently i discovered a memory leak in our code; after some investigation i could reduce it to the following problem: return objects of functions are handled as temporary objects, hence...
3
by: Mario | last post by:
Hello, I couldn't find a solution to the following problem (tried google and dejanews), maybe I'm using the wrong keywords? Is there a way to open a file (a linux fifo pipe actually) in...
25
by: Yves Glodt | last post by:
Hello, if I do this: for row in sqlsth: ________pkcolumns.append(row.strip()) ________etc without a prior:
32
by: Adrian Herscu | last post by:
Hi all, In which circumstances it is appropriate to declare methods as non-virtual? Thanx, Adrian.
8
by: Bern McCarty | last post by:
Is it at all possible to leverage mixed-mode assemblies from AppDomains other than the default AppDomain? Is there any means at all of doing this? Mixed-mode is incredibly convenient, but if I...
14
by: Patrick Kowalzick | last post by:
Dear all, I have an existing piece of code with a struct with some PODs. struct A { int x; int y; };
11
by: ypjofficial | last post by:
Hello All, So far I have been reading that in case of a polymorphic class ( having at least one virtual function in it), the virtual function call get resolved at run time and during that the...
2
by: Ian825 | last post by:
I need help writing a function for a program that is based upon the various operations of a matrix and I keep getting a "non-aggregate type" error. My guess is that I need to dereference my...
399
by: =?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= | last post by:
PEP 1 specifies that PEP authors need to collect feedback from the community. As the author of PEP 3131, I'd like to encourage comments to the PEP included below, either here (comp.lang.python), or...
12
by: puzzlecracker | last post by:
is it even possible or/and there is a better alternative to accept input in a nonblocking manner?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.