Home › Forums › Problems and solutions in GDL › Library build system › Problems with LP_XMLConverter tool
Tagged: XML, gsm, LP_XMLConverter tool
- This topic has 3 replies, 2 voices, and was last updated 4 years, 7 months ago by Péter Baksa.
-
AuthorPosts
-
-
February 27, 2020 at 07:29 #18590Nader BelalParticipant
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’
-
February 27, 2020 at 08:33 #18593Péter BaksaKeymaster
What is at line 18531? Which version of LP_XMLConverter is this? (LP_XMLConverter -help)
Péter Baksa
Library Platform, Software Engineer
GRAPHISOFT SE -
February 27, 2020 at 17:38 #18596Nader BelalParticipant
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
-
March 3, 2020 at 09:29 #18603Péter BaksaKeymaster
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
-
-
AuthorPosts
- The forum ‘Library build system’ is closed to new topics and replies.