[Simple-support] is the a way to write an object with a different tag name and addition attributes?
Brought to you by:
niallg
|
From: -=}\\*/{=- <rui...@gm...> - 2012-03-16 01:56:52
|
hi,
I'm writing a converter that uses a different persister to write the child
nodes.
something like: CAMEL_CASE_PERSISTER.write(obj, on)
this will write an element for the obj, using as tag name the class name.
is it possible to customize that name?
if not, or is far more complicated, could you add
a method like:
CAMEL_CASE_PERSISTER.write(obj, on, "tagName") ?
... or like:
CAMEL_CASE_PERSISTER.write(obj, on.getChild("tagName"), boolnLineTrue) ?
notice that we can read the object directly from an element, disregarding
the tag name, and providing the class using:
CAMEL_CASE_PERSISTER.read(objC, in)
i'm using that feature for reading and expected to be able to do also for
writing.
when reading i can also read extra attributes, but not write them...
since write(obj, on) does not return the node for edition, neither allow
pre-edition.
[thank you] rui
|