473,785 Members | 2,423 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1159

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

Similar topics

11
12258
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 would just like to run an application packed in a JAR-file on Windows XP: JavaProg.jar (Java Archive Resource). But without installing a SDK, i don't have an association of the JAR-file to be started with JAVAW, or the JAVA command to use 'java -jar...
4
4812
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 straightforward as Java for the desktop. Even finding a JRE for the PDA is a nightmare. The PC came with Jeode, a version of PersonalJava. PersonalJava is no longer supported by SUN.
6
2062
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. I'm wondering if I'm trying to do the impossible or if my technique is just wrong. One of the common code classes I want to write contains code to open, write and close a flat file that can be used for debugging. I'd like that class to be...
458
21482
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 simply aren't smart enough to understand C++? This is not merely a whimsical hypothesis. Given my experience with Java programmers --- the code they write and the conversations they have --- Occam's Razor points to this explanation. For example,...
3
8571
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 using (jython)?
2
2651
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 object... can u solve the problem....
2
3169
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.*; import java.awt.event.*; import javax.swing.*; //button
66
4691
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 10 years now, and I'm pretty happy with it. However, I can't help but notice that there are a significant amount of PHP-based development projects where I live, and I've also noticed when searching around the internet for ready-
0
1796
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 name="class-name"> translated to: public class ClassName extends java.io.Serializable { }
0
9646
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10157
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10096
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8982
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7504
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6742
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5386
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5514
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.