[Portfolio] parsing template ?
Jon Wheat
jwheat at messiah.edu
Mon Jul 27 13:00:55 PDT 2009
I have a portfolio form that collects multiple attachments.
The resulting XML looks like this -
<structuredData>
<document>
<docReflection> snipped </docReflection>
<fileSelect>/attachment/2f0ae395-a3dd-493b-b9da-141395ad34ff/Matrices/8b842f05-a344-42a0-91c3-51f138d51f62/lang_c1.pdf</fileSelect>
<fileSelect>/attachment/2f0ae395-a3dd-493b-b9da-141395ad34ff/Matrices/426b99d2-d514-4a08-ba9a-0d00ffd8e81d/lang_c2.pdf</fileSelect>
<fileSelect>/attachment/2f0ae395-a3dd-493b-b9da-141395ad34ff/Matrices/c0afc9de-f294-49ec-bcfc-1e47a7d7908a/lang_c3.pdf</fileSelect>
</document>
</structuredData>
I'm now attempting to grab just the filenames for these files and am having difficulty both looping though the fileSelect(s) and parsing the urls so I can create simple a lang_c1.pdf link.
Does anyone have any template code that does this ?
- Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/portfolio/attachments/20090727/dbf032a9/attachment.html
More information about the portfolio
mailing list