Click here to Skip to main content
15,898,134 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Null reference exception Pin
Dave Kreskowiak19-Jul-11 9:58
mveDave Kreskowiak19-Jul-11 9:58 
GeneralRe: Null reference exception Pin
David C# Hobbyist.19-Jul-11 10:04
professionalDavid C# Hobbyist.19-Jul-11 10:04 
GeneralRe: Null reference exception Pin
David Mujica19-Jul-11 10:06
David Mujica19-Jul-11 10:06 
JokeRe: Null reference exception Pin
Eddy Vluggen19-Jul-11 10:42
professionalEddy Vluggen19-Jul-11 10:42 
GeneralExplicit Pin
David Mujica20-Jul-11 6:29
David Mujica20-Jul-11 6:29 
GeneralRe: Explicit Pin
Eddy Vluggen20-Jul-11 7:35
professionalEddy Vluggen20-Jul-11 7:35 
GeneralRe: Null reference exception Pin
Shameel20-Jul-11 9:40
professionalShameel20-Jul-11 9:40 
Questionerror while converting string xml to xml using xelement Pin
Ankit Aneja19-Jul-11 5:47
Ankit Aneja19-Jul-11 5:47 
Hi All
I am making a string from dataset and then converting to xml.while converting its giving me error unexpected symbol "=" at location


For Each row In dsGetBVItemDetails.Tables(0).Rows
                       strxmlString += _
                           "<ItemDetails>" & _
                               "<Item code=" + dsGetBVItemDetails.Tables
(0).Rows(i)(0).ToString() + ">" & _
                                   "<Description>" +
dsGetBVItemDetails.Tables(0).Rows(i)(1).ToString() + "</Description>" & _
                               "</Item>" & _
                               "<ItemQty>" + dsGetBVItemDetails.Tables
(0).Rows(i)(2).ToString() + "</ItemQty>" & _
                               "<Message>" + dsGetBVItemDetails.Tables
(0).Rows(i)(3).ToString() + "</Message>" & _
                           "</ItemDetails>"
                       i = i + 1
                   Next

It is giving error while converting only when adding attribute "code" in element Item pls suggest

and then converting like this
XFinalXML = XElement.Parse(strxmlString.ToString())

                   xmlResponse = XElement.Parse(XFinalXML.ToString())
                   xmlResponseDoc = New XDocument(xmlResponse)
                   schemaResponse.Add(Constants.TARGETNAMESPACE, AppDomain
.CurrentDomain.BaseDirectory & "Schema\" & Constants.GetBVItemsResponse)
                   nsResponse = xmlResponseDoc.Root.Name.NamespaceName

Ankit Aneja
"Nothing is impossible. The word itself says - I M possible"

QuestionRe: error while converting string xml to xml using xelement Pin
Richard MacCutchan19-Jul-11 6:34
mveRichard MacCutchan19-Jul-11 6:34 
AnswerRe: error while converting string xml to xml using xelement Pin
Ankit Aneja19-Jul-11 6:37
Ankit Aneja19-Jul-11 6:37 
GeneralRe: error while converting string xml to xml using xelement Pin
Dave Kreskowiak19-Jul-11 7:05
mveDave Kreskowiak19-Jul-11 7:05 
GeneralRe: error while converting string xml to xml using xelement Pin
Richard MacCutchan19-Jul-11 9:29
mveRichard MacCutchan19-Jul-11 9:29 
AnswerRe: error while converting string xml to xml using xelement Pin
Dave Kreskowiak19-Jul-11 7:04
mveDave Kreskowiak19-Jul-11 7:04 
Questionhow to make usercontrols in vb6 Pin
karaikudiselva18-Jul-11 23:40
karaikudiselva18-Jul-11 23:40 
AnswerRe: how to make usercontrols in vb6 Pin
Nagy Vilmos19-Jul-11 0:22
professionalNagy Vilmos19-Jul-11 0:22 
AnswerRe: how to make usercontrols in vb6 Pin
Dalek Dave23-Aug-11 11:30
professionalDalek Dave23-Aug-11 11:30 
Questioncompare voice from mic with a wav file Pin
speedydc1018-Jul-11 12:58
speedydc1018-Jul-11 12:58 
AnswerRe: compare voice from mic with a wav file Pin
Dave Kreskowiak18-Jul-11 18:30
mveDave Kreskowiak18-Jul-11 18:30 
QuestionIs it possible to copy a file to a destination that includes a shortcut? Pin
Jon_Boy18-Jul-11 6:52
Jon_Boy18-Jul-11 6:52 
AnswerRe: Is it possible to copy a file to a destination that includes a shortcut? Pin
Eddy Vluggen18-Jul-11 7:46
professionalEddy Vluggen18-Jul-11 7:46 
GeneralRe: Is it possible to copy a file to a destination that includes a shortcut? Pin
Jon_Boy19-Jul-11 2:37
Jon_Boy19-Jul-11 2:37 
GeneralRe: Is it possible to copy a file to a destination that includes a shortcut? Pin
Eddy Vluggen19-Jul-11 6:19
professionalEddy Vluggen19-Jul-11 6:19 
QuestionChange Form Title Bar Color [modified] Pin
ivo7517-Jul-11 21:01
ivo7517-Jul-11 21:01 
AnswerRe: Change Form Title Bar Color Pin
Dave Kreskowiak18-Jul-11 2:13
mveDave Kreskowiak18-Jul-11 2:13 
GeneralRe: Change Form Title Bar Color Pin
ivo7518-Jul-11 2:25
ivo7518-Jul-11 2:25 

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.