Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by andreas_rafn
at 2024-08-03 07:34:39
Point:500 Replies:3 POST_ID:828687USER_ID:11578
Topic:
Microsoft Visual Basic.Net;Extensible Markup Language (XML);.NET
I'm currently learning the XML features of VB.NET and Visual Studio 2010, and I have learned how I can enable intellisense in a XML file by associating it with a schema, and this works well. However since I'm mostly generating xml and not reading data from an xml file, I would like to be able to do the same when writing xml in a VB.NET module, class etc.
e.g. when writing xml directly in vb.net code like this:
e.g. when writing xml directly in vb.net code like this:
Dim JohnDoe As XElement = <Person Name="John Doe"> <Height>180</Height> <HeightUnit>Meter</HeightUnit> <HeightUnitType>Metric</HeightUnitType> </Person> 1:2:3:4:5:
Is this possible?
Expert: duncanb7 replied at 2024-08-03 08:44:56
Thanks and good to hear you solve the issue
Author: andreas_rafn replied at 2024-08-03 08:42:03
I did in fact read it earlier, but looking at it again I spotted that the solution to my problem was to add a targetNamespace attribute manually to my schema (it was not done by visual studio) in order for me to be able to import it and use intellisense in the vb.net code.
Accepted Solution
Expert: duncanb7 replied at 2024-08-03 07:44:34
500 points GOOD
Did you read this before ?
http://msdn.microsoft.com/en-us/library/bb531325.aspx
http://msdn.microsoft.com/en-us/library/bb531325.aspx