DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: calling one xml file from another xml file

  1. #1
    sreeni alakappan Guest

    calling one xml file from another xml file


    Hi,
    I have group of 10 xml files. Of these files there are certain things
    that are the same in all the 10 files. So, I was palnning to move the common
    part to a seperate xml and call that from with each of the 10 files.
    This will increase readability and also make my files not too lenghty.
    If anybody could suggest a way of doing this, I would really appriciate
    their time and help.

    Thanks,
    Sreeni.

  2. #2
    Russell Jones Guest

    Re: calling one xml file from another xml file

    See the XSLT document() function.

    "sreeni alakappan" <srialak@yahoo.com> wrote in message
    news:3ba0d385@news.devx.com...
    >
    > Hi,
    > I have group of 10 xml files. Of these files there are certain things
    > that are the same in all the 10 files. So, I was palnning to move the

    common
    > part to a seperate xml and call that from with each of the 10 files.
    > This will increase readability and also make my files not too lenghty.
    > If anybody could suggest a way of doing this, I would really appriciate
    > their time and help.
    >
    > Thanks,
    > Sreeni.




  3. #3
    Jamie Shaw Guest

    Re: calling one xml file from another xml file


    Do you have an XSLT processor? If you do, you can use XSLT to transform XML
    into XML. You could use an <xsl:include> tag to bring a common stylesheet.
    That stylesheet would then copy the XML into the output document using a
    tag like <xsl:copy>.

    You can have as many of these include tags as you want, so you could break
    your XML down into as many logical components as makes sense for your app.


    "sreeni alakappan" <srialak@yahoo.com> wrote:
    >
    >Hi,
    > I have group of 10 xml files. Of these files there are certain things
    >that are the same in all the 10 files. So, I was palnning to move the common
    >part to a seperate xml and call that from with each of the 10 files.
    >This will increase readability and also make my files not too lenghty.
    >If anybody could suggest a way of doing this, I would really appriciate
    >their time and help.
    >
    >Thanks,
    >Sreeni.



  4. #4
    marcus Guest

    Re: calling one xml file from another xml file


    I don;t know whether this is any help to you:

    http://www.xmlmag.com/upload/free/fe...103/rj0103.asp

    "sreeni alakappan" <srialak@yahoo.com> wrote:
    >
    >Hi,
    > I have group of 10 xml files. Of these files there are certain things
    >that are the same in all the 10 files. So, I was palnning to move the common
    >part to a seperate xml and call that from with each of the 10 files.
    >This will increase readability and also make my files not too lenghty.
    >If anybody could suggest a way of doing this, I would really appriciate
    >their time and help.
    >
    >Thanks,
    >Sreeni.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center