I am curious to know if there is any way that I can have more control
over character encodings in the resulting XML produced by the XMLTag
toString() method.
For example, most of the time xmltool will output what I would usually
expect. For example,
<hint>only numbers > 10.51 and < 18.39</hint>
becomes
<hint>only numbers > 10.51 and < 18.39</hint>
But sometimes, I have an XML doc that includes something like
<label>review widget. is your email still <output
value="/widgets/regex"/>?</label>
and when this string is parsed and then written out again it becomes
<label>review widget. is your email still <output
xmlns="http://www.w3.org/2002/xforms" value="/widgets/regex"/>?</label>
which is definitely not what I am looking for.
I would appreciate any suggestions you might have for working around
this problem.
Thanks,
Matt
> the trick would be to create another XMLTag in an existing one
This solution worked perfectly once I disabled namespaces for the XMLDoc
in tag.addTag(). Thank you very much!
Matt