[Simple-support] Add one xml file content into other xml and parse using simplex-xml framework
Brought to you by:
niallg
|
From: MANDAR V. <man...@gm...> - 2016-03-21 07:03:54
|
Hi,
I have two xml file
XML1:
<Result>
<DataSources>
<DataSource id="dscfid1" type="oracle">
<Properties key="sourceName">sampletable</Properties>
<Properties key="dsConnectionID">test</Properties>
</DataSource>
</DataSources>
</Result>
XML:2
<DSConnection id="dc1">
<Properties key="dbType">oracle</Properties>
<Properties key="userName">xxx</Properties>
<Properties key="password">xxx</Properties>
</DSConnection>
I want the result like:
<Result>
<DataSources>
<DataSource id="dscfid1" type="oracle">
<Properties key="sourceName">sampletable</Properties>
<Properties key="dsConnectionID">test</Properties>
</DataSource>
</DataSources>
<DSConnection id="dc1">
<Properties key="dbType">oracle</Properties>
<Properties key="userName">xxx</Properties>
<Properties key="password">xxx</Properties>
</DSConnection>
</Result>
How i can do using simple-xml framework(http://simple.sourceforge.net/).
I tried to use Object substitution from simple-xml but not able to manage.
Regards,
Mandar Vaidya.
|