Click here to Skip to main content
11,805,035 members (61,472 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C#

I want to create an XML from a XML using XSLT. The input xml would contain some tags that needs to be replaced or added in the output xml. I want write the XSL file for same can you please help me in this

e.g :
Input XML :
<add name="ABC" connectionstring="Data Source=abc;Initial Catalog=abc;Integrated Security=SSPI" />

Output XML generated using XSLT :-
    <add name="abc" connectionstring="Data Source=abc;Initial Catalog=abc;Integrated Security=SSPI" />
    <membership defaultprovider="abc" userisonlinetimewindow="20">
        <clear />
        <add name="abc" type="aabc.BusinessObject.<?xml version=" 1.0="?><br mode=" hold=" /><configuration><br mode=" abc=" connectionString=" data="" source="abc;Initial" catalog="abc;Integrated" security="SSPI"/">
    <membership defaultprovider="abc" userisonlinetimewindow="20">
        <clear />
        <add name="abc" type="" passwordformat="Encrypted" connectionstringname="abc" enablepasswordretrieval="true" enablepasswordreset="false" requiresquestionandanswer="false" writeexceptionstoeventlog="true" minrequiredpasswordlength="5" minrequirednonalphanumericcharacters="0" requiresuniqueemail="false" />
"passwordFormat="Encrypted" connectionStringName="abc" enablePasswordRetrieval="true" enablePasswordReset="false" requiresQuestionAndAnswer="false" writeExceptionsToEventLog="true" minRequiredPasswordLength="5" minRequiredNonalphanumericCharacters="0" requiresUniqueEmail="false"/>

Please help me in this. Waiting for your response.


[Edit]Pre tags added, but don't know how to format the last part, so kept it inside code blocks.[/Edit]
Posted 6-Dec-12 23:38pm
Sergey Alexandrovich Kryukov at 7-Dec-12 15:25pm
Not a question. You would need to show your code, not just output. You would also need to describe your goal, and tell us: 1) what did you expect to get; 2) what did you observe, 3) why do you think your result is wrong; all of the above should come with appropriate samples.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

A couple of tutorial sites to get you started.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 315
1 CPallini 210
2 Richard Deeming 200
3 Sergey Alexandrovich Kryukov 168
4 CHill60 150
0 OriginalGriff 3,255
1 Maciej Los 1,990
2 KrunalRohit 1,907
3 CPallini 1,855
4 Richard MacCutchan 1,227

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 9 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100