Sponsored Content
Full Discussion: Grouptags
Top Forums Shell Programming and Scripting Grouptags Post 302317264 by userscript on Monday 18th of May 2009 12:04:49 PM
Old 05-18-2009
Grouptags

Hi All,

I have parsed an xml file and the resulting output is as follows

RT
=> {
'List' => {
'String' => [abcd
efgh
]

RT!
=> {
'List' => {
'String' => [
pqrs
lmno
]


I am trying to get the String values under RT and here is the code i am using

Code:
my $data = XMLin("output.xml", GroupTags=>{RequestedTerminations=>'String'});
# print output
print Dumper($data);


However, it doesnt seem to work and i get the following error
Code:
Undefined subroutine &main::XMLin called at dump.pl line 15.

Appreciate your help with this

Last edited by Yogesh Sawant; 05-19-2009 at 02:50 AM.. Reason: added code tags
 
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(3) X Toolkit Intrinsics - C Language Interface Xlib - C Language X Interface X Version 11 libXt 1.1.4 XtErrorMsg(3)
All times are GMT -4. The time now is 07:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy