I'm creating a parser for a specific XML structure and I'm facing a possible hardcoding issue. Here:
private function filterDefaultParams($param){
#FIXME Hardcoding?
return array_key_exists('default',$param);
}
The literal 'default' is a valid tag in the Xml structure, is this hardcoding? May I use another technique to search for defaults tags?
I considered using a doctype but, how can I specify than 'default' is the tag for defaults values?
Maybe is not hardcoding because this tag is my standard.
Thank you for your help.