<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
code
{font-family:"Courier New";}
pre
{margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:884097832;
mso-list-template-ids:-812771672;
mso-list-style-name:"Style Bulleted1";}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:14.2pt;
mso-level-number-position:left;
margin-left:14.2pt;
text-indent:-14.2pt;
font-family:Wingdings;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:72.0pt;
mso-level-number-position:left;
margin-left:54.0pt;
text-indent:-18.0pt;
mso-ascii-font-family:"Courier New";
mso-hansi-font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:108.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:144.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:180.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:216.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:252.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:288.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:324.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
-->
</style>
</HEAD>
<BODY lang=EN-GB link=blue vlink=blue>
<DIV>
<DIV>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Are you trying to add a new content type? If
so this link might be helpful:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><a
href="http://www.wdogsystems.com/opencms/opencms/demos/structured_content_editing.html">http://www.wdogsystems.com/opencms/opencms/demos/structured_content_editing.html</a>
<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
Manoj Kumar Konakalla [mailto:konakalla@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> 11 November 2005 10:01<br>
<b><span style='font-weight:bold'>To:</span></b> opencms-dev@opencms.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [opencms-dev] Value for
path attribute in AddValue method[Scanned]</span></font><span lang=EN-US><o:p></o:p></span></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi,<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>My requirement is to add new value for content through program.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>There is one method addValue in CmsXmlContent class.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<pre><font size=2 face="Courier New"><span style='font-size:10.0pt'>public <a
href="file:///\\dt2752-sridhar\intranet\templates\com.alkacon.documentation.documentation_javadoc_1.0.0\alkacon-documentation\javadoc\core\org\opencms\xml\types\I_CmsXmlContentValue.html"
title="interface in org.opencms.xml.types"><o:p></o:p></a></span></font></pre><pre><span
class=MsoHyperlink><u><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt'><a
href="file:///\\dt2752-sridhar\intranet\templates\com.alkacon.documentation.documentation_javadoc_1.0.0\alkacon-documentation\javadoc\core\org\opencms\xml\types\I_CmsXmlContentValue.html"
title="interface in org.opencms.xml.types">I_CmsXmlContentValue</a></span></font></u></span> <b><span
style='font-weight:bold'>addValue</span></b>(<a
href="file:///\\dt2752-sridhar\intranet\templates\com.alkacon.documentation.documentation_javadoc_1.0.0\alkacon-documentation\javadoc\core\org\opencms\file\CmsObject.html"
title="class in org.opencms.file"><o:p></o:p></a></pre><pre><span
class=MsoHyperlink><u><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt'><a
href="file:///\\dt2752-sridhar\intranet\templates\com.alkacon.documentation.documentation_javadoc_1.0.0\alkacon-documentation\javadoc\core\org\opencms\file\CmsObject.html"
title="class in org.opencms.file">CmsObject</a></span></font></u></span> cms,<o:p></o:p></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> java.lang.String <strong><b><font
face="Courier New"><span style='font-family:"Courier New"'>path</span></font></b></strong>,<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> java.util.Locale locale,<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> int index)<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> throws <a
href="file:///\\dt2752-sridhar\intranet\templates\com.alkacon.documentation.documentation_javadoc_1.0.0\alkacon-documentation\javadoc\core\org\opencms\main\CmsIllegalArgumentException.html"
title="class in org.opencms.main"><o:p></o:p></a></span></font></pre><pre><span
class=MsoHyperlink><u><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt'><a
href="file:///\\dt2752-sridhar\intranet\templates\com.alkacon.documentation.documentation_javadoc_1.0.0\alkacon-documentation\javadoc\core\org\opencms\main\CmsIllegalArgumentException.html"
title="class in org.opencms.main">CmsIllegalArgumentException</a></span></font></u></span>,<o:p></o:p></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> <a
href="file:///\\dt2752-sridhar\intranet\templates\com.alkacon.documentation.documentation_javadoc_1.0.0\alkacon-documentation\javadoc\core\org\opencms\main\CmsRuntimeException.html"
title="class in org.opencms.main"><o:p></o:p></a></span></font></pre><pre><span
class=MsoHyperlink><u><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt'><a
href="file:///\\dt2752-sridhar\intranet\templates\com.alkacon.documentation.documentation_javadoc_1.0.0\alkacon-documentation\javadoc\core\org\opencms\main\CmsRuntimeException.html"
title="class in org.opencms.main">CmsRuntimeException</a></span></font></u></span><o:p></o:p></pre>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Adds a new XML content
value for the given element name and locale at the given index position to this
XML content document. <o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><b><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-weight:bold'>Parameters:</span></font></b>
<o:p></o:p></p>
<p class=MsoNormal style='margin-left:36.0pt'><code><font size=2
face="Courier New"><span style='font-size:10.0pt'>cms</span></font></code> -
the current users OpenCms context <o:p></o:p></p>
<p class=MsoNormal style='margin-left:36.0pt'><code><b><font size=2
face="Courier New"><span style='font-size:10.0pt;font-weight:bold'>path</span></font></b></code><strong><b><font
face="Times New Roman"> - the path to the XML content value element</font></b></strong>
<o:p></o:p></p>
<p class=MsoNormal style='margin-left:36.0pt'><code><font size=2
face="Courier New"><span style='font-size:10.0pt'>locale</span></font></code> -
the locale where to add the new value <o:p></o:p></p>
<p class=MsoNormal style='margin-left:36.0pt'><code><font size=2
face="Courier New"><span style='font-size:10.0pt'>index</span></font></code> -
the index where to add the value (relative to all other values of this type) <o:p></o:p></p>
<p class=MsoNormal style='margin-left:36.0pt'><b><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-weight:bold'>Returns:</span></font></b>
<o:p></o:p></p>
<p class=MsoNormal style='margin-left:36.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>the created XML content value
<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:36.0pt'><b><font size=3
face="Times New Roman"><span style='font-size:12.0pt;font-weight:bold'>Throws:</span></font></b>
<o:p></o:p></p>
<p class=MsoNormal style='margin-left:36.0pt'><code><font size=2
face="Courier New"><span style='font-size:10.0pt'><a
href="file:///\\dt2752-sridhar\intranet\templates\com.alkacon.documentation.documentation_javadoc_1.0.0\alkacon-documentation\javadoc\core\org\opencms\main\CmsIllegalArgumentException.html"
title="class in org.opencms.main">CmsIllegalArgumentException</a></span></font></code>
- if the given path is invalid <o:p></o:p></p>
<p class=MsoNormal style='margin-left:36.0pt'><code><font size=2
face="Courier New"><span style='font-size:10.0pt'><a
href="file:///\\dt2752-sridhar\intranet\templates\com.alkacon.documentation.documentation_javadoc_1.0.0\alkacon-documentation\javadoc\core\org\opencms\main\CmsRuntimeException.html"
title="class in org.opencms.main">CmsRuntimeException</a></span></font></code>
- if the element identified by the path already occured <a
href="file:///\\dt2752-sridhar\intranet\templates\com.alkacon.documentation.documentation_javadoc_1.0.0\alkacon-documentation\javadoc\core\org\opencms\xml\types\I_CmsXmlSchemaType.html#getMaxOccurs()"><code><font
size=2 face="Courier New"><span style='font-size:10.0pt'>I_CmsXmlSchemaType.getMaxOccurs()</span></font></code></a>
or the given <code><font size=2 face="Courier New"><span style='font-size:10.0pt'>index</span></font></code>
is invalid (too high).<o:p></o:p></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>We should give the path of the element to be added. <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Any of you ever used this method and if so can you tell me what kind of
value needed to be passed for the argument???<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Regards<br>
Manoj<o:p></o:p></span></font></p>
</div>
</div>
</DIV>
<DIV> </DIV>
<DIV>
<DIV>
<FONT FACE="Arial" SIZE="1">Jon mayes</FONT>
</DIV>
<DIV>
<FONT FACE="Arial" SIZE="1">Marketing & Business Systems</FONT>
</DIV>
<DIV>
<FONT FACE="Arial" SIZE="1">Pegasus Retirement Homes plc</FONT>
</DIV>
<DIV>
<FONT FACE="Arial" SIZE="1">Tel: </FONT>
</DIV>
<DIV>
<FONT FACE="Arial" SIZE="1">Fax: </FONT>
</DIV>
<DIV>
<FONT SIZE="1">
<FONT FACE="Arial">Email: jon.mayes@pegasus-homes.co.uk</FONT> </FONT>
</DIV>
<DIV> </DIV>
<DIV><BODY lang=EN-GB link=blue vlink=blue>
<P CLASS="MsoNormal" >
<FONT FACE="Arial" COLOR="navy" SIZE="2"><SPAN STYLE="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial;">For more information on Pegasus please visit our web site at </SPAN></FONT>
<FONT COLOR="navy"><SPAN STYLE="COLOR: navy;"><A HREF="http://www.pegasus-homes.co.uk/"><FONT FACE="Arial" SIZE="2"><SPAN STYLE="FONT-SIZE: 10pt; FONT-FAMILY: Arial">www.pegasus-homes.co.uk</SPAN></FONT></A></SPAN></FONT>
</P>
</BODY></DIV>
<DIV> </DIV>
<DIV><BODY lang=EN-GB link=blue vlink=blue><SPAN STYLE="FONT-SIZE: 7.5pt; COLOR: navy; FONT-FAMILY: Arial;">Privileged/Confidential information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of my firm shall be understood as neither given nor endorsed by it. </SPAN></BODY></DIV>
</DIV>
</DIV></BODY></HTML>