This tag refers to serialization technologies which use XML as a data format.
1
vote
0answers
8 views
Simple XML Framework : Having an “inline like” behaviour for objects in ElementMap
i am trying to serialize an Hashmap of custom Objects on Android to get an xml like :
<ROWSET>
<ROW num="0">
<Name>foo</Name>
<FNAME>bar</FNAME>
...
2
votes
2answers
22 views
XmlSerializer is not serializing to a valid xml
Please Consider the following code:
public class Obj : IObj
{
public string Prop1{get;set;}
public string Prop2{get;set;}
public string Prop3{get;set;}
}
public static void Persist(IObj ...
3
votes
0answers
19 views
Parsing XML by SimpleXML generates error
I have below XML to parse.
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<order>
<id>1</id>
<id_address_delivery ...
1
vote
2answers
26 views
XML list not enclosed in root element deserialization
My XML has structure similar to:
<rootNode>
<node/>
<otherNode/>
<specificNode>
nested nodes
</specificNode>
<specificNode>
nested nodes
...
1
vote
2answers
24 views
C# use where keyword on classes with XmlElementAttribute properties
This is what I'm looking to do:
public class NormalClass
{
[XmlAttribute]
public int Example;
}
[XmlRoot]
public class GenericClass<T> where T : HasXmlElementAttribute
{
[XmlArray]
...
1
vote
1answer
24 views
How do you deserialize a simple xml node value into a composite type?
I have xml that looks something like this:
<Policy>
<Number>10-13-123123</number>
</Policy>
And a types like this:
class Policy
{
[DataMember]
PolicyNumber Number ...
0
votes
1answer
14 views
GeoLocation data type incompatibility between odata service and it's .Net generated client side proxy
I am trying to do a proof of concept with the odata compliant cloud database feature of JayStorm. So far it's going great, but I have one big problem that fits in the category of odata service client ...
0
votes
1answer
24 views
Serializing xml with variated fields
I've got an XML file, that contains structure similar to this:
<MainData>
<field>
<otherField>
<Strings>
<string0>
some nested nodes
...
0
votes
0answers
17 views
Writing contacts on an xml file in Android
Hello I have this code(pasted below) which reads and displays the phone contacts in a ListView. Apart from this it should also have one more functionality and that is it should be able to write the ...
0
votes
1answer
28 views
Custom Value Type Serialization to XML
Usually in C# I would serialize my classes to XML using XmlSerializer much like this:
[XmlRoot("Rectangle")]
public class Rectangle
{
[XmlAttribute("top")]
public int Top
{
get;
...
1
vote
2answers
37 views
CSV as text node of an XML element
What are the pros and cons of putting CSV formatted data inside an xml element?
I must serialize objects in java with a matrix data field to xml. I abandoned the idea of using data binding with Jaxb; ...
0
votes
1answer
15 views
Java: Reading XML file from a TCP stream without writing it to disk
I would like to send a XML file from a server to client. The XML file has been generated by the XMLEncoder class and contains some persistent objects.
The client reads the XML file by using a ...
0
votes
0answers
16 views
c# XMLSerializer handle unknown “xsi:type”s
As requirements of our sort of a plugin architecture; we load assembly files, get plugin classes, create objects when needed, and store them in an XML file by serializing them using XMLSerializer.
In ...
5
votes
2answers
38 views
C# Xml why doesn't my attribute appears?
I have a class defined like this:
[XmlRoot(ElementName="request")]
public class Request
{
#region Attributes
[XmlAttribute(AttributeName = "version")]
public string Version
{
...
1
vote
2answers
23 views
Specify the Properties to Include When Doing XML Serialization
I have the following Utility method to help serialize an object as XML:
public static string Serialize(object input) {
if (input != null) {
using (var sw = new StringWriter()) {
...