I am going to work with some XML files containing logic sentences like these:
<condition>
<or>
<not>
<eq>
<variable>
<name>X</name>
<variabletype>Test</variabletype>
<datatype>String</datatype>
</variable>
<c...
I have a web service that processes an HTTP request. The document it receives has an embeded DOCTYPE that specifies a .dtd file. I wish to use a newer XML schema validation file made for when newer devices connect to my service.
I can successfully ignore the validation that goes on in the .dtd file, but the .dtd file must exist on my l...
I am making a LinkedIn app that is primarily written JavaScript and Flash, but all of the data comes from a Java proxy. I need the data to be in JSON, and unfortunately LinkedIn only supports XML. The best solution is to convert XML to JSON on the server before sending it back to the client, but admittedly my Java skills are not strong...
Hi,
I am struggling with the following issue: I have an XML string that contains the following tag and I want to convert this, using cElementTree, to a valid XML document:
<tag>#55296;#57136;#55296;#57149;#55296;#57139;#55296;#57136;#55296;#57151;#55296;
#57154;#55296;#57136;</tag>
but each # sign is preceded by a & sign and hence t...
Hi,
i have a problem to load a xml-file with php. I use DOMDocument, because i need the function getElementsByTagName.
I use this code.
$dom = new DomDocument('1.0', 'UTF-8');
$dom->resolveExternals = false;
$dom->load($_FILES["file"]["tmp_name"]);
<?xml version="1.0" encoding="UTF-8"?>
<Data>
<value>1796563</value>
<value>Verli...
Hello.
I did a exercise like this, how do I calculate the # of XML elements collapsed into an array by XML::Simple so I don't have to hard-code the # of elements?
I plan to use the code to parse a bigger xml file. I don't want to cout the elements by manual.
Can I use some count to replace the magic numbers, a little like person.count...
I want to generate a listing of (1) article titles and (2) article author e-mail addresses all from pubmed search results. Using the pubmed EFetch ultility (see this link for details: http://www.ncbi.nlm.nih.gov/corehtml/query/static/efetchlit_help.html) I have successfully created a php script to retrieve this data in an xml format as ...
I have the following code which return a dataset in cuestionarios.obtenerCuestionarios
Dim cuestionarios As New ObtenerCuestionarios
Dim ds As New DataSet("Cuestionarios")
ds = cuestionarios.obtenerCuestionarios
DataGridView1.DataSource = ds.DefaultViewManager
DataGridView1.DataMember = "cuestionario"
Which creat...
So I want to build an application in Objective C for a site that I use. Here is an example of their login API:
Verify Credentials
Allows authenticating user to check username/password.
URL:
http://myanimelist.net/api/account/verify_credentials.xml
Formats:
xml
HTTP Method(s):
GET
Requires Authentication:
true
Response:
Success: 200...
I'm building an SVG document with ElementTree in Python 2.7. Here is the code:
from xml.etree import ElementTree as etree
root = etree.XML('<svg width="100%" height="100%" version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>')
root.append(etree.Element("path"))
root[0].set("d", "M1 1 L2 2 Z")
print etree.tostring(root, enco...
In the world of XML, is it better to leave blank elements in the file:
<widgets>
<widget>
<id>5</id>
<name>Bob</name>
<price>5.33</price>
<otherInfo>Bob is a ball.</otherInfo>
<dateAdded>9-5-2010</dateAdded>
</widget>
<widget>
<id>3</id>
<name>Mary</name>
<price...
Let's say I'm getting I'm receiving XML files from some web service, like these two examples..
<news>
<item id="123" created="10/09/10" expires="07/07/10" modified="10/09/10">
<title>Xiabo receives Nobel></title>
<content>Lorem ipsum lorem ipsum</content>
</item>
</news>
.
<products>
<item id="1" category="shoes">
<name>Nike Air</nam...
Hi
I have Xml File having 2000 node with values . I have a table on SQL Server that I want to move xml file node values [ 140 nodes ] every five minutes or so. What are
your thoughts.
Thanks
...
Hi,
i am stuck with this small problem in my code.
I am trying to make small console application which will write into xml document.
I have used xmldocument and xmlnode concept.
ERROR i am getting is;
*An object reference is required for the non-static field, method, or property 'Write_xml.Program.give_node(System.Xml.XmlDocument)' ...
I'm trying to figure my way through HXT with XPath and arrows at the same time and I'm completely stuck on how to think through this problem. I've got the following HTML:
<div>
<div class="c1">a</div>
<div class="c2">b</div>
<div class="c3">123</div>
<div class="c4">234</div>
</div>
which I've extracted into an HXT XmlTree. What I...
I have an ASP.Net application that has some data driven elements powered by XML with some very basic XPath queries. How big can an XML file become e.g. 10MB, 50MB before the application should start to see a dip in performance when reading from the file.
...
When I build a XML in C# using XmlDocument, and I want to save to XML to file, including the encoding information, I use XmlTextWriter, as below:
using (StringWriter swr = new StringWriter())
{
using (XmlTextWriter xtw = new XmlTextWriter(swr))
{
xmlDoc.WriteTo(xtw);
return swr.ToString();...
I am trying to parse the following XML using JSTL. I can easily retrieve all the elements in the XML apart from the tags with the "t" prefix, how do I do this?
XML looks like (feed.xml)
<rss version="2.0" xmlns:t="http://www.xxx.co.uk/xxx">
<channel>
<title></title>
<link></link>
<description></description>
<languag...
If I knew how to phrase this I could probably find the answer on Google. I need an XML parser which I can call out to other XML parsers with.
For example:
<car>
<driver>
<name />
<age />
<height />
</driver>
<make>
<name />
<nationality />
<age />
</make>
<engine>
...
Hello,
I recently created a program that gets medi-large amounts of xml data and converts it into arrays of Strings, then displays the data.
The program works great, but it freezes when it is making the arrays (for around 16 seconds depending on the size).
Is there any way I can optimize my program (Alternatives to string arrays etc.)...