RISCSoftware / cpacs_tigl_gen

Generates CPACS schema based classes for TiGL
Apache License 2.0
5 stars 5 forks source link

XSD code documentation using CDATA causes error message #46

Closed MarAlder closed 2 years ago

MarAlder commented 2 years ago

Hi,

CPACS 3.4 employs CDATA to improve the XSD documentation (see sandcastle documentation) by encapsulating XML snippets, e.g.:

<ddue:code language="XML" title="CPACS header">
    <![CDATA[
<cpacs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="pathToSchemaFile/cpacs_schema.xsd">                                            
    ]]>
</ddue:code>

grafik

This causes an Error: Invalid XPath expression "..." Invalid Expression when generating the code. I think it comes from TiXI.

RlanderRISCSW commented 2 years ago

added support for cdata entries during schema parsing, error should be fixed now