I'm using a transform stylesheet to convert xml doc A into xml doc B. This is what's part of doc A:
<From>
<PartnerInformation>
<PartnerName>Company A</PartnerName>
<PartnerIdentifier Agency="ID">1</PartnerIdentifier>
</PartnerInformation>
</From>
<To>
<PartnerInformation>...
I know very little about xslt.
Here's my .xslt that transforms xml doc A into xml doc B:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output version="1.0" encoding="UTF-8" indent="yes" method="xml"...
I would like to replace the 'OrderCreate' with a parameter called myParam (sometimes the parameter will be "OrderCreate", sometimes "OrderChange").
Here's the code where the value is hardcoded - it works:
<xsl:if test="(position() = last()) and...
The code below is what I use for posting an xml file to the remote server. It works fine. However, there are times when I just want to test if the server is down without actually sending any file. How can I do that?
public void PostResponse(String fileName, String uploadUrl)
{
ASCIIEncoding...
I have a Windows Service that reads the settings from the App.config file. If I need to make a change to one of the settings, I have to rebuild the app and reinstall the service. Is it possible to have this App.config file sitting in some directory and let the service know where it is so the...
I have a Windows Service which processes some files every X seconds. The service should run 24/7 unless there is an exception, in which case I stop the service. However, there are times when I would want to stop the service manually (through Admin Tools/Services). How do I ensure that when I do...
I have a Windows Service with the timer - every 15 seconds I'm calling a function. I need to add some logic to tell the timer to "wait" until the function is done executing its code (which can exceed 15 seconds) because I don't wait the timer to "hit" the function while it's still executing...
I'm trying to compare two strings a and b. When I inspect the variables in Eclipse I see the following:
a
value=char[6]
[0]=t
[1]=e
[2]=s
[3]=t
[4]=
[5]=
b
value=char[4]
[0]=t
[1]=e
[2]=s
[3]=t
When I do a comparison if (a == b), the if condition is never met. If I hard-code a="test", then...
I'm looking for code that converts date/time in GMT format to the local time zone format. I found some examples on the web, but they don't account for daylight savings. Is there any java function that would do that for me?
I'm fairly new to xsd. I'm validating xml against xsd using XmlReaderSettings. It looks like my xsd does not verify the element path: My schema definition allows for both OrderProperties and OrderPartners elements, however Partner can be specified only under OrderPartners. In other words, the...
Right now, in order to validate my xml file against xsd, I include the following line in the xml file:
xmlns="urn:mySchemaName"
Is it possible to link xml to xsd without specifying the schema in the xml file?
Thank you for your help!
I'm using XSLT to tranform an order create xml into an order response xml. My stylesheet needs to do two things:
1. Replace all occurrences of "OrderCreate" with "OrderResponse". The code below replaces a single tag called <OrderCreate>. How do I make it replace tags like <OrderCreateBody> into...
I'm adding several worksheets to my Excel spreadsheet. After the last one is added, I activate the first worksheet:
workbook.Worksheets.Select(1)
The problem with that is that when I open the .xls and make a change to that first worksheet (such as hide some rows), the change is being reflected...
Let's say I have 10 customers that I need to select from my SQL database. I'm using a join in my select statement and the tables are pretty big. I have some processing to be done for each customer after it's been selected. I'd like to know what would be better in terms of performance (speed)...
I'm trying to use the get_range method on an Excel sheet, but when I type 'xlSheet.' I don't see the method in the drop-down. I see Cells, Name, etc. I don't know why.
This is my code:
Dim workbook As Excel.Workbook = workbooks.Add(Excel.XlWBATemplate.xlWBATWorksheet)
Dim xlSheet As...
When I install my VB .NET application, it creates a folder under the Programs menu. I have two items in that folder. They seem to appear there in the "default" order imposed by VS. How can I change the order of those items? I cannot drag and drop.
Thanks for any help!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.