Thread: XML conversion

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2011
    Posts
    1
    Rep Power
    0

    XML conversion


    Hi,

    Could anyone please help me to convert XML to XML by using XSLT?

    My input xml is:
    <Root>
    <Students>
    <Student>
    <RegId>12001</RegId>
    <Absences>
    <Absence>
    <StartDate>2010-11-01</StartDate>
    <EndDate>2010-11-02</EndDate>
    <NoOfLeave>2</NoOfLeave>
    <Category>SIC</Category>
    </Absence>

    <Absence>
    <StartDate>2010-11-03</StartDate>
    <EndDate>2010-11-03</EndDate>
    <NoOfLeave>1</NoOfLeave>
    <Category>SIC</Category>
    </Absence>

    <Absence>
    <StartDate>2010-11-04</StartDate>
    <EndDate>2010-11-04</EndDate>
    <NoOfLeave>1</NoOfLeave>
    <Category>SIC</Category>
    </Absence>

    <Absence>
    <StartDate>2010-11-05</StartDate>
    <EndDate>2010-11-05</EndDate>
    <NoOfLeave>1</NoOfLeave>
    <Category>TRN</Category>
    </Absence>

    <Absence>
    <StartDate>2010-11-06</StartDate>
    <EndDate>2010-11-06</EndDate>
    <NoOfLeave>1</NoOfLeave>
    <Category>SIC</Category>
    </Absence>

    </Absences>
    </Student>
    </Students>
    </Root>

    And, I want out in XML format (by using XSL) as follows:

    <Root>
    <Students>
    <Student>
    <RegId>12001</RegId>
    <Absences>
    <Absence>
    <StartDate>2010-11-01</StartDate>
    <EndDate>2010-11-04</EndDate>
    <NoOfLeave>4</NoOfLeave>
    <Category>SIC</Category>
    </Absence>

    <Absence>
    <StartDate>2010-11-05</StartDate>
    <EndDate>2010-11-05</EndDate>
    <NoOfLeave>1</NoOfLeave>
    <Category>TRN</Category>
    </Absence>

    <Absence>
    <StartDate>2010-11-06</StartDate>
    <EndDate>2010-11-06</EndDate>
    <NoOfLeave>1</NoOfLeave>
    <Category>SIC</Category>
    </Absence>

    </Absences>
    </Student>
    </Students>
    </Root>

    Thanks.
  2. #2
  3. Moderator Emeritus
    Devshed Supreme Being (6500+ posts)

    Join Date
    Feb 2002
    Location
    Austin, TX
    Posts
    7,184
    Rep Power
    2220
    Post whatever XSLT you've written so far, maybe we can help you work through any problems you're encountering.
    DrGroove, Devshed Moderator | New to Devshed? Read the User Guide | Connect with me on LinkedIn
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2009
    Posts
    13
    Rep Power
    0

    PDF to XML Conversion?


    I want the details about of PDF to XML Conversion Steps?

    web development services | Web development company

IMN logo majestic logo threadwatch logo seochat tools logo