Click here to Skip to main content
15,901,505 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 10:59
priyaahh18-Jul-10 10:59 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 11:08
professionalDaveAuld18-Jul-10 11:08 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 11:47
priyaahh18-Jul-10 11:47 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 12:10
professionalDaveAuld18-Jul-10 12:10 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 13:38
priyaahh18-Jul-10 13:38 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 14:00
professionalDaveAuld18-Jul-10 14:00 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 19:44
priyaahh18-Jul-10 19:44 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 22:23
professionalDaveAuld18-Jul-10 22:23 
Well i fail to see what you are doing wrong. Don't give in!

At the end of the day, all you are doing is simple string manipulation, it doesn't matter if it is in XML format or any other text based format.

If your output XML file shows the attributes after your text generation then it is working.

If your output does not show the attributes, then your code is wrong.

You maybe need to start putting in extra breakpoints, debug.print(), or message boxes statements through your code until you can find out what is going on. everytime you generate a node or an attribute use these statements to see what the string is before and after. That way you will be able to see what you are getting versus what you are expecting at each stage. This is basic troubleshooting. As i have stated before your function is way to big, and you really need to restructure and break out lots of smaller helper functions which can then be called to piece the final text XML string.

As i say, this is basic string manipulation, so something obvious is wrong somewhere!
Dave

Don't forget to rate messages!
Find Me On: Web|Facebook|Twitter|LinkedIn
Waving? dave.m.auld[at]googlewave.com


GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 22:59
priyaahh18-Jul-10 22:59 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 23:17
professionalDaveAuld18-Jul-10 23:17 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 23:32
priyaahh18-Jul-10 23:32 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld18-Jul-10 23:48
professionalDaveAuld18-Jul-10 23:48 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh18-Jul-10 23:59
priyaahh18-Jul-10 23:59 
GeneralRe: Adding Attributes to XML node using VBA Pin
DaveAuld19-Jul-10 0:02
professionalDaveAuld19-Jul-10 0:02 
GeneralRe: Adding Attributes to XML node using VBA Pin
priyaahh21-Jul-10 1:26
priyaahh21-Jul-10 1:26 
GeneralMessage Removed Pin
16-Jul-10 16:56
June 19, 201016-Jul-10 16:56 
GeneralRe: Code for Enrollment System Pin
Richard MacCutchan16-Jul-10 23:11
mveRichard MacCutchan16-Jul-10 23:11 
GeneralRe: Code for Enrollment System [modified] Pin
Luc Pattyn16-Jul-10 23:29
sitebuilderLuc Pattyn16-Jul-10 23:29 
GeneralRe: Code for Enrollment System Pin
DaveAuld17-Jul-10 1:33
professionalDaveAuld17-Jul-10 1:33 
QuestionHow can use treenode's checkbox to control other controls whether are visible or not? Pin
sanyexian15-Jul-10 21:05
sanyexian15-Jul-10 21:05 
AnswerRe: How can use treenode's checkbox to control other controls whether are visible or not? Pin
Estys16-Jul-10 0:57
Estys16-Jul-10 0:57 
GeneralRe: How can use treenode's checkbox to control other controls whether are visible or not? Pin
sanyexian16-Jul-10 22:57
sanyexian16-Jul-10 22:57 
GeneralRe: How can use treenode's checkbox to control other controls whether are visible or not? Pin
Estys17-Jul-10 1:29
Estys17-Jul-10 1:29 
Questionvb script code Pin
henkbongers15-Jul-10 20:42
henkbongers15-Jul-10 20:42 
AnswerRe: vb script code Pin
Eddy Vluggen16-Jul-10 1:24
professionalEddy Vluggen16-Jul-10 1:24 

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.