Vidyalelo
JavaScript · Q66

Sockets

Programming · JavaScript · question 66

Q66

How will you convert the returned API into an XML object?

A.
SimpleElement()
B.
SimpleXMLElement()
Answer
C.
XMLElement()
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
The API returned by the method file_get_contents() can be converted into an XML object using the method SimpleXMLElement().