<?xml version="1.0" encoding="UTF-8"?>
<xliff
version="1.2"
xmlns="urn:oasis:names:tc:xliff:document:1.2"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns:xhtml="
http://www.w3.org/1999/xhtml"
xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2
http://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd"
xml:space="preserve">
<file original="course" datatype="plaintext" source-language="en">
<body>
<trans-unit id="title">
<source><g id="OM8yb5YAQPy5hIZv" ctype="x-html-DIV"><g id="7R40RZFRq3TscI7x" ctype="x-html-P"><g id="ZJoV0rK2AEV2uPz2" ctype="x-html-SPAN"><g id="BGwkKQLcYN98BDPw" ctype="x-html-SPAN"><g id="ZDPhBeXPT0ZWekdK" ctype="x-html-STRONG">In this section you will explore:</g></g></g></g><g id="a1hu2ABRv4OY5fn0" ctype="x-html-UL"><g id="d5-Nyp0LLXv30dON" ctype="x-html-LI"><g id="sQNc1L_m8Ie9nfad" ctype="x-html-P"><g id="ShzPhjImi_54-JpD" ctype="x-html-SPAN"><g id="Z-zy4_n3vm4SNjrJ" ctype="x-html-SPAN">practical actions organizations can adopt to improve access for specific client groups</g></g></g></g><g id="EMykphlMsjMMoJ5x" ctype="x-html-LI"><g id="zNUePa7MOacx7a5L" ctype="x-html-P"><g id="Xwc7OatpIGvILvKb" ctype="x-html-SPAN"><g id="jSbPDrNbQZ28vyRv" ctype="x-html-SPAN">ways you can support positive change within your own organization</g></g></g></g></g><g id="fqErVl_UFSCewsqq" ctype="x-html-P"><g id="wawhcK9Jue-bOu0V" ctype="x-html-SPAN"><g id="xLcClkrUtkgWsMYN" ctype="x-html-SPAN"><g id="Hfx3AlTYTkmJqFwU" ctype="x-html-STRONG">Estimated duration:</g></g></g>15<g id="ea_hK835aRCgsTQY" ctype="x-html-SPAN"><g id="qlzj0sE91YooNgUQ" ctype="x-html-SPAN">minutes</g></g></g></g></source>
</trans-unit>
</body>
</file>
</xliff>
when I parse it with tikal I am getting this (so, everying is on one line and tags are too many:
<g id="1467927090"><g id="341342541"><g id="740432653"><g id="1679445581"><g id="1314790659">In this section you will explore:</g></g></g></g><g id="1664881239"><g id="
2102711583"><g id="988469476"><g id="80573545"><g id="1880943220">practical actions organizations can adopt to improve access for specific client groups</g></g></g></g><g id="513058904"><g id="1466285517"><g id="1481946451"><g id="506727249">ways you can support positive change within your own organization</g></g></g></g></g><g id="275865457"><g id="1311635365"><g id="1886478644"><g id="191012528">Estimated duration:</g></g></g>15<g id="1218576014"><g id="415849855">minutes</g></g></g></g>
Is there anyway to split after <g id=".*?" ctype="x-html-P">
A quick solution is to add a new line character after this pattern so that tikal exprts me the right format, which is this one:
<bx id="1467927090"/><bx id="341342541"/>
<g id="740432653"><g id="1679445581"><g id="1314790659">In this section you will explore:</g></g></g><ex id="341342541"/>
<bx id="1664881239"/><bx id="
2102711583"/><bx id="988469476"/>
<g id="80573545"><g id="1880943220">practical actions organizations can adopt to improve access for specific client groups</g></g><ex id="988469476"/><ex id="
2102711583"/>
<bx id="513058904"/><bx id="1466285517"/>
<g id="1481946451"><g id="506727249">ways you can support positive change within your own organization</g></g><ex id="1466285517"/><ex id="513058904"/><ex id="1664881239"/>
<bx id="275865457"/>
<g id="1311635365"><g id="1886478644"><g id="191012528">Estimated duration:</g></g></g>15<g id="1218576014"><g id="415849855">minutes</g></g><ex id="275865457"/><ex id="1467927090"/>
This is exported from this XLF
<?xml version="1.0" encoding="UTF-8"?>
<xliff
version="1.2"
xmlns="urn:oasis:names:tc:xliff:document:1.2"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns:xhtml="
http://www.w3.org/1999/xhtml"
xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2
http://docs.oasis-open.org/xliff/v1.2/os/xliff-core-1.2-strict.xsd"
xml:space="preserve">
<file original="course" datatype="plaintext" source-language="en">
<body>
<trans-unit id="title">
<source><g id="OM8yb5YAQPy5hIZv" ctype="x-html-DIV"><g id="7R40RZFRq3TscI7x" ctype="x-html-P">
<g id="ZJoV0rK2AEV2uPz2" ctype="x-html-SPAN"><g id="BGwkKQLcYN98BDPw" ctype="x-html-SPAN"><g id="ZDPhBeXPT0ZWekdK" ctype="x-html-STRONG">In this section you will explore:</g></g></g></g><g id="a1hu2ABRv4OY5fn0" ctype="x-html-UL"><g id="d5-Nyp0LLXv30dON" ctype="x-html-LI"><g id="sQNc1L_m8Ie9nfad" ctype="x-html-P">
<g id="ShzPhjImi_54-JpD" ctype="x-html-SPAN"><g id="Z-zy4_n3vm4SNjrJ" ctype="x-html-SPAN">practical actions organizations can adopt to improve access for specific client groups</g></g></g></g><g id="EMykphlMsjMMoJ5x" ctype="x-html-LI"><g id="zNUePa7MOacx7a5L" ctype="x-html-P">
<g id="Xwc7OatpIGvILvKb" ctype="x-html-SPAN"><g id="jSbPDrNbQZ28vyRv" ctype="x-html-SPAN">ways you can support positive change within your own organization</g></g></g></g></g><g id="fqErVl_UFSCewsqq" ctype="x-html-P">
<g id="wawhcK9Jue-bOu0V" ctype="x-html-SPAN"><g id="xLcClkrUtkgWsMYN" ctype="x-html-SPAN"><g id="Hfx3AlTYTkmJqFwU" ctype="x-html-STRONG">Estimated duration:</g></g></g>15<g id="ea_hK835aRCgsTQY" ctype="x-html-SPAN"><g id="qlzj0sE91YooNgUQ" ctype="x-html-SPAN">minutes</g></g></g></g></source>
</trans-unit>
</body>
</file>
</xliff>
Thanks