I have a DataRow with columns col1 and col2. Each column has a value: val1 and val2 respectively. How can I turn this into an xml string using C#?
For the DataRow mentioned above I'd like the following string:
<col1>val1</col1><col2>val2</col2>
...
Hello all,
I am a new to the prefuse visualization toolkit and have a couple of general questions. For my purpose, I would like to perform an initial visualization using prefuse (graphview / graphml). Once rendered, upon a user click of a node, I would like to completely reload a new xml file for a new visualization. I want to do thi...
Ok, NHibernate question here. I have two objects that I would like to map to each other. I have the "Vendor" and the "Township" ... now the two should be linked by zip code, NOT ID. I have done this many times btw objects using id's but never something like this.
The issue I am having it that the ZipCodes while stored as strings are so...
Hi
I am trying to get some XML data with LINQ, but running into a problem.
I am using a schema, which is set in the attribute xmlns ...
<CarsForSale xmlns="http://schemas.sharplogic.net/CarSales.xsd">
<CarForSale>
There are many CarForSale elements.
When the schema is set and I do this...
XElement doc = XElement.Load(HttpCont...
I am trying to provide a SCCM (System Center Configuration Manager) 2007 Integration in multiple languages (de/en). Therefore I need to localize the GUI which should be possible by the "localize" checkbox within the Visual Studio, at least as far as I know.
But there are also some action XML files which define the actions the user could...
Is there some simple way to calculate a Weeknumber value from a date value stored in XML?
It needs to be pure XSLT solution. I cannot use any code :(
...
Hi All,
I've got a collection of classes that I want to serialize out to an XML file. It looks something like this:
public class Foo
{
public list<Bar> BarList { get; set; }
}
Where a bar is just a wrapper for a collection of properties, like this:
public class Bar
{
public string Property1 { get; set; }
public string Property...
If i have a complex XML file, is there a cheap or free way to get a rough approximation of an XSD from it?
...
I have an XmlDocument that already exists and is read from a file.
I would like to add a chunk of Xml to a node in the document. Is there a good way to create and add all the nodes without cluttering my code with many .CreateNote and .AppendChild calls?
I would like some way of making a string or stringBuilder of a valid Xml section a...
Let's say I have an existing trivial XML file named 'MyData.xml' that contains the following:
<?xml version="1.0" encoding="utf-8" ?>
<myElement>foo</myElement>
I want to change the text value of 'foo' to 'bar' resulting in the following:
<?xml version="1.0" encoding="utf-8" ?>
<myElement>bar</myElement>
Once I am done, I want to s...
I'm working in a project which needs to clean up some third party XSD Schemas and I want to do some refactoring of common elements in them.
There is any suitable tool to automate this? I tried by sfactor from XMLBeans but it doesn't work (it throws a weird exception which even Google can't answer!).
...
In visual studio, I have an asp.net 3.5 project that is using MS Enterprise Library 4.0 application blocks.
When I have my web config file open, my Error list fills up with 99 messages with things like
Could not find schema information for the element 'dataConfiguration'.
Could not find schema information for the attribute 'default...
I have the following serialization method:
Private Function SerializeData(ByVal data As cData) As String
If data IsNot Nothing Then
Dim xml_stream As New MemoryStream()
Dim sr As StreamReader
Dim xs As New XmlSerializer(GetType(cData))
xml_stream = New MemoryStream()
...
Using groovy, would you expect better performance in terms of speed and memory overhead to read and query JSON vs XML?
...
I'm working on a small project where for the first time I want to use XML as the one and only data source...a file based store suits the need of the project.
When writing the DAL should I have all the get methods static? to aviod and "reading while file open" errors?
Should I use CacheDependency on the file?
Thx
...
I have a J2ME application that needs to communicate with my server, and download information for the application in XML.
My application could run a lot faster if I had a better format of data, which would allow me to have more efficient parsing code.
Does anyone know an efficient substitute for XML? Maybe something specific for mobile p...
In a few large projects i have been working on lately it seems to become increasingly important to choose one or the other (XML or Annotation). As projects grow, consistency is very important for maintainability.
My question is, what do people prefer. Do you prefer XML based or Annotation based? or Both? Everybody talks about XML conf...
I have parsed Xml using both of the following two methods...
Parsing the XmlDocument using the object model and XPath queries.
XSL/T
But I have never used...
The Linq Xml object model that was new to .Net 3.5
Can anyone tell me the comparative effeciantly between the three alternatives?
I realise that the particular usage would ...
I'm looking for a XPath library to query over XML documents in FF, IE, Opera and Safari... and couldn't find one. Have you seen any?
...
I have a project where I am taking some particularly ugly "live" HTML and forcing it into a formal XML DOM with the HTML Agility Pack. What I would like to be able to do is then query over this with Linq to XML so that I can scrape out the bits I need. I'm using the method described here to parse the HtmlDocument into an XDocument, but...