.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

How to read XML Document

Posted By:      Posted Date: October 16, 2010    Points: 0   Category :ASP.Net
 

Hi, I am a beginner and have just started using xml. Please help me how to read a xml document with the following format:


<Locations>
<Location id="0">
<Name>Anurag</Name>
<City>DL</City>
<CountryCode>IN</CountryCode>
<CountryName>India</CountryName>
</Location>
</Locations>


Kindly help. Thanks in Advance.Embarassed




View Complete Post


More Related Resource Links

Check-out issue when opening a document from a document library when a read-only copy is open

  
We have an issue when a user has a read-only copy of a document from SharePoint open and then tries to check-out and edit another copy of the document (i.e. from the document library) the checked out copy is not connected to the web server. For the user it will look the same they will make edits, save and then close, but when they do so the document is not updated in SharePoint - it may be saved locally in their SP drafts, but the user will think that they have lost their version. We then get the checked out to another user error and you have to discard changes to get the document working again. Steps to reproduce this issue: * click on the name of a office doc on a Document Library * Make sure "Read Only" is selected and click "ok" * Minimize open document * click on the same file on the Document Library * Make sure "check out and edit" is selected and the "Use my local drafts folder" checkbox is ticked. Select OK. * Edit document and press save. Changes are never saved back in SharePoint, they are only on the local draft. We are using MOSS with SP2. Clients are on Office 2003 and 2007 Is this normal behaviour? Is there anything that can be done to prevent this from happening?

Read-Only mode is not working for office document-Bug

  
I have a excel file in the document library. In client PC I have office 2007. Suppose two users click on that excel file. A small window pops up to select mode(edit or read-only). User1 selects edit and user 2 selects read-only. user1 made some modificatin on the document. After that save and close the file. Now user2 click on save button he also can save the file. That means modification made by user1 is overridden by user2. So it should not happen. It's a Bug. If the user opening the document in Read-Only mode then save button should be in disable mode. If any one has any workaround. Please let me know.

Office 2007 Documents Open in Read-Only when Opening them from a WSS 2.0 Document Library

  
Hi, When any of our Windows 7 Pro computers that run Office 2007 Pro attempt to open a Word document that resides in a WSS 2.0 document library by using the drop down menu and selecting "Edit with MS Word", the documents open in read-only.  Our work-around is to save the document locally, modify it, and then save it back to the document library. We have some Windows XP and Vista systems that run Office 2007 and they are fine and can simply edit the document and save it.  We also have a handful of pc's that run Office 2003 and they are not having any issues either. Things I've tried: Office 2007 Repair - no luck Office Reinstall - no luck Some registry mod HKCU\Software\Microsoft\Office\12\Internet\OpenDocumentReadWrite=1 (noted on a MSKB article) - no luck and after re-reading the article it clearly states that this will not address content hosted on WSS or SPS sites Clearing IE temp files, resttting IE to defaults - no luck Once again, this only seems to happen to Win7Pro pc's that run Office 2007.  Honestly, I can't tell if IE8 has anything to do with this. Any thoughts or help would be extrememly appreciated. Thanks, Mike

Silverlight client object model : Read a document from a document library

  
How do I read/download a document/file from a SharePoint document library using silverlight client object model? The most closest function that I found was: Microsoft.SharePoint.Client.File.OpenBinaryDirect() but this seems to be throwing an exception "Operation not supported".

Document is read-only in SharePoint, but user sees "check out" option in Office 2007 / Word / Excel

  
I am finding that when there is a document library in SharePoint with checkin/checkout required, if a user with read-only ("Visitor") permissions opens a document from that library, the document will open as read-only in Word, Excel, etc., but the user will see the "Server Document" bar with the message "To modify this document, you must check it out" and the "check out" button.  When the user tries to check the document out, they are asked to authenticate, and then receive the error "Cannot perform this operation.  The file has been deleted or someone else has it checked out."    How is it possible to prevent a user with read-only rights in SharePoint from seeing the "Check out" option in Word or Excel?

Set read only permissions on a document based on review status

  
I have a document library that has excel files that users create using a Content Type template.  Then there is a workflow that runs on it and allows the user to change state of the document to Strted, Prepared, Reviewed.  I want that once the status is set to reviewed, a workflow runs and changes the permissions on the document to read only.  The user is part of a group... so not sure how to handle the permission.  Any advice?

System.Runtime.InteropServices.COMException (0x800A141F): Word was unable to read this document. It

  

Hi,

I am using the Interop.word.dll in my project to generate word reports. Reports are getting with out any exception if am using 2003 ms word. If i am using 2007 word iam getting the error as

 

System.Runtime.InteropServices.COMException (0x800A141F): Word was unable to read this document.  It may be corrupt

 

Please help to get reports work well in word 2007 also.

 

Regards,

Satish


Read data from Excel Document

  

Hello everybody.

I want to read Excel document using C#. I am not a professional so I need examples to learn the technique. If anyone provides useful link, information, api library, tutorial it will be very helpful to me.

Thank you very much.


Read old version of a document with excel services

  

In a version-control enabled document library full of excel spreadsheets (xlsx); I am trying to read values from it.

I have no problem with the latest document, (because I couldn't find anyway to reach the documents but the URL of them with OpenWorkbook method) the latest version's URL is simple like "http://spsite/excel library/file.xlsx" and the old version is like "http://spsite/_vti_history/512/excel library/file.xlsx".

And the old version cannot be opened and giving me the error:

The file that you selected could not be found. Check the spelling of the file name and verify that the location is correct 

Is there any way to deal with it and open. The same method can open spreadsheet and take the data from it, but when it comes to the old version it cannot find the file.

I think, there must be a permission issue on this thing for the old versions but I couldn't find anything.

 

Thanks in advance. I hope you guys can show me the light..


site member group can only open read-only version of the document

  

Hi there,

According to this video:
http://office.microsoft.com/en-ca/redir/va101848883.aspx
more than 1 person can open a word document and edit it at the same time.

When I test it, it doesn't work.
I can open it fine but my colleague can only open a read-only version.
We're both using Office 2010.
I found out that I'm part of OWNER group, while the other guy is just a MEMBER group.

I've checked the permission for MEMBER, it has "contribute" permission, which allow him to edit document library:
<label for="idspnidEditListItems">Edit Items  -  Edit items in lists, edit documents in document libraries, and customize Web Part Pages in document libraries. </label>

If I add him to OWNER group, he can work on it like the one on the video (link above).
Or, I can add individual user and assign DESIGNER role to it.

My question is: why he has to be in the OWNER group (or DESIGNER role)?
since we have many people working on the document but only 1 person to be included in the OWNER group, it's not a good idea to add everyone to OWNER

Link to my Office Document opening in Read-Only mode

  

I have an excel document in my Pages library which has document check-out disabled and I have contribute permissions on the library.

When I go to the Pages library and click on the name of the excel document, it rightly opens and allows me to edit it and then save it back.

BUT, when I put a link to that document on an aspx page and click on it, it opens in Read-Only mode.

I get the same behavior for Word documents.

How do I get the link on the aspx page to be editable? 


Blocking Edit Document for Read only users in SharePoint 2007

  
I'm trying to create a group in one of my sites that is Read only - truly read only.  Seems no matter what I do, the users can click on Edit Document, check out, check in, and the document is changed.  It doesn't show as changed in the Modified or Modified By columns, but the changes I make to test are there.  How do I create a group that can open a document, but can NOT check it out, can NOT Edit Document, and then check it back in?

When I edit a document it opens as Read Only (SPS 2003)

  

Hi:

Does anybody knows why if one user is administrator of a site and edits a Word or Excel document, it opens as Read Only? He is opening the document with the 'Edit with Microsoft Office...' but he cannot save the document, and it is necessary to delete and upload it again, and he has to do it every time he wants to modify it.

Regards.


Read Data from XML document with an special node (Multilingual Sites)

  

Hello

I have a question that how can I read a value of a XML line with specific nodes?

For example:

<Resource>
   <English>
      <Item Value="Welcome" Text="Welcome to this website..." />
   </English>
   <French>
      <Item Value="Welcome" Text="Bienvenue sur notre site" />
   </French>
</Resource>

How can I get "Welcome to this website..." when my site language was set to EN and my  requested value English/Item > Welcome (value)?

and how can I get "Bienvenue sur notre site" when my site language was set to FR and my  requested value French/Item > Welcome (value)?

Thank you


Disable 'Read Only' for a document accessed via url?

  

Hi everyone,

My workflow launches an email that includes the location of a document to be edited.  However, when I click on that link, the document launches as a "Read-Only" document.  Anyway I can have the link in the email launch the document so that it can be edited?

Thanks,
Max


Document becomes locked as Read only by System Account

  

I have a document library in SP2010 where a document has been checked out by "System Account" and locked as Read Only.

Logged in with site collection administrator credentials (which also have full control in the web app via policy) I am not able to edit, check in, discard checkout, administratively force check in, or delete the document. I am able to open it in read only mode in both the client and Office Web Apps. This library does have a standard, OOB approval workflow attached. The WF is not customized. I see that the Workflow Timer Job becomes set to "Paused" when this runs.

I have tried cancelling the the workflow tasks and terminating the workflow. But, it does not release the check out by System Account or the read only status. 

I logged in as the Farm Admin account, which is recognized as System Account, and tried all these things, but still no results.

I have cycled the SharePoint Timer service, but this didn't alleviate either the check out status or the read only lock.

I have restarted the WFE server and the SQL server. But, the check out and lock remain.

I do not have the option of deleting this document library as there is too much content to manage. This is only a single document in the library, not all the documents in the library

Document becomes locked as Read only by System Account

  

I have a document library in SP2010 where a document has been checked out by "System Account" and locked as Read Only.

Logged in with site collection administrator credentials (which also have full control in the web app via policy) I am not able to edit, check in, discard checkout, administratively force check in, or delete the document. I am able to open it in read only mode in both the client and Office Web Apps. This library does have a standard, OOB approval workflow attached. The WF is not customized. I see that the Workflow Timer Job becomes set to "Paused" when this runs.

I have tried cancelling the the workflow tasks and terminating the workflow. But, it does not release the check out by System Account or the read only status. 

I logged in as the Farm Admin account, which is recognized as System Account, and tried all these things, but still no results.

I have cycled the SharePoint Timer service, but this didn't alleviate either the check out status or the read only lock.

I have restarted the WFE server and the SQL server. But, the check out and lock remain.

I do not have the option of deleting this document library as there is too much content to manage. This is only a single document in the library, not all the documents in the library.  


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend