Skip to content

Using complex type as type in more than one elements #27

@AsfaMehmood

Description

@AsfaMehmood

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions