<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE></TITLE>
<META content="MSHTML 6.00.2900.3268" name=GENERATOR></HEAD>
<BODY><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2><SPAN class=602081016-18042008>Does anyone have any
idea how to get the GReAT Code Generator to read the tags of a XML file? The GR
engine works just fine, but when using the Code Generator I get the following
error: </SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN class=602081016-18042008>Error during parsing:
'myXMLFile.xml'. Exception message is: <BR>Error at file 'C:\myXMLFile.xml',
<BR>line 2, column 126. Message: Unknown element
'interfaceList'</SPAN></FONT></P>
<P><FONT face=Arial size=2>I am working on adding data from an XML file to GME
model using GReAT. The XML file was exported from a Excel spreadsheet so it is
of the form:</FONT></P>
<P><FONT face=Arial size=2><interfaceList></FONT>
<BR> <FONT face=Arial
size=2><interface></FONT> <BR>
<FONT face=Arial
size=2><name></FONT> <BR>
<FONT face=Arial size=2>A model
name</FONT> <BR>
<FONT face=Arial
size=2></name></FONT> <BR>
<FONT face=Arial
size=2><attribute></FONT> <BR>
<FONT face=Arial
size=2> A model
attribute</FONT> <BR>
<FONT face=Arial
size=2></attribute></FONT> <BR>
<FONT face=Arial size=2></interface> </FONT><BR><FONT face=Arial
size=2><interfaceList></FONT> </P>
<P><FONT face=Arial size=2>Of course I made this XML file ready for GReAT<SPAN
class=602081016-18042008>-</SPAN>use by translating it into this form:</FONT>
<BR><FONT face=Arial size=2><?xml version="1.0" encoding="UTF-8"
standalone="yes" ?> </FONT><BR><FONT face=Arial size=2><interfaceList
xmlns:xsi="<A href="http://www.w3.org/2001/XMLSchema-instance"><FONT
color=#000000>http://www.w3.org/2001/XMLSchema-instance</FONT></A>"
xsi:noNamespaceSchemaLocation="MyXMLSchema.xsd"></FONT>
<BR> <FONT face=Arial
size=2><interface name="A model name" attribute="A model attribute"
/></FONT> <BR><FONT face=Arial size=2></interfaceList></FONT> </P>
<P><FONT face=Arial size=2>Where "MyXMLSchema.xsd" is the name of the package
that models the XML data in my UMLModelTransformer.</FONT> <BR><FONT
face=Arial><FONT size=2>I have my transform working pretty well, and am able to
run <SPAN class=602081016-18042008>it</SPAN> without error using the GR
engine.<SPAN class=602081016-18042008> However, I would like to run this
transform using the Code Generator because it is "10 to 100X faster" than the GR
engine. When I do this, my XML file cannot be read. Again, the GR engine reads
the file just fine, but running it using Code Generator results in the Unkown
element 'interafaceList' error.</SPAN></FONT></FONT><FONT><SPAN
class=602081016-18042008></P>
<P><FONT face=Arial size=2>I<SPAN class=602081016-18042008> was getting this
very same error when I was using the GRE engine, but changing the opening tag
from:</SPAN></FONT></P>
<P><FONT><SPAN class=602081016-18042008></SPAN><SPAN
class=602081016-18042008></SPAN><FONT face=Arial size=2><<SPAN
class=602081016-18042008>interfaceList></SPAN></FONT></FONT></P>
<P><FONT><FONT><SPAN class=602081016-18042008></SPAN><SPAN
class=602081016-18042008></SPAN><FONT face=Arial size=2>t<SPAN
class=602081016-18042008>o </SPAN></FONT></FONT></FONT></P>
<P><FONT><FONT><FONT face=Arial size=2><SPAN
class=602081016-18042008><interfaceList xmlns:xsi="<A
href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</A>"
xsi:noNamespaceSchemaLocation="MyXMLSchema.xsd"><FONT face="Times New Roman"
size=3> </FONT><BR></SPAN><BR><SPAN class=602081016-18042008>solved this
problem. The error I get when using the Code Generator seems to indicate
that I should modify this opening tag so that the file can be read. Any
ideas would be appreciated.</SPAN></FONT></FONT></FONT></P>
<P><FONT><FONT><FONT face=Arial size=2><SPAN
class=602081016-18042008>Thanks,</SPAN></FONT></FONT></FONT></SPAN></FONT></P>
<P><FONT face=Arial size=2>Brian Partridge</FONT> <BR><FONT face=Arial
size=2>Intern</FONT> </P></BODY></HTML>