php5
| From: | Carlos | Date: | Tue, 02 Mar 2004 13:38:29 +0000 |
| Subject: | php5 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-179245@lists.php.net to get a copy of this message | ||
<?xml version="1.0"?>
<config>
<network defaultroute="" dnsserver="">
<interface name="lan" type="ethernet" device="eth0"
ip="192.168.1.1" subnet="24"/>
<interface name="wan" type="ethernet" device="eth1"
ip="192.168.1.1" subnet="24"/>
<alias number="1" desc="teste" device="eth0"/>
<alias number="2" desc="teste1" device="eth1"/>
</network>
</config>
hello ... I'm working with simplexml (php5) to manipulate the data in
xml file, but I'm having one problem.
I need manipulate the nodes (add and remove) .
example
I need add more one node
<interface name="dmz" type="ethernet" device="eth3"
ip="xxxxxxx"
subnet="24"/>
and remove the node
<alias number="2" desc="teste1" device="eth1"/>
but I don't have idea ...
somebody can help me ?
Any example ...
greats
Carlos
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc