- From: Ferrari GIanni <Ferrari.gi@apss.tn.it>
- Date: Thu, 5 Feb 2004 09:12:23 +0100
- To: xmlschema-dev@w3.org
- Message-ID: <D11D57B75A3CD411BF7F00E018C3356F01866038@NTGEN05>
Ciao, 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"/> </xsd:complexType> My XML became: <DocumentSender> <Service ServPhone="" ServResponsible="" ServName="" ServId="">#PCDATA</Service> 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: <DocumentSender> <Service ServPhone="" ServResponsible="" ServName="" ServId=""/> </DocumentSender> What I have to add in my XMLSCHEMA? Thank you so much again for all programmer friends. Regards from Italy Gianni
Received on Thursday, 5 February 2004 03:11:53 UTC