What's new

PHP How to merge 2 xml links/epg using php?

Status
Not open for further replies.

Minecraftgamer

Forum Guru
Elite
Joined
Aug 1, 2019
Posts
1,575
Reaction
12,981
Points
1,743
please tell me the code
cause I tried many codes from online but failed
I'm kinda new for coding php.
Ang preferred output should be the 2 xml converted into 1 xml link via php.
 
Last edited:
patingin nga ng code . yung screenshot mismo
1631027160042.png
 

Attachments

Ano huhulaan namin kung ano balak mo pag merge?

Please fix your thread para madali

Like giving example
 
Sana man lang ganto ohh
1.XML
Code:
<res>
    <items total="180">
        <item>
            <id>1</id>
            <title>Title 1</title>
            <author>Author 1</author>
        </item>
        ...
    </items>
</res>

2.xml:
Code:
<res>
    <items total="123">
        <item>
            <id>190</id>
            <title>Title 190</title>
            <author>Author 190</author>
        </item>
        ...
    </items>
</res>

MERGE.XML
Code:
<res>
    <items total="303">
        <item>
            <id>1</id>
            <title>Title 1</title>
            <author>Author 1</author>
        </item>
        ...  //items from 1.xml
        <item>
            <id>190</id>
            <title>Title 190</title>
            <author>Author 190</author>
        </item>
        ... //items from 2.xml
    </items>
</res>
 
Status
Not open for further replies.
Back
Top