Re: Who supports Schema validation of unique



On Apr 7, 12:17 am, "P. Lepin" <p.le...@xxxxxxxxxxx> wrote:


XML is case-sensitive. 'CustomerID' is not the same thing as
'customerID'.

P. Lepin,
Thank you very much for pointing out that error.

I ask the XML community out there, can anyone point out a resource
where
I can find some example XML Schema code that does not contain errors.
Specifically code showing the use of identity constraint features,
such
as unique, key, and keyref.

The code in question, where P. Lepin found the error was supplied by
a
small, and perhaps underfunded and understaffed U.S. software company
called
microsloft. It is in their example code for how to use xsd:unique

Here is the link: http://msdn.microsoft.com/en-us/library/ms256146(VS.85).aspx

I looked around for a source a little more careful that microsloth,
I thought perhaps xml.com would be a reputable source.
Yet it also supplies erroneous examples (I think, I can't tell because
I can't find
a validator that I trust). These errors seem even more obvious.
For instance: http://www.xml.com/2002/11/13/examples/Housing2.xsd.txt
Here the selector xpath attribute refers to an element that does not
exist.
I have copied the offending code here (I think they meant for the
selector to be HousingUnit)

<key name="UnitIDKey">
<selector xpath="Unit" />
<field xpath="@unitID" />
</key>

I downloaded an evaluation version of Altova XMLSpy, because I came to
the conclusion one
has to pay money for a properly functioning XML validation tool.

Yet I can put anything in the xpath attribute for selector, hit the F8
key, and and Altova
gives me the green check mark saying everything is OK.
well I can't type in anything
<selector xpath="!@!@!"/>
causes a validation error, but
<selector xpath="obviouslyNonExistentXpathExpressionSubset"/>
is perfectly OK.

Maybe I don't understand what validation means.
It seems reasonable to me that a software tool could tell when an
xpath doesn't validly refer
to anything (it seems like it should have caught the error P. Lepin
caught, where
the selector field was "@customerID" instead of "@CustomerID").

I'm having a hard time learning XML, because I learn by example.
I can't seem to find any examples that I trust.
If anyone can point me to examples that I can trust, that would be
very helpful.

Is there a software tool that does the kind of validation I am looking
for?
If you are a vendor of such a tool please contact me.
AltovaSpy is $129, perhaps one needs to pay $1290 for the tool I
want??

-Thanks,
Chip Grandits
ATA


--
Waterfall: One Process To Rule Them All

.



Relevant Pages

  • Re: Automated WSF argument validation: demo script.
    ... The "right" kind of tool for this job is a COM-accessible XML stream reader ... The script is a demo of automating argument validation ... >> end sub ...
    (microsoft.public.windows.server.scripting)
  • Re: Automated WSF argument validation: demo script.
    ... The "right" kind of tool for this job is a COM-accessible XML stream reader ... The script is a demo of automating argument validation ... >> end sub ...
    (microsoft.public.scripting.wsh)
  • Re: 2 Questions about validations
    ... > In SGML and XML, validity means that a document conforms to the Document ... Validation is a process ...
    (comp.infosystems.www.authoring.html)
  • Re: XML Schema Validation + Deserialization
    ... Why not use the validating reader to ... > I would like to perform a 2-pass XML reading from a stream. ... > ' now the validation read - XmlSchemaException exceptions ... > ' actually I want to deserialize the XML into the ...
    (microsoft.public.dotnet.xml)
  • Re: able to and/or how to programmatically loop through web forms
    ... to duplicate the look and feel of an existing desktop version ... ... > think that you can duplicate the Access behavior in a Web Project, ... > defined data entry forms in xml here, and use that to generate an HTML ... > get server-side validation this way, otherwise you'll really have to do some ...
    (microsoft.public.dotnet.general)

Loading