Good morning, I validate the xml files sent based on the xsd, but it keeps claiming an error when declaring more than one URL in the schemalocation. I searched a lot, but I didn't find the solution.
Can you tell if this error is due to some configuration or if the schemalocation is really not accepting more than one URL?
Code
Schemalocation
Error message
I did several searches, I tried to change the validator settings and the xml, but it didn't work
Related
I am trying to make a small library that uses service bus API client.
I followed this tutorial for achieving this goal and I manage to do almost every thing I needed except one thing, add AutoDeleteOnIdle property for newly created subscriptions.
Thing is, on the tutorial, the author uses xml body to send to the API and it works well, but I want to add inside the xlm SubscriptionDescription the property AutoDeleteOnIdle, but I keep receiving bad request with the response «The specified resource description is invalid».
I attempted to search on the net about this xml structure and how to find it.. But I can't find any doc!! Even if I check the shema specified in the xml, I get redirected to an unexisting page (for http://schemas.microsoft.com/netservices/2010/10/servicebus/connect).
I am using Microsoft.Azure.ServiceBus v.3.4.0 NuGet, visual studio 2017.
This is the subscription description I've been trying to add AutoDeleteOnIdle property.
Encoding.UTF8.GetBytes("<entry xmlns='http://www.w3.org/2005/Atom'><content type='application/xml'>"
+ "<SubscriptionDescription xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://schemas.microsoft.com/netservices/2010/10/servicebus/connect\">"
+ "</SubscriptionDescription></content></entry>");
The code is on this page: https://code.msdn.microsoft.com/Service-Bus-HTTP-client-fe7da74a
Thank you for your help,
Phil
I found out what was the problem, I didn't know that I needed to type a special format XSD dates for xml body.
I was adding <AutoDeleteOnIdle>00:10:00</AutoDeleteOnIdle> because the doc says that they need a ISO format, but it was actually:
<AutoDeleteOnIdle>PT10M</AutoDeleteOnIdle> I should have sent.
I am parsing a forum where some threads are already deleted. So opening them still shows a page but with a message that says "Thread no longer exists". Is there a way to query this using the HtmlAgilityPack in a special way?
Or do I have to compare the InnerHtml or something along those lines?
a 404 is not actually being returned. If it was, you could just look at the headers.
That said, you are getting a 200 response with an error in the html, therefore you will have to parse the html, traverse the DOM, whatever you want to call it and determine if it failed.
It appears that there could potentially be several different error messages, so I would try to make your comparison generic by looking for the "notify administrator" link or perhaps the class="blockrow restore" is only used on the error page.
Hope that helps.
I generate a SpreadsheetML file for MS Excel in my C# project. This worked since some changes yesterday. Now I have issues opening it. It comes up with the error:
XML PARSE ERROR: Null or missing attribute value
Error occurs at or below this element stack:
I already narrowed it down to a single table with the issue, but it has 7000+ rows with around 20 columns. When I export a single line it opens fine, so apparently not every line has the issue.
Now I'm looking for advice on how to find the issue as Excel does not provide a line number (I HATE that!).
Anybody knows a tool or good method to validate a SpreadsheetML file?
I am trying to parse json data for reddit comments in a Windows 8 Metro app. I have been able to successfully parse the homepage json data using JSONObject.Parse(), but when trying to parse data for a comments page, the parse failed. The data in question is here:
Homepage: Can Parse
http://jsonviewer.stack.hu/#http://www.reddit.com/.json
Comments: Cannot Parse
http://jsonviewer.stack.hu/#http://www.reddit.com/r/leagueoflegends/comments/vt3wk/proving_grounds_playable_on_live_on_all_3_regions/.json
The problem appears to be that the root object of the comments json is an array, while the root object of the homepage is a normal object. However, jsonlint.com tells me that the json is valid in both cases.
Can anyone tell me why this occurs?
I found the answer. Instead of JSONObject.Parse, JsonArray.Parse had to be called.
i see the following squiggly
What is this indicating ? I am trying to load a dataset through this XSD and there i believe since the imports are not getting resolved this is causing me a lot of trouble ?
Also the larger problem i have is that i have a bunch XSD Schemas which i need to convert into JSON equivalent.They have dependent xsd:import statements , what would be the best way of going about this in .net.
I solved this by going into the Security tab and selecting the suggested radio button "This is a full trust application". i used the following reference
http://social.msdn.microsoft.com/forums/en-US/asmxandxml/thread/b1db5b9f-50a4-4a21-aba1-afeb30957efd