can not open xml files

Asked by Gayanindika

I am working with yade 0.60 and also my previous student gave me his results as xml files. (he used 0.20). but when I try to open those, they open as internet media files (file:///media/.......xml) and with followings. Is this a problem of version and how can I sortt them to a usable format?

---------------------------------------------------------------------------------

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<Yade>

<rootBody _className_="MetaBody" id="0" groupMask="1" isDynamic="0" clumpId="-1" tags="[author=sayeed~(sayeed@sayeed) isoTime=20100613T222213 id=20100613T222213p5849 description=]" dt="0.0001178961755590988" currentIteration="0" simulationTime="0" stopAtIteration="0" cellMin="{-8.815687029147729e-46 0 0}" cellMax="{3.841723786398973e-242 -3.295203055417627e+90 -1.781102662197292e-124}" isPeriodic="0">
<physicalParameters _className_="ParticleParameters" se3="{0 0 0 1 0 0 0}" refSe3="{0 0 0 1 0 0 0}" blockedDOFs="0" mass="0" velocity="{0 0 0}"/>
<geometricalModel/>
<interactingGeometry _className_="MetaInteractingGeometry" diffuseColor="{0 0 1}"/>
<boundingVolume _className_="AABB" diffuseColor="{0 0 1}"/>
<grpRelationData/>

<engines size="10">
<engines _className_="PhysicalActionContainerReseter" label=""/>

<engines _className_="BoundingVolumeMetaEngine" label="" functorNames="[[InteractingSphere AABB InteractingSphere2AABB] [InteractingBox AABB InteractingBox2AABB] [MetaInteractingGeometry AABB MetaInteractingGeometry2AABB]]" activated="1" sweepDist="0">

<functorArguments size="3">
<functorArguments _className_="InteractingSphere2AABB" label="" aabbEnlargeFactor="-1"/>
<functorArguments _className_="InteractingBox2AABB" label=""/>
<functorArguments _className_="MetaInteractingGeometry2AABB" label=""/>
</functorArguments>
</engines>
<engines _className_="InsertionSortCollider" label="" sortAxis="0" sortThenCollide="0" strideActive="0" sweepLength="-1" sweepFactor="1.05" fastestBodyMaxDist="-1" nBins="0" binCoeff="5" binOverlap="0.8" maxRefRelStep="0.3" histInterval="100"/>

<engines _className_="InteractionGeometryMetaEngine" label="" functorNames="[[InteractingSphere InteractingSphere InteractingSphere2InteractingSphere4SpheresContactGeometry] [InteractingBox InteractingSphere InteractingBox2InteractingSphere4SpheresContactGeometry]]">

<functorArguments size="2">
<functorArguments _className_="InteractingSphere2InteractingSphere4SpheresContactGeometry" label="" interactionDetectionFactor="1"/>
<functorArguments _className_="InteractingBox2InteractingSphere4SpheresContactGeometry" label=""/>
</functorArguments>
</engines>

<engines _className_="InteractionPhysicsMetaEngine" label="" functorNames="[[BodyMacroParameters BodyMacroParameters SimpleElasticRelationships]]">

<functorArguments size="1">
<functorArguments _className_="SimpleElasticRelationships" label=""/>
</functorArguments>
</engines>

----------------------------------------------

Thanks in advance.

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Anton Gladky (gladky-anton) said :
#1

Hi,

you can try to load this fiile with O.load('file.xml') command.
But I think, that 0.60 will not open it. It is newer version and there
were a lot of changes since 0.20

Anyway, 0.20.2 is still available for download [1], you can try to compile it.

[1] http://launchpad.net/yade/0.20/0.20-0/+download/yade-0.20-2.tar.bz2

Anton

On Tue, Aug 2, 2011 at 10:31 AM, Gayanindika
<email address hidden> wrote:
> New question #166701 on Yade:
> https://answers.launchpad.net/yade/+question/166701
>
> I am working with yade 0.60 and also my previous student gave me his results as xml files. (he used 0.20). but when I try to open those, they open as internet media files (file:///media/.......xml) and with followings. Is this a problem of version and how can I sortt them to a usable format?
>
> ---------------------------------------------------------------------------------
>
> This XML file does not appear to have any style information associated with it. The document tree is shown below.
>
> <Yade>
> -
> <rootBody _className_="MetaBody" id="0" groupMask="1" isDynamic="0" clumpId="-1" tags="[author=sayeed~(sayeed@sayeed) isoTime=20100613T222213 id=20100613T222213p5849 description=]" dt="0.0001178961755590988" currentIteration="0" simulationTime="0" stopAtIteration="0" cellMin="{-8.815687029147729e-46 0 0}" cellMax="{3.841723786398973e-242 -3.295203055417627e+90 -1.781102662197292e-124}" isPeriodic="0">
> <physicalParameters _className_="ParticleParameters" se3="{0 0 0 1 0 0 0}" refSe3="{0 0 0 1 0 0 0}" blockedDOFs="0" mass="0" velocity="{0 0 0}"/>
> <geometricalModel/>
> <interactingGeometry _className_="MetaInteractingGeometry" diffuseColor="{0 0 1}"/>
> <boundingVolume _className_="AABB" diffuseColor="{0 0 1}"/>
> <grpRelationData/>
> -
> <engines size="10">
> <engines _className_="PhysicalActionContainerReseter" label=""/>
> -
> <engines _className_="BoundingVolumeMetaEngine" label="" functorNames="[[InteractingSphere AABB InteractingSphere2AABB] [InteractingBox AABB InteractingBox2AABB] [MetaInteractingGeometry AABB MetaInteractingGeometry2AABB]]" activated="1" sweepDist="0">
> -
> <functorArguments size="3">
> <functorArguments _className_="InteractingSphere2AABB" label="" aabbEnlargeFactor="-1"/>
> <functorArguments _className_="InteractingBox2AABB" label=""/>
> <functorArguments _className_="MetaInteractingGeometry2AABB" label=""/>
> </functorArguments>
> </engines>
> <engines _className_="InsertionSortCollider" label="" sortAxis="0" sortThenCollide="0" strideActive="0" sweepLength="-1" sweepFactor="1.05" fastestBodyMaxDist="-1" nBins="0" binCoeff="5" binOverlap="0.8" maxRefRelStep="0.3" histInterval="100"/>
> -
> <engines _className_="InteractionGeometryMetaEngine" label="" functorNames="[[InteractingSphere InteractingSphere InteractingSphere2InteractingSphere4SpheresContactGeometry] [InteractingBox InteractingSphere InteractingBox2InteractingSphere4SpheresContactGeometry]]">
> -
> <functorArguments size="2">
> <functorArguments _className_="InteractingSphere2InteractingSphere4SpheresContactGeometry" label="" interactionDetectionFactor="1"/>
> <functorArguments _className_="InteractingBox2InteractingSphere4SpheresContactGeometry" label=""/>
> </functorArguments>
> </engines>
> -
> <engines _className_="InteractionPhysicsMetaEngine" label="" functorNames="[[BodyMacroParameters BodyMacroParameters SimpleElasticRelationships]]">
> -
> <functorArguments size="1">
> <functorArguments _className_="SimpleElasticRelationships" label=""/>
> </functorArguments>
> </engines>
>
> ----------------------------------------------
>
> Thanks in advance.
>
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Gayanindika (wanasinghegi) said :
#2

Thanks Mr. Anton.

Do I have to un-install the existing version (0.60) prior to installing 0.20.?
Or can I have both parallel.

But, if in parallel, how can I navigate to required version ?
(now I use simply yade in terminal.)

gayan@gayan-Prime-Series:~$ yade
Welcome to Yade 0.60
TCP python prompt on localhost:9000, auth cookie `kuasey'
XMLRPC info provider on http://localhost:21000
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view, F10 both, F9 generator, F8 plot. ]]
Yade [1]:

Thank you.

Revision history for this message
Hadda (hadda) said :
#3

Hi,

No you can have as much versions as you want on your machine at the same time since you know how to call each version in the terminal.

When you just type yade in the terminal, I suppose you added an alias that refers to the binary file generated from yade compilation.

Now you can do the same for the other versions by choosing appropriate call names (yade20 for example for yade 0.20) and then simply type yade20 in the terminal.

Revision history for this message
Hadda (hadda) said :
#4

Hi,

No you can have as much versions as you want on your machine at the same time since you know how to call each version in the terminal.

When you just type yade in the terminal, I suppose you added an alias that refers to the binary file generated from yade compilation.

Now you can do the same for the other versions by choosing appropriate call names (yade20 for example for yade 0.20) and then simply type yade20 in the terminal.

Revision history for this message
Anton Gladky (gladky-anton) said :
#5

> Do I have to un-install the existing version (0.60) prior to installing 0.20.?
> Or can I have both parallel.

How did you install yade: from sources or from packages?

Anton

Revision history for this message
Gayanindika (wanasinghegi) said :
#6

Thanks Mr.Anton and Hadda.
I installed the trunk version from Source.

Is that an effecting factor?

Revision history for this message
Anton Gladky (gladky-anton) said :
#7

In this case you can use PREFIX option to install different version of
 yade in different folders.

Anton

Can you help with this problem?

Provide an answer of your own, or ask Gayanindika for more information if necessary.

To post a message you must log in.