I am new in XML parsing. I have a Xml File and i need to extract some element from this xml and create a new xml file with these selected element and some extra element.
what do i need to understand before start this and how to do it.?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
LINQ to XML makes this very easy. For example, this will copy all the
fooelements fromexisting.xmlintonew.xmlunder animportedelement, creating anotherelement at the same time:While XSLT (suggested elsewhere) would quite possibly work very well, I’ve always found it somewhat fiddly to use – and I’d prefer not to have to learn another language for something I can achieve easily within C#. YMMV.