P
P
Philip Rybalka2014-07-06 21:04:47
XML
Philip Rybalka, 2014-07-06 21:04:47

How to output .xml options using php?

Hello.
I have this .xml file.

<?xml version="1.0" encoding="utf-8"?>
<box>
<text id="1" parameter1="parameter" parameter2="parameter">text</text>
<text id="2" parameter1="parameter" parameter2="parameter">text</text>
<text id="3" parameter1="parameter" parameter2="parameter">text</text>
</box>

Please tell me how to display parameter1 and parameter2 by id.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stepan, 2014-07-06
@FIL_RUS

If you mean XML parsing, then for this use, for example, SimpleXML

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question