> I have the following code:
>
> $cats = $xml->evaluate("//SCAN/IP[@value=".$ip_ip."]/VULNS[1]/CAT");
>
> foreach ($cats as $cat)
>
>
> $cat_atts = $xml->get_attributes($cat);
> $vuln_cat = $cat_atts["value"];
> $vuln_port = $cat_atts["port"];
>
>
> $vulns =
>
$xml->evaluate("//SCAN/IP[@value=".$
I have the following code:
$cats = $xml->evaluate("//SCAN/IP[@value=".$ip_ip."]/VULNS[1]/CAT");
foreach ($cats as $cat)
{
$cat_atts = $xml->get_attributes($cat);
$vuln_cat = $cat_atts["value"];
$vuln_port = $cat_atts["por
To Code to tune up your xml.php file a bit:
1. function to write to file
example:
$xmlfile="File.xml";
...
$xmltext = $xml->get_as_xml_file();
$check=$xml->write_xml($xmlfile,$xmltext);
2. added encoding="" to
so some special characters are supported to