Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Paolo F Cantoni on August 21, 2005, 06:57:44 am

Title: Debugging XSD and XML
Post by: Paolo F Cantoni on August 21, 2005, 06:57:44 am
Hi,

I've created a (what I think is a) large XSD specification (57Kb).  It represents the UML metamodel which I am emitting from EA.  I've created it with XMLSpy and I'm trying to use it with CodeSmith. I can create a CodeSmith template and reference structures within the XSD in the template.

I have checked the validity of the XSD specification both with XMLSpy and XSD.exe.  Both agree there isn't anything wrong.

However, when I try to access an XML file supposedly built to the specification (which I've emitted from EA), CodeSmith says it can't reflect the topmost type (UMLPlus), because there was an error reflecting the topmost element (Project).

XMLSpy says the the XML file is OK.

However, I have noticed that XMLSpy (v4.4) is not as rigorous as XSD in it's self checking of the XSD.  So it's quite possible there's an internal error in the (quite) complicated XSD that's stopping CodeSmith from unravelling the XML.

Can anyone suggest another mechanism for trying to determine where the problem might be?  I don't think its in CodeSmith, I think there's a problem in the XSD, but I'm not getting enough information from CodeSmith to figure out where the problem is.

BTW, A previous version of the XSD was 55Kb  and was able to be processed by CodeSmith, together with the associated XML file.  I've made quite a few changes and added support for recursive packages ( the Model, View and Package types).

TIA,
Paolo
Title: Re: Debugging XSD and XML
Post by: Oliver Michalski on September 06, 2005, 07:17:45 am
Hi Paolo,

try rsXMLTest  

http://www.ramseysystems.co.uk/rsXMLTest/

Oliver  :)
Title: Re: Debugging XSD and XML
Post by: Paolo F Cantoni on September 06, 2005, 12:24:20 pm
Quote
Hi Paolo,

try rsXMLTest  

http://www.ramseysystems.co.uk/rsXMLTest/

Oliver  :)
Thanks Oliver, I'll give it a try...
Paolo