commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fasihullah Askiri" <>
Subject RE: [scxml] adding an xml to the datamodel
Date Fri, 28 Apr 2006 15:01:18 GMT
Do you have the external file as a file, I mean, have you parsed it? if not, you can get the
digester to add the content. For e.g. this is what I do

<data include="yes" value="afdsdf"/>

When I digest this file, I have a rule which puts it in the datamodel if it sees include=yes.
You will notice that the content is still name,value pair and not an "XML" per se which you
might use to do an Xpath query maybe.


-----Original Message-----
From: Nestor Urquiza []
Sent: Fri 4/28/2006 7:34 AM
To: Jakarta Commons Users List
Subject: [scxml] adding an xml to the datamodel
Hello guys,
Here I am trying to include my external xml file into
the model using the snippet posted by Fasih:

//byteArraySettingsFileContent has the external xml
file content 
Data scenarioData = new Data();
//I need to understand how to set a node here with the
content of the above file.
/* The Fasih sippet was for setting up String
scenarioData.setExpr("the content of the var here");  
scxml.setDatamodel(new Datamodel());

Thanks you all,

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message