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

Procedural to OOP
John Kleijn said that to avoid writing "crappy code", we should learn OOP and common OO pr

Find occurences of unicode characters in string
I need to prohibit filenames with everything but English characters and numbers but regexp and strin

Just cannot get 'area' to submit to db using same php code as already used
Basically all i have done is just modified some code and added an area section.
The form is allre

Connect to database that isn't localhost
I am currently doing a small script for a company that doesn't have mySql support on there hosting.

sql problems
I am having a small problem with my sql statement. it is inserting into 4 of the fields.

fie

Blocking video streaming
Hello everyone,

I post a message here because i didn't find any solution yet.
I just finis

Output Full URL of Current Page
Let's say I am currently viewing a dynamic page:

http://www.mydomain.com/directory/index.php

need help with mail()
hi i want to send an email with attaching pdf file using php. i have the following script but the pr

How to assign JS screen.width to ASP.Net variable
I've got this ASP.net routine that gets the cookie value of the screen width, but now I need to chan

Must-Know Topics of PHP
Can you guys list the must-know topics of PHP. I am still a learner and I am trying to cover most of

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