<div dir="ltr"><div>What I'm writing is a mathml parser / writer.</div><div>I'm working over here: <a href="https://gerrit.libreoffice.org/c/core/+/120116" target="_blank">https://gerrit.libreoffice.org/c/core/+/120116</a></div><div><br></div><div>I'm trying to implement it with infinite depth (as long as you have enough memory).</div><div>Preferably efficient since it's gonna be called each time the user presses a key.</div><div><br></div><div>There are two modes:</div><div> - from file ( save/write )<br></div><div> - from buffer ( text box containing the code -> get OUString )<br></div><div><br></div><div>It is part of a project of making starmath full mathml compatible.</div><div>It will use mathml if the textbox contains the following: <?xml version="1.0" encoding="UTF-8"?><br></div><div><br></div><div>I've already implemented the io stuff thanks to your advice with the memory stream.</div><div>You can check it out if you want.<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El sáb, 7 ago 2021 a las 13:01, Tomaž Vajngerl (<<a href="mailto:quikee@gmail.com" target="_blank">quikee@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Dante,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 7, 2021 at 7:21 PM Dante Doménech <<a href="mailto:dante19031999@gmail.com" target="_blank">dante19031999@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"><div dir="ltr"><div>Hello. I'm working right now at something that requires to be able to parse xml from and to a string / ustring ( or other as long as I can get back the string ) and does not pass by a file (just wasting writes of the harddisk and a performance issue). <br></div></div></blockquote><div><br></div><div>Why not a SvMemoryStream instead of an OString (and definitely not an OUString)? <br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div><br></div><div>I'm using SvXMLExport and SvXMLImport.</div></div></blockquote><div><br></div><div>For lightweight XML writing and parsing (small size, non performance critical, no strict schema, non-parallel parsing) I prefer tools::XmlWriter and tools::XmlWalker, which are just wrappers around libxml2. You didn't describe what you want to use it for so it is hard to judge if it is appropriate or not. <br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>If you know where in the code is an example it is also good.<br></div></div></blockquote><div> </div><div>See the tests in tools.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div><br></div><div>Thank you for your time.<br></div></div></blockquote><div><br></div><div>Regards, Tomaž <br></div></div></div>
</blockquote></div>