I've traced slugishness in my application to the bit of code that's being timed below. I knew that this would be a slow point but each request is taking an average of 1 second. The bit of xml that I'm after is always in the first tag so I don't think it's the download times that are getting me.
Stopwatch stopwatch = new Stopwatch();
Xml...
Been using XML for ages now for data storage & transfer, but have never had to validate or transform it. Currently starting a new project and making some design decisions and need to know some rudimentary things about XSL & Schemas.
Our XML is like this (excuse the boring book example :) ):
<Books>
<Book>
<ID>1</ID>
<Name>Boo...
I need t parse xml for an applescript project and i got a start but for some reason my code is not operating the way I expected it to it does find the item I'm looking for but does not return a value
here is the code
set xmlFile to ((choose file without invisibles) as string)
tell application "System Events"
set xdata to XML elem...
I have been trying to work with Delphi 2010 and MSXML for the past few days, I am an extreme novice and need a little direction.
var
MemoryStream: TMemoryStream;
XMLPath: String;
sName: String;
XMLDoc: variant;
doc: TStringList;
begin
//unrelated code
// Create XML File to hard disk
begin
MemoryStream...
I need a way to store large-numbers of variously sized XML data in a simple key/value store.
So far I have tried two simple approaches:
RAM: Store everything in a ConcurrentDictionary instance
Problem: limited resources at project launch, a single server with 8GBs of RAM!
Note: Windows AppFabric could be a solution here in the future...
Hi,
Reading StackOverflow and listening the podcasts by Joel Spolsky and Jeff Atwood, I start to believe that many developers hate using XML or at least try to avoid using XML as much as possible for storing or exchanging data.
On the other hand, I enjoy using XML a lot for several reasons:
XML serialization is implemented in most mo...
window.onload = init;
function init(){
initializeEventHandlers();
getData(formatDate(new Date));
gotoDate('today');
}
//scripts that manage the UI for tracker.aspx
var dCurrentDate, sCurrentDate, sCurrentDayData, stepsVal, chipsVal, dayValue, dateValue, caloriesVal;
var fCurrentValue = 0;
var bAnimating, bSliding = false;
...
I need a command-line XML pretty-printer tool that will not overflow given output line width.
All tools I've tried (xmlstarlet, xmllint, xmlindent) overflow line width when printing tags with many attributes. I'll settle if each attribute will be printed at a separate line (while keeping indentation of course).
Tool must be free, runna...
I tried to set up an eXist WebDav using my network Location area. The folders were created, but they won't open. And I have no idea why. I'm currently using Windows 7 Ultimate. I hope someone can help me.
...
Hello everyone,
I am parsing an XML document. I have done this thousands of times before, but I can't see why I am getting the following issue:
Here is the relevant part of the XML document that I am parsing:
XML: <?xml version="1.0" standalone="yes"?>
<ratings>
<url_template>http://api.netflix.com/users/T1BlCJtdcWMuF6gJEfue96_W.kZ_gW...
I want to parse some kind (or pure) XML code from a QString.
My QString is like:
<a>cat</a>My cat is very nice.
I want to obtain 2 strings:
cat, and My Cat is very nice.
I think a XML parser is not maybe necessary, but in the future I will have more tags in the same string so it's also a very interesting point.
...
Hi, I have an XML schema in .xdr file. This is a shortened version of this file(just for example):
<?xml version = "1.0" encoding = "WINDOWS-1252"?>
<Schema name = "ANS.xdr"
xmlns = "urn:schemas-microsoft-com:xml-data"
xmlns:dt = "urn:schemas-microsoft-com:datatypes">
<ElementType name = "Shipment" content = "eltOnly" order ...
For stress tests, I would like to create XML files based on a XSD with random (but valid!) test data. Is there a tool which can read a (simple) XSD file and build a XML file based on the schema definition?
...
Hi All,
I have the following XML file:
<graph caption="Share Data Wave" subcaption="For Person's Name" xAxisName="Time" yAxisMinValue="-0.025" yAxisName="Voltage" decimalPrecision="5" formatNumberScale="0" numberPrefix="" showNames="1" showValues="0" showAlternateHGridColor="1" AlternateHGridColor="ff5904" divLineColor="ff5904" divLin...
My problem is extracting xhtml attributes to generate absolute links,
since they need to be different on testing and production
environment.
I would like to use a "global snippet" that binds all "src" and "href"
attributes to "localhost:8080" or "www.mydomain.com" depending on a
conf value.
This is how the template looks like:
<lift:Gl...
hello,
i am using this code to get an file
$url="http://zz.com/a"
$ch = curl_init();
$timeout = 5;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
echo $xml = curl_exec($ch);
it will be an xml file and i need to display i...
Hi Guys,
I am experiencing weird behaviour when trying to format xml output while modifying domdocument structure.
I have created simple Item class based on DomDocument:
class Item extends DOMDocument {
private $root;
function __construct($version = null, $encoding = null) {
parent::__construct($version, $encoding);
$this->f...
In need in my application to fetch remote HTML document and parse some parts out of it.
As I don't want to play with string parsing, which would be really lots of work, I thought about using XSLT, which would let me build small XML document out of HTML and then read it easy.
Seems there is no XSLT support in Android? What other ways I c...
Hey there,
I have the following scenario: I send a XML file to a server as a request and get a XML file as response and all that as a background thread on android.
The XML request is serialized using various values. The XML response is then read by SAX and put into a list. The whole request/response process happens in a background thre...
Good morning everyone.
I'm working on a SLD related project and was wondering if there were any XSLT files already created for transforming one version of SLD to another. I'm creating 1.1.0 files and would like to downgrade the files down to 1.0.20 or 1.0.0.
Thanks.
...