![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - [xmlschema-dev] >Thread Next - RE: [xmlschema-dev] Entity Re: [xmlschema-dev]To: Balakrishnan <balakrishnan@-----.--.--> Date: 5/11/2006 12:39:00 AM 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 From noah_mendelsohn@u... Wed May 10 20:36:13 2006 Received: from maggie. | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
