Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP XML Using ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 15th, 2004, 11:04 AM
Registered User
 
Join Date: Jun 2003
Location: Northolt, Middlesex, United Kingdom.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Please save my sanity

Good Afternoon All

    The two XML files shown below, contain the same data.

    I need to translate from one to the other (BOTH WAYS) in two ASP files.

    I can do this by the use of some rather cumbersome VBS.

    However, I seem to remember seeing an article somewhere showing how to do it using XSL (I think)

    I cant find the article sadly.



    I also would like to get some "generic"-ish script to do the job.


    Can anyone please either;

        point me to a resource that tells me how to do it;

    or

        give me some working scripts that would do the job.



    I thank you all in advance and anticipation - if you can help, you will save an old guy from 'going completely round the twist'.


Best regards
Thank you

Pete (Northolt UK)





<?xml version="1.0"?>
<HOTEL-STUFF>
    <ROOM-DETS>
      <ROOM-CODE VALUE="R40"/>
      <RESN-CODE>
       <RESN-REF VALUE="VR-407"/>
       <ARRIVAL-DATE VALUE="27/07/1998"/>
       <STAY-DAYS VALUE="2"/>
       <CLIENT-CODE VALUE="DAL00322"/>
       <CLIENT-NAME VALUE="Marzak"/>
      </RESN-CODE>
      <RESN-CODE>
       <RESN-REF VALUE="VR-417"/>
       <ARRIVAL-DATE VALUE="29/07/1998"/>
       <STAY-DAYS VALUE="14"/>
       <CLIENT-CODE VALUE="DAL00217"/>
       <CLIENT-NAME VALUE="Hathaway"/>
      </RESN-CODE>
      <RESN-CODE>
       <RESN-REF VALUE="VR-477"/>
       <ARRIVAL-DATE VALUE="27/07/2004"/>
       <STAY-DAYS VALUE="2"/>
       <CLIENT-CODE VALUE="DAL00322"/>
       <CLIENT-NAME VALUE="Marzak"/>
       <ROOM-FIXED VALUE="True"/>
      </RESN-CODE>
    </ROOM-DETS>
    <ROOM-DETS>
      <ROOM-CODE VALUE="R72"/>
      <RESN-CODE>
       <RESN-REF VALUE="VR-123"/>
       <ARRIVAL-DATE VALUE="27/07/1998"/>
       <STAY-DAYS VALUE="2"/>
       <CLIENT-CODE VALUE="XYZ00322"/>
       <CLIENT-NAME VALUE="Smith"/>
      </RESN-CODE>
    </ROOM-DETS>
</HOTEL-STUFF>





<?xml version="1.0"?>
<HOTEL-STUFF>
    <ROOM-DETS ROOM-CODE="R40" RESN-REF="VR-407" ARRIVAL-DATE="27/07/1998" STAY-DAYS="2" CLIENT-CODE="DAL00322" CLIENT-NAME="Marzak"/>
    <ROOM-DETS ROOM-CODE="R40" RESN-REF="VR-417" ARRIVAL-DATE="29/07/1998" STAY-DAYS="14" CLIENT-CODE="DAL00217" CLIENT-NAME="Hathaway"/>
    <ROOM-DETS ROOM-CODE="R40" RESN-REF="VR-477" ARRIVAL-DATE="27/07/2004" STAY-DAYS="2" CLIENT-CODE="DAL00322" CLIENT-NAME="Marzak" ROOM-FIXED="True"/>
    <ROOM-DETS ROOM-CODE="R72" RESN-REF="VR-123" ARRIVAL-DATE="27/07/1998" STAY-DAYS="2" CLIENT-CODE="XYZ00322" CLIENT-NAME="Smith"/>
</HOTEL-STUFF>


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to save form Omomani Infopath 0 January 3rd, 2008 06:15 AM
save an image ming C# 2005 0 July 11th, 2006 07:14 PM
"Save As" issue patrokolos BOOK: Excel 2003 VBA Programmer's Reference 0 November 18th, 2005 03:35 PM
How do you save a form as is? flyingfox VB.NET 1 May 21st, 2004 03:47 PM
Will not save luckychap Access 3 January 26th, 2004 01:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.