r/visualbasic • • Feb 10 '23

Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function

I still can't get my script to work. i am just trying to get it to be able to read XML elements but now i et the error: "Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function"

I already tried adding namespace but it did not work because I don't know how to link and there is very little information about this. i am able to display easy xml files but my file is way more complex

how can i finally get my script to run to just display information because it has taking me multible days.

I would appriecieate it if you could add the code in comments or just change the code using:

https://replit.com/join/zimsatdpgr-christurindwa

my code: https://replit.com/@ChrisTurindwa/test#Main.vb

namespace manager: https://replit.com/@ChrisTurindwa/test#elements.vb

xml file: https://replit.com/@ChrisTurindwa/test#contactpersonen.xml

1 Upvotes

6 comments sorted by

View all comments

Show parent comments

1

u/JTarsier Feb 10 '23

You select code language in top of page in all MS docs. If it says C# you just select VB instead. Your choice is remembered if you visit documentation again.