This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have some flow diagrams that have be previously serialized and saved to a database. When deserializing some of these flow diagrams I am getting a "Premature string termination encountered while parsing ''." error that I can't get to the bottom of. Any ideas?
using (var reader = XmlReader.Create(new StringReader(flow))) { var serializer = NodeSerializer.Create(); ViewModel.CurrentFlowDiagram = serializer.Deserialize(reader); } |
|
|
Hello David I have not come across this error before and haven't been able to repro this issue. Would you be able to send us one of the xml files that are failing to load? This will make it easy for us to debug at this end. Regards |
|
|
This is an example file...I am using custom nodes...I'll try to reproduce the problem with standard nodes:
<FlowDiagram> <Nodes> <BBStart ID="5ec90e8f-2052-4049-a5fd-96f173c71343" Bounds="90,30,100,40" Title="Start" ElementGuid="33b8e807-18bb-40ce-92bc-e6a709823c04" /> <BBAction ID="5e7662df-4385-4e4e-aeac-d054f989cc9e" Bounds="90,110,100,40" Title="Step 1" ElementGuid="94128481-b0f2-43d6-ab08-6de4b1efc6ea" /> <BBAction ID="c8dc3d1b-1be9-44bd-a73b-f0838b2616c3" Bounds="90,190,100,40" Title="Step 2" ElementGuid="5145b07f-83f0-4b76-9811-53390fc575b1" /> <BBDecision ID="24cc9d41-3953-417e-980f-9f3f522331ba" Bounds="80,280,120,80" Title="The Decision" ElementGuid="547160a0-ca81-4928-9da3-16b5caa1ffc1"> <Option Value="Yes" /> <Option Value="No" /> </BBDecision> <BBAction ID="f35dac27-ea25-4ff4-af4b-d23190f0feaf" Bounds="250,300,100,40" Title="Step 3a" ElementGuid="cdf78095-c74a-45dd-a951-253abf3cb9e5" /> <BBDocument ID="e0430696-548a-4122-b9a9-1592e7cf9ea4" Bounds="410,290,100,60" Title="Send a Document" ElementGuid="d9d9bba3-2e35-483d-af64-21b3f8db0064"> <Template Id="1" /> </BBDocument> <BBAction ID="4f66c365-8381-4086-ae28-73c66c055658" Bounds="90,400,100,40" Title="Step 3b" ElementGuid="9f070955-7752-4261-9898-ee2040b29abc" /> <BBEnd ID="b5509179-a25e-40ab-abf0-ae3e2431da58" Bounds="90,500,100,40" Title="Finish" ElementGuid="96b711b6-3815-4e32-85f8-a68a67f061d0" /> <BBEnd ID="c6baac57-1e41-4a06-ae21-2800fe88b7f6" Bounds="580,300,100,40" Title="Finish" ElementGuid="529ea42e-6620-4b8b-a275-a191601cddf0" /> </Nodes> <Connections> <Connection ID="7f9c307b-9115-4ad4-b4bd-0fd4364c546c" From="5ec90e8f-2052-4049-a5fd-96f173c71343" FromIndex="2" To="5e7662df-4385-4e4e-aeac-d054f989cc9e" ToIndex="0" UserModified="False"> <Segment Movable="False" X="140" Y="70" /> <Segment Movable="False" X="140" Y="110" /> </Connection> <Connection ID="d6a3a0a3-69a5-4662-8d1d-794453b1c1cd" From="5e7662df-4385-4e4e-aeac-d054f989cc9e" FromIndex="2" To="c8dc3d1b-1be9-44bd-a73b-f0838b2616c3" ToIndex="0" UserModified="False"> <Segment Movable="False" X="140" Y="150" /> <Segment Movable="False" X="140" Y="190" /> </Connection> <Connection ID="433e3cb3-2815-401a-bdfa-3ddfe4b0bf89" From="c8dc3d1b-1be9-44bd-a73b-f0838b2616c3" FromIndex="2" To="24cc9d41-3953-417e-980f-9f3f522331ba" ToIndex="0" UserModified="False"> <Segment Movable="False" X="140" Y="230" /> <Segment Movable="False" X="140" Y="280" /> </Connection> <Connection ID="103d4c5c-6172-4b96-8dd5-cf8ca48cbd09" From="24cc9d41-3953-417e-980f-9f3f522331ba" FromIndex="1" To="4f66c365-8381-4086-ae28-73c66c055658" ToIndex="0" UserModified="False" Text="No"> <Segment Movable="False" X="140" Y="360" /> <Segment Movable="False" X="140" Y="400" /> </Connection> <Connection ID="93646c1b-73be-4c5e-938b-d9c2df06da8e" From="24cc9d41-3953-417e-980f-9f3f522331ba" FromIndex="2" To="f35dac27-ea25-4ff4-af4b-d23190f0feaf" ToIndex="3" UserModified="False" Text="Yes"> <Segment Movable="False" X="200" Y="320" /> <Segment Movable="False" X="250" Y="320" /> </Connection> <Connection ID="be6d3763-5fbb-4e14-b26d-40b14ce5f1c2" From="f35dac27-ea25-4ff4-af4b-d23190f0feaf" FromIndex="1" To="e0430696-548a-4122-b9a9-1592e7cf9ea4" ToIndex="3" UserModified="False"> <Segment Movable="False" X="350" Y="320" /> <Segment Movable="False" X="410" Y="320" /> </Connection> <Connection ID="1b8a1c95-74be-4db6-8434-17a82cde97e1" From="e0430696-548a-4122-b9a9-1592e7cf9ea4" FromIndex="1" To="c6baac57-1e41-4a06-ae21-2800fe88b7f6" ToIndex="3" UserModified="False"> <Segment Movable="False" X="510" Y="320" /> <Segment Movable="False" X="580" Y="320" /> </Connection> <Connection ID="edf3bc1e-a44c-405d-a673-8fd5ad0bdbda" From="4f66c365-8381-4086-ae28-73c66c055658" FromIndex="2" To="b5509179-a25e-40ab-abf0-ae3e2431da58" ToIndex="0" UserModified="False"> <Segment Movable="False" X="140" Y="440" /> <Segment Movable="False" X="140" Y="500" /> </Connection> </Connections> </FlowDiagram>
|
|