473,382 Members | 1,348 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Need help merging documents

I need to merge 3 or more xml streams (I have 4 string variables that
contain xml) into a single xml stream before doing a transformation. Is
there any sample code or site to show the way?

Thanks
Nov 12 '05 #1
3 1241
Input to XSLT cannot realy be a stream (in the general case). Meaning that
XSLT processing cannot be implemented in the forward only fassion. You can
adderss each document through document($uri) function.
If you want to merge them into one node-set:
<xsl:variable name="docs">
<doc>a.xml</doc>
<doc>b.xml</doc>
<doc>c.xml</doc>
</xsl:variable>

<xsl:template match="/">
<root>
<xsl:copy-of select="document(msxsl:node-set($docs)/doc)"/>
</root>
</xsl:template>

"Robert Strickland" <st******@rjsonline.net> wrote in message
news:e8**************@TK2MSFTNGP11.phx.gbl...
I need to merge 3 or more xml streams (I have 4 string variables that
contain xml) into a single xml stream before doing a transformation. Is
there any sample code or site to show the way?

Thanks

Nov 12 '05 #2
Thanks for Yan's quick response!

Hi Robert,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to merge several Xml strings.
If there is any misunderstanding, please feel free to let me know.

Besides using XSL, you can also use classes in .NET framework and MSXML to
achieve this. Here I have found some KB articles about doing so.

http://support.microsoft.com/default...b;en-us;311530
http://support.microsoft.com/default...b;en-us;286817

HTH. If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 12 '05 #3
Thanks

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:l9**************@cpmsftngxa10.phx.gbl...
Thanks for Yan's quick response!

Hi Robert,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to merge several Xml strings.
If there is any misunderstanding, please feel free to let me know.

Besides using XSL, you can also use classes in .NET framework and MSXML to
achieve this. Here I have found some KB articles about doing so.

http://support.microsoft.com/default...b;en-us;311530
http://support.microsoft.com/default...b;en-us;286817

HTH. If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mael Guillemot | last post by:
Hi, I have one xml looking like this: ========================= <video> <shot id="1"> <timestampbegin>000030.90</timestampbegin> <feature>blabla</feature>...
3
by: William Ahern | last post by:
I'm looking for resources on splitting and merging XML trees. Specifically, on methods to pare large XML documents into smaller documents which can be merged later. Off of the top of my head, I...
2
by: North Country Boy | last post by:
Hi I'm trying to run the mail merge operation in MS Word from within Javascript. I've already done this in VB but I'm having problems trying to do the same thing in Javascript. First I am trying...
3
by: Patrick | last post by:
I have got 2 XML documents, both of which conform to the same XSD Schema, which define possible optional elements. The 2 XML documents contain 2 disjoint set of XML elements. What is the best,...
0
by: Maheshwari | last post by:
Hi Can you please help with some info on how to open existing word documents / merge two word documents from a C# program ? My user will select 2 or many word docs and i have to create a c# exe...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.