473,323 Members | 1,570 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,323 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>[code]
l've been working on since a week, but still doesn't work,
Please any idea
thanks
Jun 14 '07 #1
0 926

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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.