I'm trying to load specific content from a XML to a HTML div. I'm using a function with parameters to do this.
This my call to function:
loadDoc("news.xml","destak-article","article");
this should send a request for the xml file, get the content of «article» tag and put it on the «destak-article» div.
Here's my function body:
funct...
I need to redefine an XML document and schema for my company. The document in question is split into a number of sections that each contain information about a medication, for example;
<dosage>overview of dose info
<elderly>doses for elderly patients</elderly>
<children>doses for children</children>
</dosage>
<administration>info...
I'm building a new site from scratch and am considering using Fluent NHibernate for my ORM. I think it'll handle everything easily except, possibly, my XML columns. I've never built a site with NHibernate at all (though I've used Hibernate for Java) so consider me a n00b.
Ideally I'd like the XML to be treated as an XElement as Linq-to-...
I am using an XMLHttpRequest to fetch an image from a server (run locally from a third party server-applet)
A simplified version of the code is shown below.
The image is returned as a JPEG and the returned header shows "content-type= image/jpg". I can view the information via Firebug for Firefox.
However I am having a terrible time...
I have a Xml file, ( actually HTML tags ) , I want to use the SelectNodes method to get ANY node/tag containing a keyword. The node name can be anything <td> , <div> <p>. What is the XPath to get any node which contains a keyword?
...
After learning how to "correctly" unset a node, I noticed that using PHP's unset() function leaves the tabs and spaces behind. So now I have this big chunk of white space in between nodes at times. I'm wondering if PHP iterates through blank spaces/returns/tabs and whether it would eventually slow down the system.
I'm also asking whethe...
Hi,
I've created a web service client from a WSDL file with Axis. This webservice responses with an Axis object that I need to convert to com.bea.xml.XmlObjet. The reverse operation (XmlObject to Java Object) was easily made with Xpath (in weblogic workshop) and the setters of the object but I've been unsuccessfully trying to convert th...
I have the following XML:
<customer>
<name>John Paul</name>
<cpf_cnpj>1376736333334</cpf_cnpj>
</customer>
The <cpf_cnpj> element must have a minimum size of 11 and a maximum size of 15, and there can only be numeric (between 0 and 9) characters. My XSD is looking like this:
<xs:schema attributeFormDefault="unqualified" elementFo...
Hello everyone!
I would like to know whether there is a way to insert/inject a <string> element defined in an XML file into another <string> element, doing that just with XML.
For example I could have:
<string name="author">Francesco</string>`
and I am looking for something like:
<string name="about_application">Author: @string/aut...
I am wondering if there is a way to restrict what validates using one element to check another element. In the example below, is it possible to check a restriction that if OptionOne is selected as "B", then RefIssue will have to be selected as "XXXX-B-XXX" and vice versa?
I have looked into key / refkey, but I was not able to figure ou...
I am reading attempting to load XML from a ByteArray as follows:
var xmlString:String = myByteArray.readUTFBytes(numBytes);
var myXML:XML = new XML(xmlString);
When I do that, I receive the following runtime error on the XML constructor when I run in Flash Player 9:
TypeError: Error #1088: The markup in the document following the roo...
I have an XML file that looks like this:
..
<PersonalInfo>
<LastName>Smith</LastName>
...
</PersonalInfo>
<DependentInfo>
<LastName>Johnson</LastName>
...
</DependentInfo>
...
and I need to convert the last name of the dependent to upper case.
I wrote this XSLT
<xsl:value-of select="translate(//LastName, $smallcase, $...
I have written a program that reads in a File object (really an XML file) to parse the information I want. I have an example program to basically just dump data from the net (program below displaying a webpage). I want to use the code below in accessing the web, to parse that data with my current xml parser with the command line. Like...
At the moment, if I save <element></element> to a SQL Server 2008 database in a field of type xml, it converts it to <element/>.
How can I preserve the xml empty text as is when saving?
In case this is a gotcha, I am utilising Linq to Sql as my ORM to communicate to the database in order to save it.
...
I have a need to write a basic scripting/templating engine that will run under PHP. Ideally, I would be able to mix my own markup language with an (X)HTML template and run the document through a server-side parser to dynamically replace my own markup with (X)HTML served out of a database.
Unfortunately, for all my knowledge of PHP and ...
I'm aware of how to drill down into the nodes of an xml document as described here:
http://www.php.net/manual/en/simplexml.examples-basic.php
but am at a loss on how to extract the value in the following example
$xmlStr = '<Error>Hello world. There is an Error</Error>';
$xml = simplexml_load_string($xmlStr);
I'm sure it's something ...
Can we generate an xml file using webservices in Java, and if so how?
...
I have a class that resembles something like this:
class foo {
List<String> bar;
...
}
I add four Strings to the list bar:
bar.add("1");
bar.add("2");
bar.add("3");
bar.add("4");
Using xstream, I've managed to get output that looks like this:
<foo>
<bar>
<blah>1</blah>
<blah>2</blah>
<blah>3</blah>
<b...
I am trying to search and check for the duplicate details that is available in the database using php.The user enters several names and then a phone number to check for the duplicates. Below is my function. I just cropped out some parts because it was too long.
function gtc($names,$phone)
{
$pageNumb=20;
$position = array(5);
...
hi,
I'm using fusioncharts with PHP but I'm getting a No data to display error. I'm adding data to the chart via xml generated from an array. the data exists as when I dump the array I can see it all fine. I think it's the xml that is wrong. Maybe someone can have a look and help me out, the xml var dump is being wierd.
Creating the ar...