Hi,
Iīm a bit of a newbie when it comes to xml but here goes:
I am using the SignedXml-class to construct a signed xmldoc which in turn
contains 1 or more signed xml-doc which creates the following structure
(edited of course):
<Signature xmlns:xd="Whatever">
<Object Id="A uri">
<Signature>
<Object Id="Another uri">My data</Object>
</Signature>
</Object>
</Signature>
My problem occurrs when try to use xsd.exe to create a schema for this. I
get the following error message:
- The table (Signature) cannot be the child table of itself in nested
relations
However if I remove the outer Object-tags (generated by SignedXml.AddObject)
it creates a schema without a problem.
1. Does anybody have a simple explanation for this?
2. Is there a way to remove the object tags and move the Id-attribute to the
next line (using XmlDocument,SignedXml or any other class)
3. Iīm guessing that xsd.exe performs some sort of check if the xml is
valid. Is this xml considered to be valid?
Thanks in advance
Jon