How to Update xml values and save that xml in xna 4.0? - xml-serialization

I want to update the values from my xml.I am using LINQ to XML,then using LINQ to XML how to update values from xml? or any other procedure for updating values from xml? and another question is how to save that xml file in xna 4.0?

Related

How to create a DataSet for RDLC reporting from a stored procedure "ObjectResult" using ADO.Net Entity Data Model

I'm trying to generate an ObjectResult as the DataSource for a ReportViewer. The report viewer is looking for a data table as the data source.
Is there an easy way to convert a stored procedure's ObjectResult for use as a RDLC data source?
The following is the current state of my code:
Created a utility to generate a DataSet from the generated list.

How to create table using json in birt

i am having one column data as JSON format in table. i want to pass that column as report parameter in BIRT. can anyone help me how to parse JSON data and use it in the report.
One way to access the data sent through report parameter is creating a POJO (Plain Old Java Objects) Data Source.
You should create 3 java classes and convert it to jar file and use that as input for POJO Data Source.
Make sure that column names in json file match with the properties you create in java class.
You can refer this video for more info:
"https://www.youtube.com/watch?v=3ZD8wog2pmk"
Please let us know if you get other ways to achieve the same.

Kentico Import Toolkit 8.1

I am currently using the Kentico Import Toolkit to create documents in the tree.
At this point, I have imported around 100 documents using the toolkit, and they are all located at the correct place in the tree. Now the issue/concern that I had was, as I have imported these documents, my spreadsheet has been updated, so extra fields and data were added, so how do I go about importing this extra data into the currently existing documents? Also just bear in mind I don't want other fields or data to be affected by this, as some of the documents were updated with some other content by the content editors using CMS Desk, which isn't available in the spreadsheet.
Import toolkit is not the right tool to achieve this task. Even if you select "Import new and overwrite existing pages" it'll overwrite most of your columns. Actually it only preserves system and id columns from the existing documents - all other columns get overwritten.
Either you can write a piece of custom code or you can try following:
Open SSMS and navigate to the coupled table of your page type (something like CONTENT_MyDocType). This is where your custom columns are stored.
Right click -> Edit top 200 rows
Click "Show SQL Pane"
Adjust the columns, ORDER BY and WHERE clause to match your excel file, re-run the query
Select desired rows in your excel file and copy them to clipboard
Paste the data in the SSMS
rocky is right, Import Toolkit is meant for importing complete objects, not partial/continuous update.
You could map the fields that you know are not changed in the spreadsheet to a SQL query selecting the value from the target database.
To achieve this, just insert #<target> at the beginning of the SQL select statement you will be mapping the field to.
It will be rather laborious though and it also requires certain knowledge about the nature of the spreadsheet changes.

how to manually insert data in core data

I am using core data first time. so I know how to insert data manually in core data.
First of all I have .csv file but I don't know how to insert data into core data from this .csv file
My entity name is: "HatList"
attribute1: "Category id"
attribute2: "Hat id"
attribute3: "Hat name"
I have read various links like link1 and link2
and other than these I have searched a lot but I didn't get proper idea.
so, can anyone give me proper code or information about my question?
Theres not a magical way to put the .csv into coredata, you have to parse it using NSScaner for example, like here: http://macresearch.org/cocoa-scientists-part-xxvi-parsing-csv-data and then insert it as a managed object.
Alternatively you can try googling for a library that does this for you, im sure there has to be one.

Using Entity Framework how can i find out when the last change was made to a table?

Is there a quick way to find out when last change took place in some table?
EDIT:
I realize that i can add a column which will hold a change date, but i am wondering if there is some kind of metadata that can be accessed by EF. My db is hosted on SQL Server 2008.
Add a 'last updated' column to your table and query that one for the latest change.
Update: If that is not an option as per the update to the question, you could:
a) create a separate db table with table name and date/time and update that one with triggers on the table you want to track.
...or...
b) since you're using SQL Server 2008 you could possibly do something with SQL Server change tracking. There's no built-in support for change tracking in EF, but that doesn't prevent you from using it 'on the side'...