I have a requirement where i have to put a complete xml file content into a attribute of another xml tag.
<BookConfig attribute1="should contain data of another xml file"/>
For example the following xml should be in the content of the detail attribute of BookConfig tag... <books> <book name="b1"> <price> 50 </price> </book> <book name="b2"> <price> 20 </price> </book> </books>
Please help and let me know how this can be done... Waiting for Reply Thanks in Advance.
Can't be done. And it's a really bad idea anyway. Parsers are required to "normalize" attributes by removing new-line characters and replacing blocks of whitespace by a single space character. This normalization would change the data stored in the attribute, perhaps in a significant way.