Questions tagged [xmlroot]
34 questions
1
vote
1 answer
PYTHON : How to add root node to an XML
I have an xml file looks something like this
....
I want to add root on top of element 'A'. I found out a way to add elements to root. But How to change existing root and add on top of it using…

Venkatesh
- 3,558
- 8
- 32
- 38
1
vote
6 answers
XmlSerializer Deserializing Array/List of Multiple Objects at Root
I'm trying to deserialize the following XML output:
Data1
Data2
(This is output from a hardware device, and cannot be changed)
I have an XML type…

Brian Chavez
- 8,048
- 5
- 54
- 47
1
vote
1 answer
Can't rename XML & Json Root Element in Spring 3.2.2, Jackson 2.2 and Xstream
Please help me to understand what is going on with name of XML&Json root element in Spring
in JSon I get
{"addressList":
[{"StreetName":"Boul. Rene-Levesque Ouest","AddressID":1,"StreetNumber":1350},
in XML I get

user2402940
- 11
- 2
0
votes
1 answer
xmlconvert string to date
I have model:
[XmlRoot(ElementName = "event", IsNullable=true)]
public class Event
{
public int id { get; set; }
public string title { get; set; }
public eventArtists artists { get; set; }
public venue venue { get; set; }
…

Evgeniy
- 555
- 7
- 26
0
votes
0 answers
0
votes
0 answers
XmlElement shows up as lowercase in SOAP
I have the following method
public PingResponse ping(String xml) throws RemoteException {
PingResponse response = new PingResponse();
response.setPingResult("Service is Live");
return response;
}
And this is the…

A.J
- 1,140
- 5
- 23
- 58
0
votes
1 answer
How do I add a class inside the XML root, in an existing XML file?
It look like this:
[XmlRoot("Library")]
public class LibraryModel
{
[XmlElement("Book")]
public List Books { get; set; }
}
and
public class BookModel
{
[XmlElement(ElementName = "Title")]
…

Henry Boo
- 11
- 3
0
votes
1 answer
One POJO but the different XmlRootElement name
For Example, I have one POJO as shown below but it feeds into multiple operations but I do not want to create several identical POJO's just because the root element name changes for each operation. Hence I need one POJO but in such a way that I can…

DaviesTobi alex
- 610
- 1
- 9
- 34
0
votes
1 answer
JAXB dynamic XML root class name
I have my User class in java. When I want to unmarshal it, I get xml with root element, and when I want to marshal it I should do to be XML root element. If I provide @XmlRootElement("UserIn") it is not dynamic and it is always…

Matija Župančić
- 1,080
- 2
- 11
- 21
0
votes
1 answer
Replace ArrayOf* Root Element using API Controller in Visual Studio C#
My apologies if this is a duplicate as there are many questions out there similar, but not quite what I'm looking for.
This is what I've written:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using…

Adam
- 45
- 4
0
votes
2 answers
Adding a root xml element before another root C#
I have an xml document that follows:
-
-
-
I need to add a root Manifest element before…

Mattaceten
- 129
- 2
- 5
- 14
0
votes
1 answer
0
votes
2 answers
How to consume XML with more than one possible root element in Spring REST client
In my application I have to consume a service provided by a third party application. The response they provide is always 200 and they change the body based on whether data is available or not or error occurred, as given below
If data is there…

msmani
- 730
- 1
- 7
- 24
0
votes
1 answer
Web scraping with R error
I trying to scrape sainsburys.co.uk, I'm running the next code in R
doc <-…

Jeisson
- 25
- 8
0
votes
1 answer
JAXB Marshall/unmarshall
I have got 2 Classes : A and Test, that are defined in diffenent .java-files. Class Test as a field of type A. Now I need to be able to marshall/unmarshall both these classes, so I would need to put an XMLRootElement to both classes. Is it possible?…

user2514539
- 75
- 1
- 6