Xml parsing


Posted on 16th Feb 2014 07:03 pm by admin

I need a suggestion about parsing xml with multiply parts like pervious...
i.e. different devices has a similar configuration, but how I can discern it by device?
Code: 10.10.10.10111120.20.20.202222
I've got just flat configuration for everyone device with that code, but I'm so wondering how collected cnf's via device_1,2... so on
Did you know?Explore Trending and Topic pages for more stories like this.
Code: char *dev={"ip","port"};void **cnf_buf;// mem allocation for cnf_buf//whatever for(field=0;field<2;field++){ if (cur_node->type == XML_ELEMENT_NODE && (xmlStrcmp(cur_node->name, (xmlChar *)dev[field] ))== 0 ){ cnf_buf[field]=cur_node->name; }//whatever }
i.e. I want separate configuration of different devices, need an addition index by , and doubt how parsing it.
No comments posted yet

Your Answer:

Login to answer
263 Like 16 Dislike
Previous forums Next forums
Other forums

Revoking alter any table from a schema
Hi All,

i am working in Oracle 10g.
my requirement is to revoke all kind of DDL oper

What am I missing here? Help!
Hello all!. I can't seem to get this working right. Well - it renders right, but something is goin

New to Arrays
Hi I am new to PHP (a week and a half now) and I am just beginning to read about arrays. I understan

Add User script "Could not execute query"
This should be an easy script but I can't get it to run. Can someone please help me?

<

Hi, explode and strstr.
Hi, I seem to be confused about the strstr function, eg. i have a string like:
"a.b.c.d.e.f&

Count Session and Trigger Events
I am New in PHP, seeking a method to count logged users by counting the sessions or any …, is

PHP onsubmit in the form not going to the fuction.
I have a form through ‘onsubmit’ calling a function validation(). But not going to the

Logging and nologging bulk insert
Hi,

oracle version: 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production

Include ("Absolute Path") of a file?
I'm not sure what I'm doing wrong. I am writing my php code in the same directory of the file that

Preg_match question
I want to use preg_match to make sure a string is always 6 characters long and only contains 0-9 and

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash