I am testing various methods to read (possibly large, and very often) XML configuration files in PHP. No writing is ever needed. I have two successful implementations, one using SimpleXML (which I know is a DOM parser) and one using XMLReader.
I know that a DOM reader must read the whole tree and therefore uses more memory. My tests ...
Hi, for a certain project, I need some way to parse XML and get data from it. So I wonder, which one of built-in parsers is the fastest?
Also, it would be nice of the parser could accept a XML string as input - I have my own implementation of thread-safe working with files and I don't want some nasty non-thread-safe libraries to make my...
"X" is reading the form value, but it is still passing and older "var thisMarket" value.
The objective is to take a zip code via HTML form:
<form id="market" name="market" onSubmit="return validateZIP(this.zip.value);" method="get" action="">
<input type="text" name="zip" id="zip" value="zipcode" onfocus="if(!this._haschanged){this.v...
Hey awesome SO users,
I have an Android application that parses an XML file for users and displays results in a much more mobile friendly format. The app works great for most users, but some users have lots and lots of data and the app crashes on them because it runs out of memory.
Is there any way I have a DOM style XML parser quit pa...
Does anyone know of a memory efficient way to generate very large xml files (e.g. 100-500 MiB) in Python?
I've been utilizing lxml, but memory usage is through the roof.
...
Hi
I am new to xslt so please let me know whats wrong with my syntax here. If I compare with a Constant value of '880.50' I get the desired result. But if I try to do the samething with parameter being passed I get nothing. The code snippet is as under.
<xsl:template name="ShowJourneyLegs" >
<xsl:param name="TotalFare" />
<Key...
Hi All, is there a way to retrieve only the immediate children found by a call to DOMElement::getElementsByTagName? For example, I have an XML document that has a category element. That category element has sub category elements (which have the same structure), like:
<category>
<id>1</id>
<name>Top Level Category Name</name>
...
I'm using selenium IDE to test my webpages but unfortunately I cannot use it to test those pages that return an xml response. Some people use Selenium Remote Control, others use Pearl modules like WWW::Mechanize and Test::XML or Test::XPath (but these are no option for me since I use Java).
What is the best way to test the XML responses...
I am trying to self host a WCF services and calling the services via javascript. It works when I pass the request data via Json but not xml (400 bad request). Please help.
Contract:
public interface iSelfHostServices
{
[OperationContract]
[WebInvoke(Method = "POST", UriTemplate = INFOMATO.RestTemplate.hello_post2,RequestForma...
I'm learning how to use Perl as an automation test framework tool for a Java web service and running into trouble generating xml requests from the Pastor generated modules. The problem is that when including a type that extends from the required type for an element, the xsi:type is not included in the generated xml string. Say, for exa...
I have xml document in variable (not in file). How can i get data storaged in that? I don't have any additional file with that, i have it 'inside' my sourcecode. When i use
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(XML);
(XML is my xml var...
I recently migrated an iPhone project from the 2.2.1 SDK to 3.1.x and, to my surprise, an XML feed that was (and still is with the published app) being parsed by the 2.2.1 NSXMLParser is now causing NSXMLParser to return errors.
The XML document in question doesn't meet the W3C standard, but the 2.2.1 parser is able to handle this. I'm...
Is there an easy way to automatically convert a bunch of MS Word documents to xslt stylesheets that can be displayed in the browser?
What I have is a large collection of forms in Word format that have to be displayed in the browser, or sent to the user, with known fields populated from a data source, edited by a user and, finally, print...
I'm getting XML input that looks like this
<?xml version="1.0" encoding="utf-8"?>
<data1>this is data 1</data1>
<data2>this is data 2</data2>
<data3>
<3a>this is data 3a</3a>
<3b>this is data 3b</3b>
<3c>
<TextFlow xmlns="http://ns.adobe.com/textLayout/2008">
<p direction="ltr" >
...
Hello,
How can I update the value of an xml tag with the value of an xml tag from another related table?
something like this:
UPDATE v2
SET
[xml].modify ('replace value of (//TAG1/text())[1]
with "CAST(v1.[xml].query(''//TAG2'') AS NVARCHAR(MAX))"')
FROM
table2 v2,
table1 v1
WHERE
v2.id = v1.id
Thanks
...
I have pasted the example of what I need here : http://pastie.org/1005178
I have a xml file with say the following info
<state>
<info>
<name>hello</name>
<zip>51678</zip>
</info>
<info>
<name>world</name>
<zip>54678</zip>
</info>
</state>
Now I need to create a new xml file which has the following
<state>
<info>
<name>hello</name>
<...
Hi,
I am creating an xml using php and parsing that xml in iphone application code. In description field there is some html tags and text.
I am using following line to convert this html tags in to xml tag using CDATA.
$response .= '<desc><![CDATA['.trim($feed['fulltext']).']]></desc>';
Now, here my $feed['fulltext'] value is like t...
We have a tabbed interface, inside one of these tabs is a privacy form. This privacy form, as well as using an external javascript file for the bulk of its work, also uses inline javascript as it currently relies on dynamic code (in the server side language).
formTabs wrapper (ajax tabs without callback functions)
...
<script type ="te...
Since XML schemata (XSD) are themselves XML files, it should be possible to build
a schema of a schema (meta-schema), right?
I'm struggling to accomplish that feat.
I would like to create a schema that describes a schema
with one root complexType containing a sequence of simpleTypes.
...
Hi,
I have an XElement, resulting from a transform that looks like the following.
<src:Person xmlns:src="http://www.palantir.za">
<src:Name>Jenifer Harvey</src:Name>
<src:BirthDate>1969-11-13</src:BirthDate>
<src:IdentityNumber>6906678550017</src:IdentityNumber>
<src:Sex>Male</src:Sex>
</src:Person>
I would like to transf...