04-20-2008 12:04 PM
var xmlstring = node.properties["ph:ARActeXml"].content;
model.myxmlstring = xmlstring
04-21-2008 05:06 AM
04-21-2008 08:29 AM
04-21-2008 09:53 AM
04-21-2008 10:22 AM
<?xml version="1.0" encoding="ISO-8859-1"?>
<machin:Amachin xmlns:machin="http://www.mycompany.net/MACHIN#v1.1-20040216" xmlns:insee="http://xml.insee.fr/schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mycompany.net/MACHIN#v1.2-20071201 machinv1_2.xsd" machin:DateReception="2008-03-21" machin:ID="000-123456789-20080321-200803211-91">
<machin:Recu machin:Date="2008-03-21" machin:Num="200803211" machin:Code="3">
<machin:CodeMatiere1 machin:CodeMatiere="2" />
<machin:CodeMatiere2 machin:CodeMatiere="2" />
<machin:Document>
<machin:NomPDF>000-123456789-20080321-200803211-91.pdf</machin:NomPDF>
</machin:Document>
</machin:Recu>
<machin:Version>2007-12-12</machin:Version>
</machin:Amachin>
What is the Freemarker code to extract the machinateReception property containing the value "2008-03-21" ?
05-01-2008 03:23 AM
05-08-2008 05:46 PM
model.file = store.lookupNode("ROOT/press-on.xml")
<#ftl ns_prefixes={"D":"http://www.alfresco.org/alfresco/pr"}>
<#assign release = file.xmlNodeModel>
${release?node_type}<br>
${(release?node_namespace??)?string}<br>
#{release.children?size}
document
false
0
model.file = store.lookupNode("ROOT/press-on.xml").content
<pr:press_release>
<pr:title>Keep on Pressin On</pr:title>
<pr:abstract>I can not be implemented</pr:abstract>
<pr:location>San Francisco, CA</pr:location>
−
<pr:body>
<div id="lipsum"> <p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam tincidunt metus non risus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed congue. Nullam luctus. Mauris vulputate erat at mauris. Duis commodo sem sit amet purus. Suspendisse id mauris. Vivamus laoreet metus ut justo. Curabitur nec odio. Suspendisse volutpat leo vitae odio. </p> <p>Vivamus purus risus, suscipit ut, gravida ac, egestas id, tortor. Mauris ut odio ac magna cursus sagittis. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris et magna eu purus vulputate sodales. Proin ultrices elit et lorem. Curabitur pretium erat vitae ligula. Praesent porta dignissim enim. Nulla quam. Praesent consectetuer est rhoncus nunc. Ut elementum condimentum est. Nam ullamcorper. Suspendisse in dolor non enim scelerisque commodo. Aliquam vitae pede consequat dolor rutrum pharetra. Vestibulum ut sem et nulla sodales consectetuer. Proin dictum. Curabitur eleifend. Mauris non nulla. Nulla dictum viverra arcu. Aenean sem. Aenean et dolor. </p></div>
</pr:body>
<pr:include_media_contacts>true</pr:include_media_contacts>
<pr:launch_date>2008-05-20</pr:launch_date>
<pr:expiration_date>2008-07-17</pr:expiration_date>
</pr:press_release>
05-08-2008 07:44 PM
<#ftl ns_prefixes={"D":"http://www.alfresco.org/alfresco/pr"}>
<#if file.mimetype = "text/xml">
<#assign dom=file.xmlNodeModel>
<press_release>
<title>${dom.press_release.title}</title>
<description>${dom.press_release.abstract}</description>
</press_release>
</#if>
05-14-2008 03:53 AM
05-19-2008 12:41 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.