xml building toolkit?

E

Elhanan

hi..

i wanna develop a classsobject model what can generate a certiain xml
strcutre as well as reading it. now the xml is rather compelx, it
dosn't have an element with attibutes to denote class and proerties,
but an element which has another element which has another element
which then has another element which could be a string or number or
fraction (the element itself has a different name like <StringValue ..
or <SingleValue..

this dom must also presist this data in normlized tables.

can hibernate help me in this regard?

how i would handle the different value elements, at first i thought
about creating a common interface for their common attributes and
emplement a different class for each one but then the main value
property must be different for each one ? (unless i'll use object
property for everyone and throw an exception mismatch at run-time).
each basic value element as different sets of properties.


an example xml would

<BigElement ...
<GroupAtributes...
<Attribute...
<StringValue ...
</Atribute>
</GroupAttributes>
</BigElement>


<BigElement2 ...
<GroupAtributes...
<Attribute...
<SingleValue ...
</Atribute>
</GroupAttributes>
</BigElement2>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top