W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2004


From: Ferrari GIanni <Ferrari.gi@apss.tn.it>
Date: Thu, 5 Feb 2004 09:12:23 +0100
Message-ID: <D11D57B75A3CD411BF7F00E018C3356F01866038@NTGEN05>
To: xmlschema-dev@w3.org

I ask you if is possible to create an XML Structured across XML SCHEMA
without the string #PCDATA between the start and the end of the tag. For
example when I wrote:


<xsd:complexType name="AttrService">

    <!-- Codice Servizio: centro di costo o di prelievo -->

    <xsd:attribute name="ServId" type="xsd:string" use="required"/>

     <!-- Nome Servizio -->

     <xsd:attribute name="ServName" type="xsd:string" use="required"/>

     <!-- Responsabile del Servizio -->

     <xsd:attribute name="ServResponsible" type="xsd:string"

     <!-- Telefono del servizio -->

     <xsd:attribute name="ServPhone" type="xsd:string" use="optional"/>



My XML became:



       <Service ServPhone="" ServResponsible="" ServName=""


The problem is that #PCDATA is created from XML Writer when i create my XML
Document across XML Schema. It is possible from the XML Schema to have a
structure similar at this (under) without #PCDATA:



       <Service ServPhone="" ServResponsible="" ServName="" ServId=""/>



What I have to add in my XMLSCHEMA?

Thank you so much again for all programmer friends.

Regards from Italy




Received on Thursday, 5 February 2004 03:11:53 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:04 UTC