Free Support Forum - aspose.com

<Table/> vs. <Table></Table>

I’ve discovered that:



will cause errors saying that tags coming after this “Unknown sub element in Table element. The element name is …”.

Yet when I replace the above with this seemingly equivalent code:



Everything works fine.

Is this a bug or a feature?
This isn’t standard XML, is it? I thought that the above were supposed to have the same meaning.

Thanks,
Edward


------------- Here is the full code if you want to reproduce the error:

<?xml version="1.0" encoding="UTF-8"?>













The Company Name







This is the body of the report.




page $p






Dear Edward,

Thank you for considering Aspose.

In the XML design of Aspose.Pdf, elements which has no sub-elements such as can use ,but elements which has sub-elements such as

can’t use
. Please use
currently. I will consider support < /> for all elements later.