It appears adding namespace:
xmlns:soapenv=" http://schemas.xmlsoap .org/soap/envelope/"
And adding this line:
<xsl:template match="@soapenv :encodingstyle"/>
Seems to have solved my issue.
User Profile
Collapse
-
I have managed to get just the body after many alterations to the initial XSLT script:
...Code:<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exclude-result-prefixes="xsi"> <xsl:output method="xml" omit-xml-declaration="yes" indent="no"/> <xsl:template match="*">
Leave a comment:
-
XSLT remove 'EncodingStyle'
Hello,
I'm currently working with XSLT, although rather simplistic. I'm struggling trying to remove the encodingstyle property from a SOAP XML envelope using XSLT scripts.
This is the XML I'm working with, a simple testing envelope:
...Code:<?xml version="1.0" encoding="ISO-8859-1"?> <soapenv:envelope xmlns:urn="schemas-microsoft-com:office:spreadsheet"
-
To simply take of 1 character at a time, you can use the Substring function which creates a new string from your initial string, but in this case you can specify an index. If you put this in a loop and subtract 1 character at a time, I think you get what you want.
This code did it for me.
...Code:static void Main(string[] args) { string line = "This is my sentence";Leave a comment:
-
ListBox with background image
Hi,
I have been trying to put a background image on a listbox control.
The only way I saw possible was to inherit the listbox control and override the OnPaint event.
...Code:class ListboxWithBgimage : ListBox { // Property does not accept null, weird Image bgImage = Resources.list_log; public ListboxWithBgimage() : base() { -
Could it have something to do with the way I read memory? As in, one byte at a time. Could it solve the problem if I read e.g 20/30 bytes at once? How would I do this with an array, and properly converting whatever comes in Data to normal characters?Leave a comment:
-
Hi Frinavale,
I have just tried this using TextBox1.Update (), but the result is still the same, also when I put the textbox inside a panel.
What I did was put a breakpoint on the readprocessmemo ry, and Chr(Data), when I pause it just after readprocessmemo ry, the first time, Data returns 0. While this seems kinda odd as it does run through the ReadProcessMemo ry. Whatever I try, it just skips the first character that comes...Leave a comment:
-
I have looked into that several times, even tried changing the offset address from 8723E9 to H8723E8 or H8723E7, but it had no effect, neither did changing current_byte from 0 to -2 or any other value, except upwards. Whatever I do, the first character after Data returns 0, is left out.
Code:Dim current_byte As Integer = 0
Leave a comment:
-
Think I found a way around this now, using:
Now it displays the string correctly in the textbox, but still the very first character is left out.Code:Text = TextBox1.Text + Chr(Data) TextBox1.Text = Text
It should read: "This is a test", but instead it comes up in the textbox as "his is a test"
Is there a way to solve that?...Leave a comment:
-
Hi MrMancunian,
Thanks for your reply, but this did not seem to work.
This time 'Text' was left empty the whole time.
What I did notice was that if I used:
Text = Chr(Data) + Text
The whole string came out fine, except that it was flipped the wrong way around.Leave a comment:
-
Using a string array
Hi,
I have a read process memory function, which is in a Do ... Loop.
...Code:Do On Error Resume Next ReadProcessMemory(pHandle, (&H8723E9 + current_byte), Data, 1, 0&) Text = Text + Chr(Data) current_byte = current_byte + 1 Loop Until current_byte = 17 CloseHandle(pHandle) -
Protecting a programs memory
Hi,
I have a small anti-cheat program for a game, and I want to protect it against people trying to bypass or modify the program. What I thought of myself was - no idea if this is possible - have it detect if it's memory is being accessed or modified, and/or block it. In other words, create like somesort of a "firewall" around the program.
I only had this idea in mind, havent made any attempts yet as... -
I have managed to add a DatagridviewIma geColumn, but I still cannot figure out how to use any of the resource pictures.Leave a comment:
-
[VB2005] Image in Datagridview
Hi,
I have a small servermanager where it loads up all players that are currently playing a game. The players are divided in blue and red team.
I want to have a small 8x5 (red/blue) image display in a cell in front of the whole row that shows the user which team the player is in.
Is this possible?
I have already added both files to the resources, but, when I use "Resources. *" it turns... -
Fixed now, I had an error somewhere else, which meant during debug, VB2005 didnt show the latest changes I made in code. Thanks for helpLeave a comment:
-
I cannot use "ToFloat" and as type, my VB2005 doesnt recognise a Float either.
Currently I have:
This results in 1,186207, this means its rounded...Code:Dim ratio As Decimal Dim ratio2 As Int32 Dim ratio3 ratio = Val(txt_kills.Text / txt_deaths.Text) * 100 ratio2 = Decimal.ToInt32(ratio) ratio3 = Val(ratio2 / 100)Leave a comment:
-
Some math problems
Hi,
Im making a small tool that helps gamers keep track of their kills and deaths, and their kill/death ratio.
I calculate ratio on startup of the program, straight after kills and deaths are loaded off my website.
At the moment, kills = 172 and deaths = 145. Ratio results in 1,1862068. How...Code:Dim ratio As Decimal ratio = Val(txt_kills.Text / txt_deaths.Text)
-
Finding process IP connections
Im making a small servermanager for a game. I have a list of players with their IP's that are currently connected to the the whole game. I want to find out what IP's are connected to a certain process so I can match these with the list of players and then add the players that are in the server hosted by this servermanager, into the playerlist.
Adding players to that list and looking them up for a matching IP already works. I just cant... -
I put names.txt in my directory, it got picked up. Then renamed it to NaMeS.TxT, and it told me it wasnt there. Then added "= True", and "Import System.IO" at the top, and it found the file straight away. Maybe in rush I mis-spelled the file, or I made an error somewhere else.Leave a comment:
-
Thanks for your quick replies.
I feel stupid now. I forgot to add "= True". I just had:
If IO.File.Exists( ) Then
It now is:
If IO.File.Exists( ) = True Then
And now is working as it should.
Thanks again.
Evolution445Leave a comment:
No activity results to display
Show More
Leave a comment: