Problems with LP_​​XMLConverter tool

Home Forums Problems and solutions in GDL Library build system Problems with LP_​XMLConverter tool

Viewing 3 reply threads
  • Author
    Posts
    • #18590
      Nader Belal
      Participant

      Hi there,

      I have an object file that I was converted to from GSM to XML with no problem.

      But when I tried to convert it back after saving the changes done, in XML converter tool tells me that my file have an error, after several trials, I failed to covert back my xml to gsm, even when I used the save file without including the changes.

      The error message that i recieve is:

      _ _ _ file name _ _ _.xml(18531) : error: XML validation failed; value ‘-1’ must be greater than or equal to minInclusive facet value ‘0’

    • #18593
      Péter Baksa
      Keymaster

      What is at line 18531? Which version of LP_​​XMLConverter is this? (LP_​​XMLConverter -help)

      Péter Baksa
      Library Platform, Software Engineer
      GRAPHISOFT SE

    • #18596
      Nader Belal
      Participant

      Hi Péter,

      Answering your questions,

      Which version of LP_​​XMLConverter : 22

      What is at line 18531 ?? It’s a part of a rich text that was put in a fragment2 layer

      here is the section of of xml

      
      	<RichText>
      		<DrawIndex>10</DrawIndex>
      		<Layer>16</Layer>
      		<LocX>0.0622</LocX>
      		<LocY>0.2375</LocY>
      		<Width>56</Width>
      		<Ang>0</Ang>
      		<WidthFactor>1</WidthFactor>
      		<CharSpaceFactor>1</CharSpaceFactor>
      		<Anchor>4</Anchor>
      		<FixedHeight>true</FixedHeight>
      		<NonBreaking>false</NonBreaking>
      		<ParamInd>-1</ParamInd>			!<--the bugger
      		<Ind1>0</Ind1>
      		<Ind2>0</Ind2>
      		<Content>
      			<Paragraph>
      				<Alignment>0</Alignment>
      				<FirstLineIndent>0</FirstLineIndent>
      				<LeftIndent>0</LeftIndent>
      				<RightIndent>0</RightIndent>
      				<LineSpacing>-0.8</LineSpacing>
      				<TextStyles>
      					<TStyle>
      						<Size>3.5</Size>
      						<StyleInd>3</StyleInd>
      						<PenInd>101</PenInd>
      						<L><![CDATA["<PROJECTNAME>"]]></L>
      					</TStyle>
      				</TextStyles>
      				<Tabulators/>
      			</Paragraph>
      		</Content>
      	</RichText>
      

      Can you tell me what are the possible causes for a parameter index will give you an index number of -1 and how to fix it in the GSM file

    • #18603
      Péter Baksa
      Keymaster

      Hi,

      It might be possible that the paragraph was dragged to the 2D Symbol from an object where the object printed one of it’s parameters as text. If this is the case, ParamInd 0 will work fine, the paragraph contains the parameter value as a string.

      There is another known bug in AC22, which has been fixed in AC23: the style referenced in StyleInd is missing from the XML.
      If you need to create objects for AC22, use the LP_XMLConverter of AC23 to create another XML, copy-paste the Drawing tag and its contents to the 22 XML, then change paramInd to 0.

      Péter Baksa
      Library Platform, Software Engineer
      GRAPHISOFT SE

Viewing 3 reply threads
  • The forum ‘Library build system’ is closed to new topics and replies.