[xsd-users] warning with any

Rizzuto, Raymond Raymond.Rizzuto at sig.com
Mon Jul 7 09:03:19 EDT 2008


Would it be possible to have a command line option to suppress the
warnings for ##any like these below:

1>SDMP.xsd:751:90: warning: namespace '##any' allows for element
'ticket'
1>SDMP.xsd:751:90: warning: generated code may not associate element
'ticket' correctly if it appears in place of this wildcard
1>SDMP.xsd:609:46: info: element 'ticket' is defined here

The reason I ask is that I get ~240 warnings just from compiling the
schema, which makes it hard to notice any warnings in the rest of the
build.

Ray

-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: Wednesday, July 02, 2008 3:30 PM
To: Rizzuto, Raymond
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] warning with any

Hi Ray,

Rizzuto, Raymond <Raymond.Rizzuto at sig.com> writes:

> However, no error is generated with either of these command lines:
>
> xsd.exe cxx-parser --xml-parser expat simple.xsd
> xsd.exe cxx-parser --generate-validation simple.xsd

In this case we perform validation in the generated code and thus
can always associate things correctly.


> I don't know if there is sufficient demand for it, but having an
option
> (like --generate-validation for the cxx-tree) to generate a "perfect"
> parser would address this case, albeit probably with a performance
hit.

It would also require a substantial effort to implement. We are
currently
working on another in-memory mapping similar to C++/Tree which will
support
XML Schema validation in the generated code.

Boris

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.




More information about the xsd-users mailing list