Good day,
I am sorry if this topic is very similar to this.
I am not able to get my head around on how to deserialize a string into Y.XmlFragment.
I have a bunch of strings received this way:
yDoc.getXmlFragment('default').toString();
And now I want to transform it back to XmlFragment instance, however, I do not see such function in docs.
String example is this:
<paragraph>This text:</paragraph>
<bulletlist><listitem><paragraph>is without</paragraph></listitem></bulletlist>
(I understand it should / could be wrapped with additional element.)
I tried parsing xml from string and gather the xml elements and xml texts into xml fragment manually, but I am not able to collect it correctly. So I was thinking it must be some easier way, since serialization is available, maybe there is deserialization available as well?
Tried reading source code, but still could not spot anything.
Would appreciate some insights.