R
R
Randel Kovalsky2019-09-11 17:03:04
PHP
Randel Kovalsky, 2019-09-11 17:03:04

Is it possible to read the header of an XML file from PHP?

Hello! Please tell me how, besides parsing XML as a text string, to read the parameters from the header (headers):

<?xml version="1.0" encoding="WINDOWS-1251"?>
<?HEADER version="23.52" NAME="SuperSoft"?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rorc, 2019-09-11
@rorc

XML is a text format.
In addition to parsing, options are possible, split by the separator >, with a regular expression.
It is not necessary to read the whole data, it is enough to read only part of the data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question