[Arp] Question about using XMl in ARP applicatuions- Should Iparse and convert to valueObjects
nyls
xxx at nyls.demon.nl
Tue Jun 27 00:35:37 PDT 2006
Hello Manuel,
I have my own service which uses the XML service from Christophe to get my
XML data in ARP. In my own service I transfer the XML to VO's or keep it XML
. When it's a site structure (for use in a tree or other navigation View) I
store the XML in a ML .. Then I have a state management class which provides
acces to this model and acts as a layer between the model and views .. I
use the xfactorstudio Xpath api to acces the XML (for example to see what is
the path to the current selectedNode) also all other views listen to the
state management class. So when a different node is selected in the tree
(menu) I set the new value in the state management class.. All views who
listen to state managent updates itself according to position, depth etc..
Easy when the selectedNode is provided from outside the app (
stateManager.getInstance().addState(_root.id) ) so for deeplinking or
backbutton support..
For my pages I also use the XML service, but then I convert the data to VO's
and store them in a Model.
Is this any help? Tell me:>
nyls
_____
Van: Arp-bounces at ariaware.com [mailto:Arp-bounces at ariaware.com] Namens
Manuel Saint-Victor
Verzonden: dinsdag 27 juni 2006 0:16
Aan: General List for Ariaware RIA Platform users and developers
Onderwerp: Re: [Arp] Question about using XMl in ARP applicatuions- Should
Iparse and convert to valueObjects
I just wanted to add the link to Jesse's post
http://ariaware.com/pipermail/arp_ariaware.com/2006-February/001093.html
On 6/26/06, Manuel Saint-Victor <diamondtearz at gmail.com> wrote:
I was googling about this and thinking it over and thought I'd seek some
feedback.
What's the best practice for getting my XML data into an ARP application.
To be more specific say that a client would like to load an XML file that
would provide a bunch of complex dataObjects with other objects within them.
My gut is telling me to create a sevice that would generate valueObjects for
the elements of the xml file. This would make them have more relevant
meaning in the whole application than parsing XML throughout the project
would.
I came across a post by Jesse that seemed to echo this sentiment. To be
clear I wanted to check with the ARP user community and see what has been
most effective in the past.
As a subquestion- if I were to convert this content to some value objects
then what's the approach for populating a dataTree with this- Usually I can
just pass the XMl file a s a data provider but it seems to me that in this
case I would have to code out something to parse the objects and generate
the tree structure.
Let me know what you guys feel is the best way to approach this.
Thanks in advance,
Mani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ariaware.com/pipermail/arp_ariaware.com/attachments/20060627/2f58dea7/attachment-0001.htm
More information about the Arp
mailing list