Questions tagged as 'xml'

1
answer

Variables with special characters

Hello, I'm trying to create a class of the genre: [DataContract, Serializable] public class XMLCM5050 : XmlApi { [DataMember] public string $name{ get; set; } [DataMember] public string $age{ get; set; } } I know it's no...
asked by 01.10.2015 / 15:39
2
answers

How to implement an SVG?

Well, SVG is very important to the web since it's vector and I can resize it at will. It is an image format written in xml and is one of the image standards for web. But when I try to implement it on a web page, it just does not obey me! It stic...
asked by 24.04.2014 / 14:01
1
answer

How to define a string coming from an sqlite database to display in a TextView?

I'm trying to display a string value in a textview through a query in sqlite, but when I run the code it displays a numeric log of the sqlite class of Android randomly. I'm just trying to display the string as the field value in the textview....
asked by 25.10.2018 / 17:27
1
answer

How to determine if a string value is in XML format?

I'm connecting to an API, or service like that, which returns me an xml when it finds data in the database, but unfortunately it returns a string if nothing is found or an error occurs. In my application I'm using the following code to connect t...
asked by 25.02.2014 / 21:47
1
answer

Get XML value

I'm having trouble getting the true value of this XML: <boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean> I tried this way but I could not: var ns = xDoc.Root.GetDefaultNamespace();...
asked by 29.03.2014 / 16:39
2
answers

Split a layout into 2 with different percentages

I wanted to know how I'd do to split a layout into 2 with 70/30 percent. I've got a way to split, but that way is not optimized for all devices.     
asked by 27.02.2018 / 17:51
2
answers

How to extract in a string the date-time of a given XML field - SQL Server 2012 Query

Good afternoon! Personal, in my table log has a field called logdescricao and in this field it stores several expressions. For example: <log expressao="7085"><par traduzir="N">André Mariano da Silva</par><par traduzir="...
asked by 05.09.2017 / 19:38
2
answers

How popular is an object with the return of a WebApi query?

How popular is the variable _clientes type Cliente with the return of a query to a WebApi ? Following the great suggestion of the Damon Dudek I came across the error below: publicclassClienteController:Controller{Htt...
asked by 22.08.2017 / 23:37
1
answer

how do I format the value of a double variable in android?

I am making a small application that aims to calculate the IMC of a person, but I am not able to format the output value to only two decimal places always something like: 22.222222 or 31.23232322 etc ... I have tried to use the "% .2f", but Text...
asked by 02.12.2015 / 21:23
1
answer

Convert a .pdf or .p7s file to base64 in C #

I want to convert a .pdf or .P7s file to base64 in C # which should be loaded into XML. How can I do it? EX: <conteudoArquivoP7S> MIMCmfgGCSqGSIb3DQEHAqCDApnoMIMCmeMCAQExCzAJBgUrDgMCGgUAMIMCexwGCSqGSIb3DQEHAaCDAnsMBIMCewclUERGLTEu...
asked by 12.05.2015 / 16:54