473,396 Members | 1,804 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,396 software developers and data experts.

DTD Definition

6
HI

l want create a DTD so that my program java can read from it, this is my source and l'm using SAX

<?xml version= "1.0" standalone = "yes"?>
<!DOCTYPE CHECKOUTLIST[
<!ELEMENT CHECKOUTLIST (OPERATOR,CUSTOMERLIST,CUSTOMER )*>

<!ELEMENT OPERATOR (#PCDATA)>
<!ATTLIST OPERATOR NAME CDATA #REQUIRED STAFFID CDATA #REQUIRED >

<!ELEMENT CUSTOMERLIST (#PCDATA)>

<!ELEMENT CUSTOMER (PAYMENT,VOUCHER,LOYALTYCARD)>

<!ATTLIST CUSTOMER CHECKINTIME CDATA #REQUIRED
CHECKOUTTIME CDATA #REQUIRED >

<!ATTLIST PAYMENT TYPE CDATA #REQUIRED AMOUNT CDATA #REQUIRED>

<!ATTLIST VOUCHERS AMOUNT CDATA #IMPLIED>

<! ATTLIST LOYALTYCARD ID CDATA #REQUIRED>

]>

<CHECKOUTLIST>

<OPERATOR NAME = "Sally Tompson" STAFFID = "334561Q"/>

<CUSTOMERLIST>

<CUSTOMER CHECKINTIME = "34556" CHECKOUTTIME = "34565"/>

<PAYMENT TYPE = "Cash" AMOUNT = "457"/>
<VOUCHERS AMOUNT ="120"/>
<LOYALTYCARD ID = "ERT558"/>

</CUSTOMER >

<CUSTOMER CHECKINTIME = "34590" CHECKOUTTIME = "34602"/>

<PAYMENT TYPE = "CreditCard" AMOUNT = "8899"/>
<VOUCHERS AMOUNT ="0"/>

</CUSTOMER >

CUSTOMER CHECKINTIME = "34604" CHECKOUTTIME = "34612"/>

<PAYMENT TYPE = "Switch" AMOUNT = "2310"/>
<VOUCHERS AMOUNT ="0"/>
<LOYALTYCARD ID = "ERU770"/>

</CUSTOMER >

CUSTOMER CHECKINTIME = "34615" CHECKOUTTIME = "34619"/>

<PAYMENT TYPE = "Switch" AMOUNT = "3455"/>
<VOUCHERS AMOUNT ="25"/>
<LOYALTYCARD ID = "ERZ669"/>

</CUSTOMER >

</CUSTOMERLIST>


</CHECKOUTLIST>
l've been working on since a week, but still doesn't work,
Please any idea
thanks
Jun 14 '07 #1
1 1208
Dököll
2,364 Expert 2GB
Hi!

Hopefully you have a little time to read this information. Looks helpful:

http://www.w3schools.com/dtd/default.asp

In a bit!
Jul 4 '07 #2

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

Similar topics

9
by: Dave H | last post by:
Hello, I have a query regarding definition lists. Is it good practice semantically to use the dt and dd elements to mark up questions and answers in a frequently asked questions list, or FAQ? ...
7
by: Neil Zanella | last post by:
Hello, I have posted the following message before but got no replies... I am trying to format an HTML definition list with CSS so that it appears as follows, but am having the following problem:...
14
by: Mike Hewson | last post by:
Have been researching as to why: <example 1> class ABC { static const float some_float = 3.3f; }; <end example 1>
19
by: J. J. Farrell | last post by:
After many years of dealing with definition and linkage issues in ways that I know to be safe, I've decided it's time to try to understand this area properly. Consider a header file with the file...
4
by: Ced | last post by:
Hi, i'm not an expert in C but i try to compile BTNG software under linux kernel 2.4.2-2. I get these errors at the very first stage. Does someone could have a rapid look on this and tell me...
10
by: Kobu | last post by:
My question is about the use and meaning of the terms "declaration" and "definition" as it pertains to the C language. I've read sources that mix the two up when talking about such things as...
18
by: shaanxxx | last post by:
I have following code . #include<stdio.h> int i; int i; int i; int main() { printf("%d",i); return 0;
9
by: Jess | last post by:
Hello, I was told that if I declare a static class constant like this: class A{ static const int x = 10; }; then the above statement is a declaration rather than a definition. As I've...
15
by: vaib | last post by:
hi to all.i'd like to know the actual difference between variable declaration and definition.it would be very helpful if anyone out there wud help me out with this thing.i'm writing here after here...
275
by: Astley Le Jasper | last post by:
Sorry for the numpty question ... How do you find the reference name of an object? So if i have this bob = modulename.objectname() how do i find that the name is 'bob'
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.