15,905,913 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 swayamrath (Top 10 by date)
swayamrath
3-Jan-18 16:38pm
View
It's xlsx. :)
swayamrath
11-Apr-17 0:00am
View
thanks Richard. i have gone through that. but not able to figure out how to collate two similar ID nodes to one.
<record>
<id>ID_001
<item>Value_1
<item>Value_2
this is causing trouble.
swayamrath
24-Mar-16 3:11am
View
I tried that as well. But not sure why this is not happening.
<script>
var url = "http://www.webservicex.net/globalweather.asmx/GetCitiesByCountry";
$(document).ready(function () {
var input = {CountryName:"IND"};
$.ajax({
type: "POST",
url: url,
data: input,
crossDomain:true,
contentType: "application/soap+xml; charset=utf-8",
dataType: "xml",
success: OnSuccessCall,
error: OnErrorCall
});
function OnSuccessCall(response) {
alert(response.d);
}
function OnErrorCall(xhr, ajaxOptions, thrownError) {
alert(xhr);
}
});
</script>
It's getting into the error block. I think it has to do with the CORS issue.
swayamrath
23-Mar-16 5:59am
View
Thanks Mani.
http://www.webservicex.net/globalweather.asmx is a publicly available web service.
GetCitiesByCountry is one of the methods in the web service.
This method takes country name (For Example - IND) to give am XML output.
I used your code and ran it. But it's still going to the error block.
Any suggestion?
Regards,
Swayam
swayamrath
25-Jan-16 11:37am
View
Thanks Manas.
I tries every possible option given in the blogs. But still no success.
swayamrath
23-Feb-15 14:34pm
View
My apologies again. It perfectly parsing the XML .
Thanks for the solution.
Regards,
Swayam
swayamrath
23-Feb-15 14:26pm
View
My apologies..I had missed the "While" part.
but having said that, the out put that i am getting is as below
>>>Example STIX document for sharing a Malware Sample>Malware Samples> Contains a fake malware sample. The 'malware sample' is a draft version of the TAXII Services Specification PDF, zipped, with a password of 'test'. The XML representation is Base64 encoded and is encapsulated in a CDATA blob.>>>>>>>>>>>>sample.zip>Characterized_By
i don;t think this is what the XML contains.
swayamrath
23-Feb-15 14:18pm
View
It doesn't go to the Switch() block and escapes the code for my XML URL
swayamrath
23-Feb-15 14:04pm
View
this is the code that i tried
XmlTextReader reader = new XmlTextReader("https://raw.githubusercontent.com/STIXProject/schemas/version_1.1.1/samples/STIX_Malware_Sample.xml");
string contents = "";
while (reader.Read())
{
reader.MoveToContent();
if (reader.NodeType == System.Xml.XmlNodeType.Element)
contents += "<" + reader.Name + ">\n";
if (reader.NodeType == System.Xml.XmlNodeType.Text)
contents += reader.Value + "\n";
}
Response.Write(contents);
swayamrath
23-Feb-15 13:55pm
View
@Zoltan,
I am not able to write the code using XMLReader to read the XML present in this URL
https://raw.githubusercontent.com/STIXProject/schemas/version_1.1.1/samples/STIX_IP_Watchlist.xml
Show More