Sponsored Content
Full Discussion: Grouptags
Top Forums Shell Programming and Scripting Grouptags Post 302317678 by userscript on Tuesday 19th of May 2009 02:56:58 PM
Old 05-19-2009
Question

Yogesh,

Thanks for the response. I have defined use XML::Simple in my script.

I was able to parse the xml file successfully using that. However when i try to get values for paricular fields i am having problems. I also tried using keyattr as follows

my $data = XMLin('dump.xml', KeyAttr=>{RT =>"List"});
print $data->{RT}=>{List}->{String};

I get this error: Bareword "MapEntry" not allowed while "strict subs" in use at dump.pl line 22.
Execution of dump.pl aborted due to compilation errors.

String has more that one value. Could that be a problem?

Appreciate any help.
 
XtErrorMsg(3)						    XT COMPATIBILITY FUNCTIONS						     XtErrorMsg(3)

NAME
XtErrorMsg, XtSetErrorMsgHandler, XtWarningMsg, XtSetWarningMsgHandler - high-level error handlers SYNTAX
void XtErrorMsg(String name, String type, String class, String default, String *params, Cardinal *num_params); void XtSetErrorMsgHandler(XtErrorMsgHandler msg_handler); void XtSetWarningMsgHandler(XtErrorMsgHandler msg_handler); void XtWarningMsg(String name, String type, String class, String default, String *params, Cardinal *num_params); ARGUMENTS
class Specifies the resource class. default Specifies the default message to use. name Specifies the general kind of error. type Specifies the detailed name of the error. msg_handler Specifies the new fatal error procedure, which should not return or the nonfatal error procedure, which usually returns. num_params Specifies the number of values in the parameter list. params Specifies a pointer to a list of values to be stored in the message. DESCRIPTION
The XtErrorMsg function has been superceded by XtAppErrorMsg. The XtSetErrorMsgHandler function has been superceded by XtAppSetErrorMsgHandler. The XtSetWarningMsgHandler function has been superceded by XtAppSetWarningMsgHandler. The XtWarningMsg function has been superceded by XtAppWarningMsg SEE ALSO
XtAppErrorMsg(3Xt) X Toolkit Intrinsics - C Language Interface Xlib - C Language X Interface X Version 11 libXt 1.0.5 XtErrorMsg(3)
All times are GMT -4. The time now is 07:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy