Creating a console application displaying XML document [closed] - c#

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I need help in creating a console application, where I have to get a list of items from a XML document using a server, remote and client. I have already created a XML document
XML document looks like this:
<clothing>
<pants>Jeans</pants>
<shirt>T-Shirt</shirt>
<shoes>Boots</shoes>
</clothing>
Now my question is where do I go from here? I understand the basics but don't know how to proceed with this, any help will be appreciated, thanks.

For tips on creating a console application, see How to: Create a C# Console Application. To read an XML file, look into XDocument.Load. There are samples in the XmlDocument documentation that will show you how to get individual elements and attributes from the document.
For client/server communications, it's hard to say. Probably you want something like TcpListener.
That should at least get you a starting place.

Related

Insert page numbers in OpenXML document using C# [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Where can I obtain C# sample code for the Open XML SDK Library?
Using Word, create two documents -- one that does not contain page numbers, and one that is exactly the same but does contain page numbers how you want to see them.
Download the Open XML SDK Productivity Tool -- http://www.microsoft.com/en-us/download/details.aspx?id=30425 . This tool can show you exactly the C# code that you need to produce any supplied Office document.
Use the Productivity Tool to open the two documents. Compare and contrast to find the solution that you need.

Generate floor map from Active Directory [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
This is probably not possible, but I would like to create an interactive floor map where the offices are static but the person name keeps changing. The information must come from Active Directory, and the map must be displayed on SharePoint.
Is this possible? What do you suggest the best approach to solve the problem?
Do we need to develop a full SharePoint webpart? Is there something in the market?
Any input is truly welcomed.
Thanks You.
I've seen something similar with reporting services before but not using active directory as a data source, if you can dump AD to a database or access it similarly reporting services wouldn't be a terrible option. You would just set a jpg of a blank map as a background and place a 'table' with values on each individual desk/office, it was quite time consuming but it ended up working fairly well. And I'm sure MS has some sort of integration between reporting services and sharepoint.

File upload utility [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm trying to implement a basic file, image upload utility into a small, simple (built using the Visual Web Developer tutorial) C# MVC3 ASP.Net web site. I have see this utility pointed out here on StackOverFlow a few times:
https://github.com/blueimp/jQuery-File-Upload
...but unsure if I can just slot it into my MVC3 C# Website? (I am very new to attempting to learn MVC3 with C#).
I also see lots of this guides floated around the place:
http://aspzone.com/tech/jquery-file-upload-in-asp-net-mvc-without-using-flash
http://davidsonsousa.net/en/post/how-to-upload-a-file-using-mvc-3-and-ajax
http://tomas.epineer.se/archives/3
Can any of these simply be slotted into my website?
Appreciate any help
Yes. The first two seem to fit perfectly.

How to set app.config value using javascript in C# [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Can anybody help me...I already google for almost 3 hours,but no solution found...How to set app.config value using javascript in C#?? Thanks...
I assume you want to edit app.Config and you can't
App.config is serverside and javascript is clientside
If you are crazy you might beable to use javascript and manipulate the app.config as if it is just plain xml
XML string manipulation in JS?
Madness though.
Even manipulating the config file through c# isn't the best idea. app.config is for initial setup - values that won't change during the lifetime of the app.
2nd answer here Is switching app.config at runtime possible? gives further details / reasons for not meddling

How to read a specific number from a HTML page [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
for example , if I wanted to set the Index value from this page:
http://ca.finance.yahoo.com/q;_ylt=Agfc5O8HHTlOLgX.q6V4HEtyzJpG;_ylu=X3oDMTFkdnZqMHBkBHBvcwMyBHNlYwN5ZmlNYXJrZXRTdW1tYXJ5RnJvbnRwYWdlBHNsawNzcHRzeA--?s=^GSPTSE
to a variable, how can I do that??
I am VERY NEW to programming, I would really appreciate if you explained every line.
My point isnt to get it done, I want to understand it.
Thank you very much in advance!
If you look at the source code of the web page, you find that the index number is within a span tag which has a unique id: <span id="yfs_l10_^gsptse">13,702.33</span>.
This means that you can scrape the page and then single out that individual tag.
You need to start by connecting to the host and downloading the page. The way in which you do this depends on which language you're using. There are plenty of tutorials around - just search for "[language] web scraping".
Then you need to create a Document Object Model from the html source code - again, this depends on the language, it's easy in some and difficult in others. Once you've done that, simply search for the tag with an id of yfs_l10_^gsptse and grab the content.
Hope that helps - obviously there's a lot I haven't said, but it depends what language you want to use.

Categories