You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have just started using your xml_code_generator as well as miniML parser in my project and I received compilation error in the *.c and *.h file generated by xml_code_generator.
When I assign same complex type to two elements, the tool generates same structures twice. Similarly, if I use 3 elements of same complextype, it generates 3 structures with same names for each of my elements.
To make it work: I had to remove extra definitions of same structure from both .c and .h files.
But I do not want to edit it every time I generate files from tool. Is there a solution to it?
I am attaching the generated files as well as my .xsd and .xml files.
I have gone through your sample XML schema file and generated source files.
A quick solution is to slightly modify complexType "RootElementType" element, as shown in the below snippet.
<xs:complexTypename="RootElementType">
<xs:sequence>
<xs:elementname="Element" type = "ElementType"minOccurs="2"maxOccurs="2"/>
</xs:sequence>
</xs:complexType>
Hi Kiishor,
I have just started using your xml_code_generator as well as miniML parser in my project and I received compilation error in the *.c and *.h file generated by xml_code_generator.
When I assign same complex type to two elements, the tool generates same structures twice. Similarly, if I use 3 elements of same complextype, it generates 3 structures with same names for each of my elements.
To make it work: I had to remove extra definitions of same structure from both .c and .h files.
But I do not want to edit it every time I generate files from tool. Is there a solution to it?
I am attaching the generated files as well as my .xsd and .xml files.
RootElement.c.txt
RootElement.h.txt
Sample.xml.txt
Sample.xsd.txt
The text was updated successfully, but these errors were encountered: