473,545 Members | 529 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1248
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="documen t(msxsl:node-set($docs)/doc)"/>
</root>
</xsl:template>

"Robert Strickland" <st******@rjson line.net> wrote in message
news:e8******** ******@TK2MSFTN GP11.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 misunderstandin g, 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.mic rosoft.com> wrote in message
news:l9******** ******@cpmsftng xa10.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 misunderstandin g, 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
1957
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> <timestampbegin>000045.20</timestampbegin>
3
2530
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 can envision unions of node sets, and unions of node text. But I know there's much more to the subject than that, if not more alternatives than...
2
9527
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 to create a textfile which is the datasource for the mail merge process, then I'm trying to run Word and mail merge. The code I am trying to use...
3
1875
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, easiest, most efficient way of merging the 2 XML Documents? Can I use DataSet.Merge() facility in ADO.NET?? Any pre-requisites? Any other...
0
1359
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 which add all word docs to one word document. Thanks in Advance Maheshwari
0
7465
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7805
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7416
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7752
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
4944
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3449
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1878
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
701
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.