How to Use xmerl_xpath:string ???
Sanjaya Vitharana
sanjaya@REDACTED
Wed Jul 13 12:16:24 CEST 2005
Hi...!!!
Can anybody give me a example of using xmerl_xpath:string function.
what is the format of xPathString() ???
Since my ParsResult2=xmlElement()
I think my input format of xPathString() is invalid.
No docs found. So ... Need Help from expert ..... !!!!!
------ below is my try, but it gives an error ------------------------------------------
54> {ParsResult2,Misc2}=xmerl_scan:file('ivr.xml',[{validation,true]).
55> xmerl_xpath:string("/<IVR>/<content>/",ParsResult2).
=ERROR REPORT==== 13-Jul-2005::15:49:58 ===
Error in process <0.103.0> on node 'ivr@REDACTED' with exit value: {function_clau
se,[{xmerl_xpath,match_expr,[{comp,'>',{comp,'<',{comp,'>',{comp,'<',{path,abs,'
/'},{path,rel,{step,{child,{name,{'IVR',[],"IVR"}},[]}}}},{path,abs,'/'}},{path,
rel,{step,{child,{name,{content,[],"content"}},[]}}}},{path,abs,'/'}},{...
** exited: {function_clause,[{xmerl_xpath,
match_expr,
[{comp,
'>',
{comp,
'<',
{comp,
'>',
{comp,
'<',
{path,abs,'/'},
{path,rel,{step|...}}},
{path,abs,'/'}},
{path,
rel,
{step,
{child,
{name,{...}},
[]}}}},
{path,abs,'/'}},
{state,
{xmlContext,
forward,
{xmlNode,
element,
{xmlElement,
'IVR',
'IVR',
[],
{xmlNamespace,[],[]},
[],
1,
[]|...},
[],
1},
1,
[],
[],
[],
[],
{xmlNode,
root_node,
{xmlDocument,{xmlElement|...}},
[],
1}},
[]}]},
{xmerl_xpath,string,5},
{erl_eval,do_apply,5},
{shell,exprs,6},
{shell,eval_loop,3}]} **
regards,
Sanjaya Vitharana.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20050713/b59580a9/attachment.htm>
More information about the erlang-questions
mailing list