xsd - Add comment with type of XML element above element -


i want know if can add comment similar <!--optional:--> type of element.

this actual xsd structure:

<xsd:complextype name="datos_registrapago_type">     <xsd:sequence>         <xsd:element name="numservicio"     nillable="false" type="tns:numservicio_type" />         <xsd:element name="tipnegocio"      nillable="false" type="tns:tipnegocio_type"/>         <xsd:element name="mtodeudor"       nillable="false" type="tns:mtodeudorstring_type"/>         <xsd:element name="fecemision"      nillable="false" type="tns:fecemision_type"/>     </xsd:sequence> </xsd:complextype>  <xsd:simpletype name="tipnegocio_type">     <xsd:annotation>         <xsd:documentation>tipo negocio</xsd:documentation>     </xsd:annotation>     <xsd:restriction base="xsd:string">         <xsd:maxlength value="2"/>     </xsd:restriction> </xsd:simpletype> 

this actual output:

<mensajereq>         <integreq>            <detalle>               <datos>                  <!--optional:-->                  <numservicio>?</numservicio>                  <tipnegocio>?</tipnegocio>                  <mtodeudor>?</mtodeudor>               </datos>            </detalle>         </integreq>      </mensajereq> 

what want:

<mensajereq>         <integreq>            <detalle>               <datos>                  <!--optional:-->                  <!--xs:string-->                  <numservicio>?</numservicio>                  <!--xs:string-->                  <tipnegocio>?</tipnegocio>                  <!--xs:int-->                  <mtodeudor>?</mtodeudor>               </datos>            </detalle>         </integreq>      </mensajereq> 


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -