Link to home
Start Free TrialLog in
Avatar of eklas
eklas

asked on

High level java DOM access

Hi

A heard some rumours about a high level DOM tool for java.
If I have an XML doc like:
<article>
<section>foo</section>
<section>bar</section>
</article>

Does anyone know of tool that can give me java classes to
access the XML data above like:
article.sectionList[2].value == "bar"
or something similar?

/Klas
Avatar of anita_c
anita_c

Java got a DOM parser you could downloade from sun's homepage www.java.sun.com

but it's a bit more complicated than that... The parser can give you an tree that is similar to your xml structure. Everything is considered a node or an element and there is a bunch of methods that can be used
Avatar of eklas

ASKER

I'm not at all looking for an ordinary DOM
parser.
providing the DTD of your XML articles,
I suspect you will be able to find the tool you want.
What id the DTD's name?
Avatar of eklas

ASKER

The DTD is home made. Let's call it "foobar.dtd".
ASKER CERTIFIED SOLUTION
Avatar of yanchou
yanchou

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial