Hello,
 
I am working with Xercesc 2.7.0 in a VxWorks environment. In general it works 
fine
but there is a problem with one certain XML-file, where the parser does not 
return, i.e. it looks
like the parser runs into an endless loop. The schema file has some type 
definitions for
elements (e.g. "Dig_InOut_Type"). These elements are not generally required and 
in the
attached XML file they are missing (see comments starting with "e.g."). 
XML and schema file are set up with XML Spy. 
I tried to parse this file with the Xercesc Windows version and the behaviour 
is the same.
Is this a known problem ? What may be wrong with my code ?
Attached is the source code for parsing and the XML and Schema file.
 
Regards
Jörg
<?xml version="1.0" encoding="UTF-8"?>
<!--*******************************************************************    			-->
<!--                                                                       							-->
<!--Kernel System  IO-Application                                          				-->
<!--                                                                       							-->
<!--Filename:    KRC_IO.xml                                               				-->
<!--                                                                       							-->
<!--Copyright (C) 2006 KUKA Controls GmbH -  Alle Rechte vorbehalten -->
<!--*******************************************************************    			-->
<!--                                                                       							-->
<!--Description: IO application configuration                              			-->
<!--                                                                       							-->
<!--*******************************************************************    			-->
<!--{{[CL]                                                                 							-->
<!--                                                                       							-->
<!--*******************************************************************    			-->
<!--                                                                       							-->
<!-- When          Programmer          Reviewer                              			-->
<!--                   What                                                   						-->
<!-- - - - - -        - - - - -                    - - - -                    							-->
<!-- 1.12.2006   Zurbau, Graf           none                    							-->
<!--                  Creation                                                                     -->
<!-- 27.03.2007 Zurbau, Graf           none                    							-->
<!--                  IO-Linking, Trigger/Stream Support                               -->
<!-- 27.03.2007 Zurbau		           none                    							-->
<!--                  Global types defined in xsd	 										-->
<!--                  segment_ID -> segmentID 	 										-->
<!--*******************************************************************    			-->
<!--[CL]}}                                                                 							-->
<!--EndOfHeader-->
<Application kukaVersion="1.0.1" xsi:noNamespaceSchemaLocation="KRC_IO.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
	<!--*** KRC_IO.xml ***-->
	<ProcessData>
		<!-- e.g. <Segment drvName="DevIODriver" busInstanceName="X-BUS" byteOffset="0" byteSize="1" segmentID="100">
					</Segment>-->
	</ProcessData>
	<Mapping>
		<Output>
			<!--*** Indirektions-Array  fuer $OUT ***-->
			<Digital>
				<!--e.g. <Out krcStartIndex="1" segmentID="100">
								<Start segmentByteOffset="0" segmentBitOffset="0"/>
								<End segmentByteOffset="0" segmentBitOffset="7"/>
							</Out> -->
			</Digital>
			<Analog>
				<!--e.g. <Anout krcIndex="5" segmentID="201">
								<Start segmentByteOffset="0" segmentBitOffset="0"/>
								<End segmentByteOffset="1" segmentBitOffset="1"/>
								<Format type="signed"/>
							</Anout> -->
			</Analog>
		</Output>
		<Input>
			<!--*** Indirektions-Array  fuer $IN ***-->
			<Digital>
			</Digital>
			<Analog>
			</Analog>
		</Input>
		<IOLinking>
			<!--*** KRC: IO-Linking ***-->
			<!--e.g. <IOLink krcInputIndex="1" krcOutputIndex="24"> -->
		</IOLinking>
	</Mapping>
	<Options>
		<DataIntegrity value="true"/>
		<NrOfInOut value="4096"/>
		<Trigger>
			<!-- e.g. <Bus busInstanceName="X-BUS"/> -->
		</Trigger>
	</Options>
</Application>

Reply via email to