473,385 Members | 2,210 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,385 software developers and data experts.

why SOM of msxml4 can't load this schema?

the schema is:
http://www.web3d.org/specifications/x3d-3.0.xsd

when use SOM to load as:
....
SchemaCache = new ActiveXObject("Msxml2.XMLSchemaCache.4.0");
SchemaCache.add("","x3d-3.0.xsd");
....

pop up a messageBox report that there are some error.but the schema is
well-formated.how to solution?
Jul 20 '05 #1
2 1533


tgtt wrote:
the schema is:
http://www.web3d.org/specifications/x3d-3.0.xsd

when use SOM to load as:
...
SchemaCache = new ActiveXObject("Msxml2.XMLSchemaCache.4.0");
SchemaCache.add("","x3d-3.0.xsd");
...

pop up a messageBox report that there are some error.but the schema is
well-formated.how to solution?


The error doesn't say that the XML is not well-formed, it claims that
the definition of the complex type named X3DGroupingNode is not
deterministic.

I have tried to follow all the references in the schema but got lost, so
maybe you can try another schema processor to see what that says when
the schema is processed. When I use
http://www.w3.org/2001/03/webdata/xs...g=on&style=xsl
no errors are reported so maybe it is a bug with MSXML.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2
Martin Honnen <ma*******@yahoo.de> writes:
tgtt wrote:
the schema is:
http://www.web3d.org/specifications/x3d-3.0.xsd
...


The error doesn't say that the XML is not well-formed, it claims that
the definition of the complex type named X3DGroupingNode is not
deterministic.

I have tried to follow all the references in the schema but got lost,
so maybe you can try another schema processor to see what that says
when the schema is processed. When I use

http://www.w3.org/2001/03/webdata/xs...g=on&style=xsl
no errors are reported so maybe it is a bug with MSXML.


I don't think it's a bug in MSXML.

Xerces J also finds a number of non-deterministic content models; the
majority of the error messages mention the element MetadataDouble
appearing twice in competing positions in the content model, but this
is an artifact: MetadataDouble happens to be the first element
mentioned in a group (ChildContentModeCore) which is used more than
once in competing positions -- so MetadataDouble is likely to be the
first one checked and detected to be non-deterministic.

My desk copy of XSV also complains about a non-deterministic content
model involving MetadataDouble (although I don't understand why it's
pointing where it's pointing in the source). I'm surprised that the
Web version of XSV doesn't complain; perhaps there's a bug there.

For those who care, the problem with type X3DGroupingNode is not hard
to explain, though the layers of type derivation make it a bit wordy
to explain. We have

X3DGroupingNode extends X3DChildNode extends X3DNode

X3DNode ends with an optional choice among various metadata elements,
including metadataDouble.

X3DChildNode doesn't change the content model (it just adds an
attribute).

X3DGroupingNode adds an optional occurrence of the group
ChildContentModel, which in turn consists of a choice, one of whose
members is the group ChildContentModeCore, which in turn contains a
reference to element MetadataDouble.

A parser can't tell whether an occurrence of MetadataDouble should
match the one in the core definition of X3DNode, or the one in the
X3DGroupingNode extension. Ergo, the content model is
non-deterministic, ergo, the schema processor is right to raise an
error.

Of course, some have said (including me) that it would be better to do
away with the non-determinism rule, but we haven't persuaded others of
that yet.

-C. M. Sperberg-McQueen
World Wide Web Consortium / MIT CSAIL
Jul 20 '05 #3

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

Similar topics

0
by: milesd | last post by:
Hi, Rather new to MSXML4. I am parsing an XML data-stream over HTTP, and would like to know why I cannot parse XML nodes with multiple parameters. The XML and Code are below, BUT I would like...
1
by: tweety | last post by:
I had a problem with IE 6.0.2800. The responseText property of the XMLHTTP object was giving an error.There was a bug in msxml dll. so i upgraded to msxml4 and changed the code to the following: ...
1
by: T | last post by:
Is there a way to use the Visual Studio .NET IDE to validate a schema using the MSXML4 parser? Similarly, is there a way to get the .NET framework utilities, such as the xsd.exe and wsdl.exe...
1
by: jd | last post by:
I have an xsl file to generate xml in to an html file. The size of the xsl is 300kb and size of the xml is 47 kb (the size of xml is variable). I am using VB.net to convert the xml file into an...
2
by: Pet Matrix. | last post by:
Hi, I am trying to validate an XML file using the XmlValidatingReader and XmlUrlResolver. The code for which goes like this: // Read the XML file. XmlTextReader xmlReader = new XmlTextReader(...
2
by: VernonR | last post by:
I'm having problems getting the .NET 1.1 XSL transform to cross reference using ID / IDREF correctly. I have collapsed to a simple set of files to show the problem more clearly... The output...
3
by: Eugen Gulinsky | last post by:
Hello guys, I am having problems trying to migrate our MSXML4-compatible stylesheets containing large msxsl:script blocks to a formate understandable by System.Xml:Xsl.XslTransform. I keep...
0
by: =?Utf-8?B?RHVja3dvbg==?= | last post by:
Hello everyone, I need to get the version number of a couple of DLLs (comctl32.dll and msxml4.dll). I don't have the full path because I don't want to assume they will be in the system32 folder....
0
by: =?Utf-8?B?TGFzdGJ1aWxkZXJz?= | last post by:
Hi all, I have a weird problem which has been causing me a headache for the last two days. I have to dynamicly generate a schema in memory and load it into a dataset in memory to be returned...
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: 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
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...
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
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
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...

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.