473,320 Members | 1,845 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to pass parameter to XML

Hello all;

I Want to pass parameter to Xml,
this is my xml

strBuildxml &= "<?xml version='1.0'?>" & Microsoft.VisualBasic.ControlChars.NewLine
'===============================
'build <InfoLinkDocument>

strBuildxml &= "<InfoLinkDocument>" & Microsoft.VisualBasic.ControlChars.NewLine

'===============================
' build <AccessRequest>
strBuildxml &= "<AccessRequest>" & Microsoft.VisualBasic.ControlChars.NewLine

strBuildxml &= "<DocumentType>" & txtDocumentType.Text & "</DocumentType> " & Microsoft.VisualBasic.ControlChars.NewLine
strBuildxml &= "<EntityID>" & txtEntityID.Text & "</EntityID> " & Microsoft.VisualBasic.ControlChars.NewLine
strBuildxml &= "<Version>" & txtVersion.Text & "</Version> " & Microsoft.VisualBasic.ControlChars.NewLine

'If txtTimeStamp.Text = " '09:00 am' > Now.Hour < ' 16:00 pm'" Then
strBuildxml &= "<TimeStamp>" & txtTimeStamp.Text & "</TimeStamp> " & Microsoft.VisualBasic.ControlChars.NewLine
'Else
' MsgBox("The Pickup Time not correct")
'End If

strBuildxml &= "<Reference1>" & txtReference1.Text & "</Reference1> " & Microsoft.VisualBasic.ControlChars.NewLine

If txtReference2.Text <> "" Then
strBuildxml &= "<Reference2>" & txtReference2.Text & "</Reference2> " & Microsoft.VisualBasic.ControlChars.NewLine
End If

If txtReference3.Text <> "" Then
strBuildxml &= "<Reference3>" & txtReference3.Text & "</Reference3> " & Microsoft.VisualBasic.ControlChars.NewLine
End If

If txtReference4.Text <> "" Then
strBuildxml &= "<Reference4>" & txtReference4.Text & "</Reference4> " & Microsoft.VisualBasic.ControlChars.NewLine
End If

If txtReference5.Text <> "" Then
strBuildxml &= "<Reference5>" & txtReference5.Text & "</Reference5> " & Microsoft.VisualBasic.ControlChars.NewLine
End If

strBuildxml &= "<ReplyEmailAddress>" & txtReplyEmailAddress.Text & "</ReplyEmailAddress> " & Microsoft.VisualBasic.ControlChars.NewLine
strBuildxml &= "<NotifyOnSuccess>" & ddlNotifyOnSuccess.SelectedValue.ToString & "</NotifyOnSuccess> " & Microsoft.VisualBasic.ControlChars.NewLine


'Close <AccessRequest>
'===============================
strBuildxml &= "</AccessRequest>" & Microsoft.VisualBasic.ControlChars.NewLine
Aug 17 '08 #1
1 3317
jkmyoung
2,057 Expert 2GB
Where are you getting the parameter from?
Where do you want to pass the parameter?
How does changing the parameter change your xml?
Aug 19 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Yarik | last post by:
Hello there! I am working with MS SQL Server 2000. I have a table function that takes an integer parameter and returns a table, and I can successfully use it like this (passing a literal as a...
7
by: Zlatko Matiæ | last post by:
Let's assume that we have a database on some SQL server (let it be MS SQL Server) and that we want to execute some parameterized query as a pass.through query. How can we pass parameters to the...
0
by: Zlatko Matiæ | last post by:
Hi everybody! Recently I was struggling with client/server issues in MS Access/PostgreSQL combination. Although Access is intuitive and easy to use desktop database solution, many problems...
1
by: Dion Heskett | last post by:
How can I pass a Class as a parameter to in a method ? i.e. Private myMethod( string pram1, Classobject as pram2) { Classobject.DataSource = reader; Classobject.DataBind(); }
9
by: Jay Douglas | last post by:
Hello, I am needing to pass a class object (this) by reference to a method in a different class. When I do the following code I get the error (Cannot pass '<this>' as a ref or out argument because...
1
by: | last post by:
Hi, I've defined an ObjectDataSource and a parameterized DataSet. I would like it if I could pass the parameter value that describes the query that creates the DataSet as part of a user control...
3
by: Brett | last post by:
I have several classes that create arrays of data and have certain properties. Call them A thru D classes, which means there are four. I can call certain methods in each class and get back an...
4
by: _Mario.lat | last post by:
Hallo, I have a little question: In the function session_set_save_handler I can pass the name of function which deal with session. In Xoops code I see the use of this function like that: ...
5
by: David++ | last post by:
Hi folks, I would be interested to hear peoples views on whether or not 'pass by reference' is allowed when using a Web Service method. The thing that troubles me about pass-by-reference into...
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.