xml - Generating cXML classes from xsd throws error "The element 'uri:ds:Signature' is missing." -
i'm trying generate cxml classes version cxml 1.2.034 per http://cxml.org/ xsd (converted visual studio).
i converted cxml.dtd xsd. tried running:
xsd.exe cxml.xsd /c /language:cs /n:mynamespace
but threw error:
error: error generating classes schema 'cxml'. - element 'uri:ds:signature' missing.
then found issue here: generating c# classes xsd seems relevant. downloaded xmldsig-core-schema.xsd http://www.w3.org/tr/xmldsig-core/xmldsig-core-schema.xsd
then ran
xsd.exe cxml.xsd xmldsig-core-schema.xsd /c /language:cs /n:mynamespace
but threw
error: error generating classes schema 'cxml_xmldsig-core-schema'. - element 'uri:ds:signature' missing.
i'm lost "'uri:ds:signature'" supposed be?
i can see
<xs:schema xmlns="http://tempuri.org/cxml" xmlns:ds="uri:ds" elementformdefault="qualified" targetnamespace="http://tempuri.org/cxml" xmlns:xs="http://www.w3.org/2001/xmlschema">
seems wrong. changed xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
same issue persists.
i tried adding reference local signature xsd adding
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemalocation="xmldsig-core-schema.xsd"/>
, yes have file in same directory own xsd file.
Comments
Post a Comment