473,386 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Using xs:ENTITIES

Hi
How to define xs:ENTITIES in a schema and how can I use it in xml ?
Could someone direct me with schema and xml ?
Thanks in advance.
Jan 22 '08 #1
3 4069
jkmyoung
2,057 Expert 2GB
I don't understand why you'd want to use this particular entities.
http://www.w3.org/TR/xmlschema-2/#ENTITIES

Have you tried declaring the xs namespace?
Jan 22 '08 #2
Hi
I have the following XML. Now I would like to define schema for the below XML.
Please guide me how to create schema with xs:ENTITIES.

<?xml version = "1.0" standalone="yes"?>
<!DOCTYPE database [
<!ENTITY city1 SYSTEM "tour1.html" NDATA html>
<!ELEMENT database ( company+ )>
<!ELEMENT company ( name )>
<!ATTLIST company tour1 ENTITY #REQUIRED>
<!ATTLIST database company ENTITIES #REQUIRED>
<!ELEMENT name ( #PCDATA )>
]>
<database>
<company tour1 = "&city1;"><name>Polaris, Hyderabad</name></company>
</database>
Jan 24 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Kunle Odutola | last post by:
I have a database that tracks players for children's sports clubs. I have included representative DDL for this database at the end of this post. A single instance of this database supports...
4
by: Peter C. Chapin | last post by:
I have a need to include Greek letters in some of my XML documents (the documents contain astronomical information and many stars are named using Greek letters). Following some earlier postings on...
2
by: kamp | last post by:
Hello, Below is a snippet from a schema. The second enumeration should contain an i umlaut (archaïsch) but when I use this schema with Altova's Stylevision software the iumlaut is not displayed...
3
by: bheem | last post by:
I have a few questions about DTD ENTITY. I would appreciate any help. 1. Is there any equivalent of this in xsd? Suppose I want to use the same string in multiple places in an xml file, is it...
3
by: Rohit Sharma | last post by:
Hi all.. ..NET + MSXML platform....VB Need to build a list of all the entities and attributes to allow the user to do search...how can i do that from the schema ?? Cheers Rohit
3
by: Michel de Becdelièvre | last post by:
I have some *performance* trouble reading MathML files in my application (in ASP.Net). - I have small MathML files (2-3k) as input - as (almost) all MathML files these use entities. I have no...
0
by: Bryan Ax | last post by:
I currently have two versions of a dtd (1.01 and 1.11) that both contain the following entity: v1.01: <!ENTITY % doc-type "A | B | Other"> v1.11: <!ENTITY % doc-type "A | B | C | Other"> ...
5
by: Pete Wittig | last post by:
Hi, Here is my problem. I have a serviced component that is exposed via a SOAP interface. This particular component, Person, has a method that takes in another object called PersonHobby. When...
7
by: tempest | last post by:
Hi all. This is a rather long posting but I have some questions concerning the usage of character entities in XML documents and PCI security compliance. The company I work for is using a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.