<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 27, 2021 at 11:30 AM Jefferson Carpenter <<a href="mailto:jeffersoncarpenter2@gmail.com">jeffersoncarpenter2@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I guess another possibility would be to write two vtables: one for <br>
IStream and String, and another for IDOMDocumnt, and assign the vtable <br>
during put_output.<br>
<br>
(I'm half joking, it would run properly but swapping out vtables is not <br>
something I've ever heard of)<br></blockquote><div><br></div><div>Yes, that would be better. You don't need to swap actual interface vtables, you'll need to come up with a set of functions</div><div>that would be called internally from SAX methods, and then you can have multiple implementations of those.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
thanks,<br>
Jefferson<br>
<br>
On 2/26/2021 10:49 PM, Jefferson Carpenter wrote:<br>
> nsivov,<br>
> <br>
> Regarding implementation in mxwriter, do you think it would be all right <br>
> to add switch statements and use an enum for output type like I did <br>
> here, or do you think another way would be more suitable?<br>
> <br>
> Thanks,<br>
> Jefferson<br>
</blockquote></div></div>