I am wondering if you can access the resulting document during processing.
The reason I ask is because I am converting the input document and want to insert elements depending on some conditions, but this should have happened when I crossed the tree and I am almost ready to create it.
The converted xml looks something like this:
<xform>
<xforms>
<model>
<instance>
<data />
<data />
</instance>
</model>
<bind />
<bind />
<bind />
</xforms>
</xform>
I assume that during the conversion (before the above xml has been serialized), to access the tag <instance>and insert additional elements <data>.
Note
The input document is different from the above xml - the above xml is what the conversion should do.
, <xform> <bind>.
, (, 2 2 ):
<xform>
<xforms>
<model>
<instance>
<data />
<data />
<data>new data node</data>
<data>second new data node</data>
</instance>
</model>
<bind />
<bind />
<bind />
<bind>new bind node</bind>
<bind>second new bind node</bind>
</xforms>
</xform>
.
user626607