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
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

radio button reamains checked
Hello i'm trying to keep the state off my radio buttons so it shows which ones where clicked after t

Comparing Values
Hi
I'm reading data from a database and this seems to work OK.

Each system has an associat

Calculating a rating by adding number of points and dividing by number of items
I have a site that users can post links to files to download. They can rate these files on a 1-5 sca

PHP webpage & array print issue
I have this code running, and it works perfectly … however, see my bottom bit about what I see

mr8m - reverse document
Friends,

I'm trying to reverse a document held by MIRO, but it reports the message balan

get multiple rows
Hi I want to get multiple rows from a db

I am using this for the db query
Code: public

RadioButtonList data selection
view plaincopy to clipboardprint?

Storing/displaying image urls in a database?
Hi
Basically I have the following scenario:
User chooses picture from list. Picture info is ad

Multiple Dropdown Selections
I have a form that let's a user insert a page with the ability to select categories. I want them to

How to convert this array to string
I am having problems converting this array to a string
using print_r($val[1]); I get:
Code: [

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