BizTalk Utilities CV ,   Jobs ,   Code library
 
Go to the front page to continue learning about XML or select below:

Contents

ReBlogger Contents

Previous posts in .NET XML, System.XML

 
 
Page 2870 of 20224

XslCompiledTransform.Transform Whitespace

Blogger : Done Means Working
All posts : All posts by Done Means Working
Category : .NET XML, System.XML
Blogged date : 2008 Aug 20

Came across an error when I was using XslCompiledTransfrom.  The error is

White space cannot be stripped from input documents that have already been loaded. Provide the input document as an XmlReader instead.

Mmm OK.  My VB Code was

xsl.Transform(xmlDoc, xw2)

and I modified it to

xsl.Transform(

The xsl includes the xsl xsl:preserve-space elements="*"/>

<

The white space is not stripped but whatever.

If you googled and found this I hope it helps you out.  I wish I had found it hours ago.  I like to post things in my blog that take me a while to figure out in the hopes it helps someone else.

New XmlNodeReader(xmlDoc), xw2)


Read comments or post a reply to : XslCompiledTransform.Transform Whitespace
Page 2870 of 20224

Newest posts
 

    Email TopXML