Apologies in advance for what I'm sure will end up being a simple
obvious-in-hindsight question - my only real excuse is that I'm rather new
to all of this having been a C++ programmer on the embedded side in my last
incarnation.

I'm attempting to generate a set of .py classes from a pair of schema files
"Report.xsd" and "ReportEnumerations.xsd"

Traceback (most recent call last):
  File "generateDS-2.22a0\generateds.py", line 7082, in <module>
    main()
  File "generateDS-2.22a0\generateds.py", line 7070, in main
    processIncludes, options, args, superModule=superModule)
  File "generateDS-2.22a0\generateds.py", line 6622, in parseAndGenerate
    fixtypenames=FixTypeNames)
  File "S:\Wickett\XSD\generateDS-2.22a0\process_includes.py", line 83, in
process_include_files
    doc = prep_schema_doc(infile, outfile, inpath, options)
  File "S:\Wickett\XSD\generateDS-2.22a0\process_includes.py", line 302, in
prep_schema_doc
    doc1 = etree.parse(infile)
  File "lxml.etree.pyx", line 3427, in lxml.etree.parse
(src\lxml\lxml.etree.c:79720)
  File "parser.pxi", line 1803, in lxml.etree._parseDocument
(src\lxml\lxml.etree.c:116182)
  File "parser.pxi", line 1823, in lxml.etree._parseFilelikeDocument
(src\lxml\lxml.etree.c:116474)
  File "parser.pxi", line 1718, in lxml.etree._parseDocFromFilelike
(src\lxml\lxml.etree.c:115235)
  File "parser.pxi", line 1139, in
lxml.etree._BaseParser._parseDocFromFilelike (src\lxml\lxml.etree.c:110109)
  File "parser.pxi", line 573, in
lxml.etree._ParserContext._handleParseResultDoc
(src\lxml\lxml.etree.c:103323)
  File "parser.pxi", line 683, in lxml.etree._handleParseResult
(src\lxml\lxml.etree.c:104977)
  File "parser.pxi", line 613, in lxml.etree._raiseParseError
(src\lxml\lxml.etree.c:103886)
lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1,
column 1

Report.xsd includes the latter enumerations:

  <xs:include schemaLocation="ReportEnumerations.xsd" />

Could this be the root of the problem?

I've played around with the file locations with respect to the paths but no
luck.

Any advice would be much appreciated.

Thanks!
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to