aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_xml.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions_xml.inc.php22
1 files changed, 0 insertions, 22 deletions
diff --git a/include/functions_xml.inc.php b/include/functions_xml.inc.php
index 2afe7a23b..d37537fa1 100644
--- a/include/functions_xml.inc.php
+++ b/include/functions_xml.inc.php
@@ -56,28 +56,6 @@ function getAttribute( $element, $attribute )
if ( preg_match( $regex, $element, $out ) ) return $out[1];
else return '';
}
-
-function deprecated_getAttribute( $element, $attribute )
-{
- // Retrieving string with tag name and all attributes
- $regex = '/^<\w+( '.ATT_REG.'="'.VAL_REG.'")*/';
- preg_match( $regex, $element, $out );
-
- // Splitting string for retrieving separately attributes
- // and corresponding values
- $regex = '/('.ATT_REG.')="('.VAL_REG.')"/';
- preg_match_all( $regex, $out[0], $out );
-
- // Searching and returning the value of the requested attribute
- for ( $i = 0; $i < sizeof( $out[0] ); $i++ )
- {
- if ( $out[1][$i] == $attribute )
- {
- return $out[2][$i];
- }
- }
- return '';
-}
// The function getChild returns the first child
// exemple : getChild( "<table><tr>XXX</tr><tr>YYY</tr></table>", "tr" )