php xpath - string functions on a attribute -


What is the correct syntax for applying string functions (for example "normalize-space") using the xpath query below Is the attribute?

Question: "./@ Media"

I have seen examples of elsewhere, but if I try to use it in php xpath library then this is nothing No Returns ...

Use on a DOMXPath object always will result in node-set (wrapped in object) / div>

, never in a string

You can not remove the results of XPath functions. You should ask the nodes you want to process, and process them in PHP.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -