- From: Balakrishnan <balakrishnan@alden.co.in>
- Date: Thu, 11 May 2006 21:26:06 +0530
- To: "George Cristian Bina" <george@oxygenxml.com>
- Cc: <xmlschema-dev@w3.org>
- Message-ID: <POEDIJKJMMMLAKHPKADCCEAGCDAA.balakrishnan@alden.co.in>
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@oxygenxml.com]
Sent: Thursday, 11 May 2006 12:09
To: Balakrishnan
Cc: xmlschema-dev@w3.org
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
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 © 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
Attachments
- text/xml attachment: sample.xml
- text/xml attachment: sample.xsd
Received on Thursday, 11 May 2006 15:56:31 UTC