W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2006

Re: [xmlschema-dev] <none>

From: George Cristian Bina <george@oxygenxml.com>
Date: Wed, 10 May 2006 21:38:37 +0300
Message-ID: <4462332D.60900@oxygenxml.com>
To: Balakrishnan <balakrishnan@alden.co.in>
CC: xmlschema-dev@w3.org

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 &copy; node</test>
</root>

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.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 &copy; 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
Received on Wednesday, 10 May 2006 18:36:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:54 GMT