<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi...!!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can anybody give me a example of using <FONT
face="Times New Roman" size=3>xmerl_xpath:string function.</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>what is the format of xPathString()
???<BR></FONT></FONT></DIV>
<DIV>Since my ParsResult2=xmlElement()</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I think my input format of xPathString() is
invalid.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>No docs found. So ... Need Help from expert .....
!!!!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>------ below is my try, but it gives an error
------------------------------------------</FONT></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>54>
{ParsResult2,Misc2}=xmerl_scan:file('ivr.xml',[{validation,true]).</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>55>
xmerl_xpath:string("/<IVR>/<content>/",ParsResult2).</FONT></P></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>=ERROR REPORT==== 13-Jul-2005::15:49:58
===<BR>Error in process <0.103.0> on node <A
href="mailto:'ivr@sanjaya'">'ivr@sanjaya'</A> with exit value:
{function_clau<BR>se,[{xmerl_xpath,match_expr,[{comp,'>',{comp,'<',{comp,'>',{comp,'<',{path,abs,'<BR>/'},{path,rel,{step,{child,{name,{'IVR',[],"IVR"}},[]}}}},{path,abs,'/'}},{path,<BR>rel,{step,{child,{name,{content,[],"content"}},[]}}}},{path,abs,'/'}},{...
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>** exited:
{function_clause,[{xmerl_xpath,<BR>
match_expr,<BR>
[{comp,<BR>
'>',<BR>
{comp,<BR>
'<',<BR>
{comp,<BR>
'>',<BR>
{comp,<BR>
'<',<BR>
{path,abs,'/'},<BR>
{path,rel,{step|...}}},</FONT></DIV>
<DIV><FONT face=Arial
size=2>
{path,abs,'/'}},<BR>
{path,<BR>
rel,<BR>
{step,<BR>
{child,<BR>
{name,{...}},<BR>
[]}}}},<BR>
{path,abs,'/'}},<BR>
{state,<BR>
{xmlContext,<BR>
forward,<BR>
{xmlNode,<BR>
element,<BR>
{xmlElement,<BR>
'IVR',<BR>
'IVR',<BR>
[],<BR>
{xmlNamespace,[],[]},<BR>
[],<BR>
1,<BR>
[]|...},<BR>
[],<BR>
1},<BR>
1,</FONT></DIV>
<DIV><FONT face=Arial
size=2>
[],<BR>
[],<BR>
[],<BR>
[],<BR>
{xmlNode,<BR>
root_node,<BR>
{xmlDocument,{xmlElement|...}},<BR>
[],<BR>
1}},<BR>
[]}]},<BR>
{xmerl_xpath,string,5},<BR>
{erl_eval,do_apply,5},<BR>
{shell,exprs,6},<BR>
{shell,eval_loop,3}]} **</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sanjaya Vitharana.</FONT></DIV></BODY></HTML>