DTD in Project X TR1

DTD in Project X TR1

Post by Sean Bechhof » Fri, 19 Mar 1999 04:00:00



Hi.

I'm using XML to represent some bits of data that I'm passing between
a server and a client. They're actually bits of abstract syntax tree
representing some expressions, but that's not really important here. I
have a DTD which describes what the format of the expressions should
be.

So my XML data looks something like:

<?xml version="1.0"?>
<!DOCTYPE EXPR SYSTEM "expr.DTD">
<EXPR>
...
</EXPR>

I have a couple of questions.

1) I'd like to validate the XML. How do I get the parser to look the
DTD up in some external catalogue? Say I know that the DTD is
available from:

http://somehost/expr.dtd

I guess I use an EntityResolver, but I'm not quite sure how I go about
that.

2) I don't want to go away and have to look the DTD up *every* time I
get one of these things to parse, so is there a way I can pull the DTD
in once and then pass the parser some kind of in-memory object
representing the DTD?

I'm using Sun's Project X Technology Release 1 along with JDK
1.2. Thanks in advance for any assistance.

Cheers,

        Sean B

==========================================================================
| Sean Bechhofer               |                                         |
| Research Fellow              |                                         |
| Information Management Group |                                         |
| Computer Science Department  |                                         |

| Oxford Road                  | Tel: +44-161-275-6145                   |
| Manchester M13 9PL           | Fax: +44-161-275-6932                   |
|------------------------------------------------------------------------|
| WWW: http://potato.cs.man.ac.uk/seanb                                  |
==========================================================================

 
 
 

1. Job openings: Ovidius, Berlin (Germany) - Sales Engineer, Project Manager, Systems Engineers for SGML/XML projects

Ovidius is an SGML/XML systems integrator. We are focused on commercial and
technical publishing.

Ovidius is located in the center of Berlin. A good command of German is
required to
fill the positions.

********************   continued in German  *************************
Ovidius ist ein technologieorientierter Anbieter von SGML/XML Publishing
L?sungen in den Bereichen Technische Dokumentation, Verlagswesen,
Automotive, Neue Medien.

Wir suchen

* Sales Engineer / Berater (m/w)
* Projektleiter (m/w)
* Anwendungsentwickler Dokumentmanagementsysteme (m/w)
* Anwendungsentwickler Publishing Systeme (m/w)

Wir bieten ein freundliches Arbeitsklima, leistungsgerechte Bezahlung und
interessante Aufgaben.
Details: www.ovidius.com/jobs
Mail: jobs AT ovidius.com

Ovidius
Auguststra?e 34
10119 Berlin
Tel: 030 283089-0
Ansprechpartner: Klaus Fenchel

2. How to Stop all FP changing of hyperlinks

3. Workflow or Project DTD?

4. Thoughts on MKII Home CD Versions....

5. Is there a DTD for contractor project writeups

6. Change bars disappearing

7. xml dtd/schema and xsl transformation for (open source) projects

8. SMP + Windows 2000 Advance Server problems

9. Problems with DTD Path and Sun Project X Parser

10. DTD for personal Data and Projects

11. VS Add-Ins for XML

12. help with getting started on a project (oracle+xml)