on 04-02-2008 7:07 AM
i'm in need to merge two Xml files.....
Example,
File1:
<root>
<a>
<b/>
</a>
</root>
File2:
<root>
<a>
<c/>
</a>
<d/>
</root>
Listing 2 shows the command-line input to merge these two files using the XmlMerge utility, followed by the resulting output.
output:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<a>
<b />
<c />
</a>
<d />
</root>
thanks & regards
rajesh...
Hi rajesh_beu,
Could you please share the code how you are trying to read an xml stored under /src/mimes/<component> in your WD application?
I've been using DOM and all I get is null everytime..
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Pl go through this http://www.javaworld.com/javaworld/jw-07-2007/jw-07-xmlmerge.html
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello rajesh,
have you tried the WDCopyService?
There is a class in the WD API called WDCopyService and this class provides the functionallity to copy corresponding attributes from one class to another.
So if you create two objects out of your XML Files you can try to merge the values with the method: copyCorresponding().
hope this will help
kind regards
Fabian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.