Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert DTD?

Status
Not open for further replies.

LPent

Programmer
Oct 3, 2002
50
TR
Is there any way one can convert the xhtml dtd's into a filetype that can be read by a database (like access)? Or is hand-conversion the only way?
 
I'm not entirely sure what you mean. A DTD is just plain text.

What exactly do you want to do?



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
I want to convert the xhtml-dtd of W3C into a relational database (xhtml elements and attributes).
 
Interesting, in that case no. You{ll have to insert them manually, as even though it is text, there is no way for the DB to know what you want to store as fields and values.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
So you want to read a document like , and somehow store its content in a database?

It should be possible to write a program to parse a DTD file, it's a machine-readable format after all, but it's not a simple job. If you were to find an XML Schema representation of the document instead it would be easy(ish) to read the file - but still non-trivial to do anything with it.

What are you intending to achieve with this DTD-into-database procedure?

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Since it has been established that there's no HTML or CSS issues here, I think now would be a good time to take this question to a more appropriate forum (i.e. the forum for whatever language will be used to read / parse the DTD).

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top