Click here to Skip to main content
14,302,925 members
   

XML / XSL

 
AnswerRe: XSL to get only elements which have no childs Pin
Richard Deeming19-Sep-17 2:15
mveRichard Deeming19-Sep-17 2:15 
GeneralRe: XSL to get only elements which have no childs Pin
MrKBA19-Sep-17 3:02
memberMrKBA19-Sep-17 3:02 
Questionshare me best practices to enhance xslt related functionality in production Pin
Member 1178590912-Jul-17 1:50
memberMember 1178590912-Jul-17 1:50 
AnswerRe: share me best practices to enhance xslt related functionality in production Pin
Richard MacCutchan12-Jul-17 3:58
protectorRichard MacCutchan12-Jul-17 3:58 
GeneralRe: share me best practices to enhance xslt related functionality in production Pin
jschell1-Sep-17 12:24
memberjschell1-Sep-17 12:24 
GeneralRe: share me best practices to enhance xslt related functionality in production Pin
Richard MacCutchan1-Sep-17 21:42
protectorRichard MacCutchan1-Sep-17 21:42 
QuestionTransform XML Pin
TML6-Jul-17 9:15
memberTML6-Jul-17 9:15 
AnswerRe: Transform XML Pin
Richard Deeming6-Jul-17 10:40
mveRichard Deeming6-Jul-17 10:40 
TML wrote:
Dim sw As New StringWriter()
ds.WriteXml(sw)
...
DocXSL.Transform(DocXML, Nothing, sw)
Dim result As String = sw.ToString()

You've declared a single StringWriter instance. You've written the XML to it. Then you've written the results of the transformation to it.

It's hardly surprising that it then contains both the XML and the results of the transformation. Smile | :)

After loading the XML, you either need to create a new StringWriter instance, or you need to clear the existing one.
...

DocXML.LoadXml(sw.ToString())

' Create a new instance:
' sw = New StringWriter()

' OR: Clear the existing one:
sw.GetStringBuilder().Clear()

...




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


AnswerRe: Transform XML Pin
TML6-Jul-17 10:50
memberTML6-Jul-17 10:50 
Questionsaving a file to the internet. Pin
felixjrz198531-May-17 21:54
memberfelixjrz198531-May-17 21:54 
SuggestionRe: saving a file to the internet. Pin
Richard MacCutchan31-May-17 22:32
protectorRichard MacCutchan31-May-17 22:32 
GeneralRe: saving a file to the internet. Pin
felixjrz19851-Jun-17 0:43
memberfelixjrz19851-Jun-17 0:43 
GeneralRe: saving a file to the internet. Pin
Richard MacCutchan1-Jun-17 1:03
protectorRichard MacCutchan1-Jun-17 1:03 
GeneralRe: saving a file to the internet. Pin
Gerry Schmitz1-Jun-17 3:20
mveGerry Schmitz1-Jun-17 3:20 
AnswerRe: saving a file to the internet. Pin
Terry Perez11-Sep-17 3:41
memberTerry Perez11-Sep-17 3:41 
QuestionXSLT passing a variable to starts-with Pin
bjmallon13-Feb-17 14:03
memberbjmallon13-Feb-17 14:03 
AnswerRe: XSLT passing a variable to starts-with Pin
Richard Deeming14-Feb-17 2:32
mveRichard Deeming14-Feb-17 2:32 
GeneralRe: XSLT passing a variable to starts-with Pin
bjmallon16-Feb-17 18:45
memberbjmallon16-Feb-17 18:45 
GeneralRe: XSLT passing a variable to starts-with Pin
Richard Deeming17-Feb-17 1:48
mveRichard Deeming17-Feb-17 1:48 
GeneralRe: XSLT passing a variable to starts-with Pin
bjmallon20-Feb-17 22:55
memberbjmallon20-Feb-17 22:55 
GeneralRe: XSLT passing a variable to starts-with Pin
Richard Deeming21-Feb-17 1:42
mveRichard Deeming21-Feb-17 1:42 
GeneralRe: XSLT passing a variable to starts-with Pin
bjmallon21-Feb-17 10:24
memberbjmallon21-Feb-17 10:24 
QuestionHow to generate XML file with serialisation in vb.net Pin
Member 1280320219-Oct-16 8:06
memberMember 1280320219-Oct-16 8:06 
Rant[REPOST] How to generate XML file with serialisation in vb.net Pin
Richard Deeming19-Oct-16 9:28
mveRichard Deeming19-Oct-16 9:28 
QuestionTransform the date format from yyyy/mm/dd to mm/dd/yyyy Pin
Member 1278840611-Oct-16 15:21
memberMember 1278840611-Oct-16 15:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.