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].val ue == "bar"
or something similar?
/Klas
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].val
or something similar?
/Klas
ASKER
I'm not at all looking for an ordinary DOM
parser.
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?
I suspect you will be able to find the tool you want.
What id the DTD's name?
ASKER
The DTD is home made. Let's call it "foobar.dtd".
IBM have an XML parser at http://www.alphaworks.ibm.com/tech/xml4j
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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