473,403 Members | 2,323 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,403 software developers and data experts.

Parse a DTD from JAXP (or some other Java)

Hi,

I need to know all element and attribute declarations in a DTD. It must
work with -- what are they called, genral entity references, too; that
is, if the DTD is partitioned into several files, I want all
declarations in all of them.

Does anyone know a clever way of extracting DTD information from the
standard JAXP / SAX XML parsers that come with Java? I can't quite find
any handler interfaces that have to do with declarations, but again I
just need to extract the declarations in a way where I can fish out
content models, etc.

In case not, all right; I need to use someone else's code libraries
then. I know com.wutka's DTD parser. That's the one I want to replace. I
have taken a look at Woodstox (http://woodstox.codehaus.org/), which can
apparently do all I want, but is a slight overkill: I'd rather not have
one more complete XML processor, but just use what I alrady have.

Thanks for any feedback.

Soren
Apr 21 '06 #1
0 1139

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: PC | last post by:
It's obvious, that Windows XP has a Java 2 VM (including the SWING-module), because we can all run Java 2 applets in Internet Explorer. But what about the support for Java 2 Applications? I...
4
by: David Moss | last post by:
I was given a Compaq pocket PC with windows mobile 2002. I immediately began looking into how to program it and Java seemed initially to be a good choice. To my surprise I found it wasn't as...
6
by: Rhino | last post by:
I am writing Java UDFs using DB2 V8.2 (Fixpack 8) on Windows XP. I would like to create some common code classes that are visible to the UDFs on my system but I'm not having a lot of luck so far....
458
by: wellstone9912 | last post by:
Java programmers seem to always be whining about how confusing and overly complex C++ appears to them. I would like to introduce an explanation for this. Is it possible that Java programmers...
3
by: stéphane bard | last post by:
hello i would like to parse java files an detect class name's, attributes name's type's and visibility (and or list of methods). is there any module who can parse easily a java file without...
2
by: rajeshkankran | last post by:
Hi I m getting problem in parsing responseXml object returned by asp in ajax implementation....... when i use responseText it shows whole xml file.... but when use responseXml.....it shows null...
2
eyeofsoul
by: eyeofsoul | last post by:
hello..i am having a difficulties in calling the function in other file. for example..this is the file that use xxx.java; package netbean5test; import netbean5test.xxx; import java.awt.*;...
66
by: flarosa | last post by:
Hi, I'm wondering if I can get a reasonably civil (without starting any huge wars) opinion on how server-side PHP compares to server-side Java. I've been strictly a Java developer for almost...
0
by: hockeydave007 | last post by:
I am using jaxb to create my java class and I would like the created class to have additional attributes like: extends java.io.Serializable implements my.com.Interface <xs:complexType...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.