![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: [xmlschema-dev] >Thread Next - specify element type depending of same element attribute value? RE: [xmlschema-dev] EntityTo: "George Cristian Bina" <george@---------.---> Date: 5/12/2006 2:44:00 AM Thanks George, I have tried the below, but not working for me. I have attached sample XML and XSD file for your reference. Could you advice where I am mistake. Many thanks Bala -----Original Message----- From: George Cristian Bina [mailto:george@o...] Sent: Thursday, 11 May 2006 12:09 To: Balakrishnan Cc: xmlschema-dev@w... Subject: Re: [xmlschema-dev] <none> Hi, You need a DTD for entities. You can have something like below for instance: <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE root [ <!ENTITY copy "sample"> ]> <root> <test>this is the test © node</test> </root> Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger www.---.com Balakrishnan wrote: > Dear All, > > I am new to Schema. I have more questions, first one here. > > How to declare the entities in the schema? Could you advice please. > > eg. XML > <?xml version="1.0" encoding="utf-8" ?> > <root> > <test>this is the test © node</test> > </root> > > > eg. Schema > <xsd:schema version='1.0' > xmlns:xsd='http://www.w3.org/2001/XMLSchema'> > <xsd:element name='root'> > <xsd:complexType> > <xsd:sequence> > <xsd:element name='test'/> > </xsd:sequence> > </xsd:complexType> > </xsd:element> > </xsd:schema> > > Many thanks > Bala | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
