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

DTD is not working or validate the XML file Plz tell me what is the mistake?

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" ?> 
  2. <!DOCTYPE note [
  3.   <!ELEMENT note (to,from,heading,body)>
  4.   <!ELEMENT to      (#PCDATA)>
  5.   <!ELEMENT from    (#PCDATA)>
  6.   <!ELEMENT heading (#PCDATA)>
  7.   <!ELEMENT body    (#PCDATA)>
  8. ]>
  9. <note>
  10. <to>Tove</to> 
  11. <from>Jani</from> 
  12. <heading>Reminder</heading> 
  13. <message>Don't forget me this weekend!</message> 
  14. </note>
Oct 24 '09 #1
1 1727
Dormilich
8,658 Expert Mod 8TB
what do you mean? is the DTD telling you the file is valid (which is wrong) or is it telling that the file is invalid (which is true)?
Oct 25 '09 #2

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

Similar topics

3
by: Pernell Williams | last post by:
Hi all: I am new to Python, and this is my first post (and it won't be my last!), so HELLO EVERYONE!! I am attempting to use "xreadlines", an outer loop and an inner loop in conjunction with...
2
by: Chris McAvoy | last post by:
Is this a bug? (file is an open text file): >>> for i in range(0,5): .... var = file.next() .... file.tell() .... 1675L 1675L 1675L 1675L
2
by: Paul | last post by:
I need to insert a row into a table in SQL Server 2000. The primary key for the row is an identity type, so it auto-numbers for me without needing to put in the value in the insert statement. ...
6
by: BR | last post by:
Is there a way to tell what exe is using which version of a .dll in the gac?
2
by: UJ | last post by:
When you are unloading a page, is there anyway to tell what the next page is going to be that you load? TIA.
2
by: venkatesh | last post by:
hai , i am using turboc++ compiler to run my c program. i written an program with structure sa foolws struct s { float x; }y; when i am accessing the variable x it shows the following error...
4
by: Axter | last post by:
Sorry for OT question, but does any one have a working *.bat file to get Comeau to work with VC++ 7.1, VC++ 8.0, or GNU 3.x compilers. I've tried everything I can think off, to get it to work,...
1
by: jobs | last post by:
Is there a way or an attribute I can set so that the selected page number in paging is a different color or is underlined? perhaps it's my skin or css, but In my gridviews I can't tell what page we...
0
by: wildman | last post by:
Any way to tell what DLLs have been registered in a web project? I know I can browse available objects, but how can I tell which ones where manually registered into the project? Thanks for any...
7
by: =?Utf-8?B?UGF1bA==?= | last post by:
I have a javascript that I am setting a value of a textbox in and have the following document.forms.textbox1.value = total; I get a run time error null value but I think the problem is the form...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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:
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...

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.