On 25.11.2021 10:50, Joshua Immanuel wrote:
Checking the content I found that the content doesn't seems to be standard XML. Eg: <text:p text:style-name="P1"> Sample <text:span text:style-name="T3">a</text:span> <text:span text:style-name="T14">dmission</text:span> format </text:p> ... Shouldn't the original XML be in one of the below format? <text:p text:style-name="P1"> <text:span text:style-name="blah">Sample</text:span> <text:span text:style-name="T3">a</text:span> <text:span text:style-name="T14">dmission</text:span> <text:span text:style-name="blah2">format</text:span> </text:p> OR <text:p text:style-name="P1"> Sample application format </text:p> OR <text:p text:style-name="P1"> <text:span text:style-name="blah">Sample admission format</text:span> </text:p> Is there any reasoning behind this? Am I missing something here? Someone please enlighten me.
Text is perfectly standard content of XML nodes; OpenDocument schema [1] allows text to appear any number of times at any position inside text:p.
[1] https://docs.oasis-open.org/office/OpenDocument/v1.3/os/schemas/OpenDocument-v1.3-schema-rng.html#text-p
-- Best regards, Mike Kaganski