I'm learning about using Custom Views from the following:
http://developer.android.com/guide/topics/ui/custom-components.html#modifying
The description says:
Class Initialization As always, the
super is called first. Furthermore,
this is not a default constructor, but
a parameterized one. The EditText is
created with these...
I was using this extension method to transform very large xml files with an xslt.
Unfortunately, I get an OutOfMemoryException on the source.ToString() line.
I realize there must be a better way, I'm just not sure what that would be?
public static XElement Transform(this XElement source, string xslPath, XsltArgumentList arguments)
{
...
As a follow up to my issue transforming large Xml files, I now need to validate the schema.
I was using this extension method, which can clearly be improved upon as it's not working correctly either
public static XElement ValidateXsd(this XElement source, string xsdPath)
{
var errors = new XElement("Errors");
// Reference: htt...
what is the best way to handle floating point numbers in XML?
If I have, for instance:
double a = 123.456;
and I would like to keep it as
<A> 123.456 </A>
simply using
...
myDoc.createTextNode(a.ToString());
is fine?
Or should it be done with some Globalization stuff to make it region-independent?
...
Hi!
I would like to dynamically create XPath expressions in an XSL determined by data in an XML file. (i.e. the XML data is "concatenated" to create an XPath expression).
Example of XML data:
<criteria>
<criterion>AAA</criterion>
<criterion>BBB</criterion>
<criterion>CCC</criterion>
</criteria>
Example of how I would lik...
How can I create an xsd to give me this type of xml structure that can go on infinitely?
<?xml version="1.0" encoding="utf-8" ?>
<SampleXml>
<Items>
<Item name="SomeName" type="string">
This would be the value
</Item>
<Item name="SecondName" type="string">
This is the next string
...
Hi, I am looking to detect an airplane in a image using OpenCV, and I have no idea where to get started.....
I don't know that much about OpenCV so I don't know what approaches I can take. For what I understand I need a haarcascade xml file that defines an airplane image, but there could be other ways I don't know of.
Someone please giv...
Is it possible to send a SOAP request directly from a browser to service provider? And then parse the output in javascript to show the result?
For example, if I've a SOAP request like this :
POST /InStock HTTP/1.1
Host: www.example.org
Content-Type: application/soap+xml; charset=utf-8
Content-Length: nnn
<?xml version="1.0"?>
<soap:E...
I have a ROXML object that looks like:
class Activity
include ROXML
xml_accessor :id
end
If I have an array of these objects and call .to_xml on the array, I receive an empty xml collection:
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<activities type=\"array\">\n</activities>\n"
Any idea why or how to fix this?
I'm running R...
Hello! So I'm currently working on an ePub reader application, and I've been reading through a bunch of regular XML files just fine with System.Xml and XmlDocument:
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(Path.Combine(Directory.GetCurrentDirectory(), "META-INF/container.xml"));
XmlNodeList xnl = xmldoc.GetElementsByTagName("...
I have CruiseControl(1.5) running in Win2k8R2 and svn(1.6.9) The error happens on a successful build after nant(0.86) Timeout(600 seconds). When I check the build dir everything is built correctly but CruiseControl Dashboard report Exception
Here is the error shown in console:
[:DEBUG] Exception: System.Xml.XmlException: The ',' charac...
Hello Colleagues,
I want to output single quote around $ID variable in the below xsl:value-of xsl statment.
<xsl:value-of select="concat('process[@Ref=',$ID,']')"></xsl:value-of>
currently it prints
process@Ref=87799989
Please let me know how can i achieve this.
Thanks in advance,
Keshav
...
can any one please let me know the memory limitation(MB) of google sitemap.xml file size.
...
Hi there
I am trying to build a parser and save the results as an xml file but i have problems..
Would you experts please have a look at my code ?
Traceback :TypeError: expected string or buffer
import urllib2, re
from xml.dom.minidom import Document
from BeautifulSoup import BeautifulSoup as bs
osc = open('OSCTEST.html','r')
oscrea...
Hi
I am trying to create a javascript quiz, that gets the questions from a xml file. At the moment I am only starting out trying to parse my xml file without any success. Can anyone point me to what I am doing wrong?
<html>
<head>
<title>Test</title>
<script type="text/javascript" src="prototype.js"></script>
</head>
<body>
<div class=...
Hi,
I have a J2ME application - which generates XML data (from an object) and needs to get it sent across to a remote server/machine. How do I get this xml or the object through to the remote server please? Thanks. Just in case it might help, the receiving application on the remote server is PHP powered. Thanks again.
...
Can any professional please specify some real world application, where he / she has used this XPath & XSLT for any logic / view?
It creates a great query among some of the people I've communicated with, and so I myself also wants to know about this.
I wish that this question will create a starting point from where new developers will ta...
I am using the Google Maps API with parts in javascript and others in PHP.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google Map...
I have sample code written for parsing xml file using javax.xml package. it uses the method called getEventType() , but I can not understand the purpose of this method.
i wrote simple application to understand its usefulness, but it output only some random numbers for which I can not make any sense, could some one help me to get this ...
Hi Everyone:
In my iPhone application, I have an instance of NSXMLParser that is set to a custom delegate to read the XML. This is then moved into its own thread so it can update the data in the background. However, ever since I have done this, it has been giving me a lot of _NSAutoreleaseNoPool warnings in the console. I have tried ...