15,886,137 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by OMG_Live (Top 4 by date)
OMG_Live
1-Nov-23 3:28am
View
I have created multiple data path with same XML data file
If RadioButton1.Checked Then
source = "C:\Program Files (x86)\Live Feed\watchlist.xml"
ElseIf RadioButton2.Checked Then
source = "C:\Program Files (x86)\Test\watchlist.xml"
ElseIf RadioButton3.Checked Then
source = "C:\watchlist.xml"
ElseIf RadioButton4.Checked Then
source = "C:\Omega Version\watchlist.xml"
End If
As I observed, if I try to read XML data from source = "C:\Program Files (x86)\Live Feed\watchlist.xml", then data is not reading properly with GetAttribute(0) and its showing BANKNIFTY.................44200CE
But with other data source as I mentioned above, its working fine and the value getting as "BANKNIFTY01NOV2344200CE".
Is there any reason for the issue while reading data from "C:\Program Files (x86)\Live Feed\watchlist.xml" ?...Please guide me
OMG_Live
30-Oct-23 11:30am
View
Thanks for your reply. As per your guidance I verified.
01. The source file which is common form both the project.
02. I am getting the value from GetAttribute(0) as BANKNIFTY.................44200CE.
The same output is showing on message box and even on TextBox also.
OMG_Live
29-Oct-23 11:03am
View
Sour file example :
<mapping symbol="BANKNIFTY01NOV2344200CE" name="44200CE" exchange="">
<mapping symbol="BANKNIFTY01NOV2344200PE" name="44200PE" exchange="">
<mapping symbol="BANKNIFTY01NOV2344300CE" name="44300CE" exchange="">
<mapping symbol="BANKNIFTY01NOV2344300PE" name="44300PE" exchange="">
Out put example on second project : BANKNIFTY.................44200CE
OMG_Live
29-Oct-23 10:20am
View
Thank you Mr.Imran for your reply and guidance.
Structure and the data of the XML file is same which I am using in both projects as the XML data source is same by default.
One thing I could not figure it out that, on first project Date value is coming as "BANKNIFTY23101244200CE" and why not getting Date Value on second project?. As you said, on second project Date value is getting converted into "BANKNIFTY.......44200CE".
Please guide how do I solve this issue. Is there any other way to read the Exact Value from the source value ?
Thanks in advance.