Previously I used XML soap for data exchange in my web services, But switched to json for another project. Now I cant seem to find a reason to go back to XML, primarily because of the response size difference for large objects.
In what case would you need to use XML over json for web service response?
...
Is there some Eclipse tooling that would allow the comparison of XML files as great as ExamXML mentioned in question 547399?
...
Hellow all,
I have the following xml lines:
<customer id="3" phone="123456" city="" /> <!--OK-->
<customer id="4" /> <!--OK-->
<customer id="3" phone="123456" /> <!--ERROR-->
<customer id="3" city="" /> <!--ERROR-->
"phone" and "city" attributes are optional, but if "phone" exists, a...
When trying to import shared definitions from a XML Schema, I can properly reference shared types, but referencing shared elements causes validation errors.
This is the schema that imports the shared definitions (example.xsd):
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
elementFormDefault="qualified"
xmlns:xs="http://www.w3.o...
Hi,
I'm currently writing some kind of a Maven POM preprocessor that assembles a POM for a project from multiple input files (basically a template and a module specific file). The files are hierarchically ordered (template = most general, module specific = least general). The problem is now to merge these files into a single POM file.
...
Hi,
is it possible to get the last value of an string, that looks like this for example:
tm="1610612741|Bulls|Chicago|CHI"
and save it as a variable?
Something like that:
var tm = $(this).find('htm').attr('tm');
I only need the "CHI" string.
I tried everything, but what i found doesnt work. I get the string and the var from an x...
Hi,
So I got this situation which sucks. I have an XML like this
<table border="1" cols="200 100pt 200">
<tr>
<td>isbn</td>
<td>title</td>
<td>price</td>
</tr>
<tr>
<td />
<td />
<td>
<span type="champsimple" id="9b297fb5-d12b-46b1-8899-487a2df0104e" categorieid="a1c70692-0427-425b-983c-1a08b658536...
I'm trying to get an XML document from a REST service using the Jquery get method, but it doesn't seem to be able to download. After only about 11 seconds, the connection dies and I receive a blank document. I've tested out the URL by accessing it through the browser, and it works (even though it takes 4 minutes to load).
$(document).re...
I have an XML file that I am attempting to deserialize into it's respective objects. It works great on most of these objects, except for one item that is being doubled up on. Here's the relevant portion of the XML:
<Clients>
<Client Name="My Company" SiteID="1"
GUID="xxx-xxx-xxx-xxx">
<Reports>
<Report Name="Fi...
I have a part's list built out in XML and each part is labeled as such:
<division>
<parts>
<part number="123456 " drawing="123456 " cad="y">
<attribute>
<header>Header</header>
<list>2</list>
</attribute>
</part>
And I need to get the data behind the number and drawing attribute...
Does anyone know of a jquery plugin that does code folding of XML structures?
...
Hey!
I am building a Silverlight application that should get it's elements from XML defined objects, but I am kinda stuck: how should I feed the Silverlight application with the data in the XML?
Example: get data from the following XML to display it in silverlight dynamically:
<?xml version="1.0" encoding="utf-8" ?>
<item>
0
item...
I have a solution with lots of projects. Each project is configured to generate the XML documentation file when building in Debug-Mode (which is default). That works when I build in Visual Studio 2008.
In my build script on my integration server I advise MSBuild to build the whole solution, but it won't generate the documentation files....
The default behavior of XML serialization (to_xml) for ActiveRecord objects will emit 'type' and 'nil' attributes that are similar to XML Schema Instance attributes, but aren't set in a XML Namespace.
For example, a model might produce an output like this:
<user>
<username nil="true" />
<first-name type="string">Name</first-name>
<...
i just got an account at:
http://www.whoisxmlapi.com/index.php#/whois-api-doc.php?rid=1
ive never parsed XML with c#, how would i get the information in the <email> tag ?
...
I have the following code that serializes a DataTable to XML.
StringWriter sw = new StringWriter();
myDataTable.WriteXml(sw);
And this works, however, the serialized XML looks like this:
<NameOfTable>
<NameOfTable>
<ID>1</ID>
<Name>Jack</Name>
</NameOfTable>
<NameOfTable>
<ID>2</ID>
<Name>F...
I'm using tDom to loop through some XML and pull out each element's text().
set xml {
<systems>
<object>
<type>Hardware</type>
<name>Server Name</name>
<attributes>
<vendor></vendor>
</attributes>
</object>
<object>
<type>Hardware</type>
<name>Server Two Name</name>
<attributes>
<vendor></vendor>
</attribute...
I am getting this error:
Data at the root level is invalid.
Line 1, position 1.
Here's my code:
XmlDocument doc = new XmlDocument();
foreach (string c in colorList)
{
doc.LoadXml("http://whoisxmlapi.com/whoisserver/WhoisService?domainName=" +
c + "&username=user&password=pass");
textBox1.Text += doc.SelectSingle...
here's my code:
XmlDocument doc = new XmlDocument();
foreach (string c in colorList)
{
doc.Load(@"http://whoisxmlapi.com/whoisserver/WhoisService?domainName=" + c + @"&username=user&password=pass");
textBox1.Text += doc.SelectSingleNode("WhoisRecord/registrant/email").InnerText + ",";
}
for the second line of code (textbox1....