Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for sujinsr

int xml_validation(char *xsd_file, char *xml_file) { xmlDocPtr doc; xmlSchemaPtr schema = NULL; xmlSchemaParserCtxtPtr ctxt; char *temp_buf = malloc((strlen(xml_file)+1) * sizeof(char)); char *XMLFileName = malloc((strlen(xml_file)+1) * sizeof(char)); char *XSDFileName = malloc((strlen(xsd_file)+1) * sizeof(char)); strcpy(XMLFileName, xml_file); strcpy(XSDFileName, xsd_file); xmlLineNumbersDefault(1); ctxt = xmlSchemaNewParserCtxt(XSDFileName); xmlSchemaSetParserErrors(ctxt, (xmlSchemaValidityErrorFunc) fprintf, (xmlSchemaValidityWarningFunc) fprintf, stderr); schema = xmlSchemaParse(ctxt); xmlSchemaFreeParserCtxt(ctxt); …

Member Avatar for sujinsr
0
479
Member Avatar for sujinsr

I having soap request and response xml in seperate file. i need to parse it and get the data from soap xml file. using C program I know it is possible with libxml2. Is it there any other way to parse ? Is there any facility available in gsoap to …

Member Avatar for sujinsr
0
941
Member Avatar for sujinsr

I have the nagios with two host. one is localhost(10.10.62.5) and another one is ubuntu(10.10.62.10). i set up nagios monitor on localhost. host configuration files are below localhost.cfg: define host{ use linux-server host_name localhost alias localhost address 10.10.62.5 } define service{ host_name localhost service_description WSN_COUNT is_volatile 1 check_command check-host-alive max_check_attempts …

0
102
Member Avatar for sujinsr

#include "stdio.h" int main() { //FILE *fp; char get[20] ; char password[15]; int choice; choice: printf("\nSELETCT: 1.Login 2.Password change 0.Exit \n"); scanf("%d", &choice); if(choice == 1) { FILE *fp; fp = fopen("PASS.txt","r"); fgets(password,15,fp); printf("your current password is %s\n", password); printf("Enter password: "); scanf("%s",get); if( !strcmp(get, password) ) { printf("\n%s\n", "Logged …

Member Avatar for Nimrod7676
0
264