Book a Demo

Author Topic: Debugging XSD and XML  (Read 4881 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Debugging XSD and XML
« 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
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Oliver Michalski

  • EA User
  • **
  • Posts: 116
  • Karma: +0/-0
    • View Profile
Re: Debugging XSD and XML
« Reply #1 on: September 06, 2005, 07:17:45 am »
Hi Paolo,

try rsXMLTest  

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

Oliver  :)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Debugging XSD and XML
« Reply #2 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
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!