I am consuming a couple of feeds at the same time and assembling one single feed. When grabbing and 'cleaning up' the description for a particular tag, I find bullet characters, that I cannot for the life of me 'remove' from the output.
Doing a simple str_replace to find the • (just like that, not an li or ascii value) character does no...
Hi all.
i m calling an webservice which is soap based in my android application. it is returning me the XML response. how can i parse it?? i checked the xml parsing its asking for the URL. i m confused which url i need to pass??
Here is the code:
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty("pStrT...
Hi guys,
I am developing a hybrid app (rails 3 + iPhone) and I want to send a number of large strings and images to a rails 3 server. I want to do a POST method from iPhone. Can someone help me on how to do this ? since in this case there will be no form in the views how should I accept the data ? Thanks in advance
...
Hi,
I would like to write Nodes like
<name>Peter</name>
(with start and end tag) into a QDomDocument.
When I create QDomElements and append them as child to a parent element:
QDomElement node = doc.createElement("node");
parent.appendChild(node);
They are added as
<node/>
to the parent element. The parent automatically gets ...
I have the following XML snippet
<restriction>
<name>notempty</name>
<field>title</field>
</restriction>
which is validated by this XSD
<xs:element name="restriction" maxOccurs="unbounded">
<xs:complexType>
<xs:all>
<xs:element name="name" type="xs:string" minOccurs="1" />
<xs:element name=...
I have defined an XML string using
$str = "<a><b></b></a>"
Now I want to load it into a [xml] variable to be able to manipulate it's nodes etc.
The row below results in an error...
$str = [xml]"<a><b></b></a>"
How do I do this?
...
I am trying to extract nodes from an XMLList as follows:
this.txtDebug.appendText("\n\ntmpData Dump:\n");
this.txtDebug.appendText(tmpData.user);
var XMLUsers:XMLList = tmpData.user;
this.txtDebug.appendText("\n\nprinted thorugh for loop:\n");
for (var i:int = 0; i < XMLUsers.length(); i++)
{
this.txtDebug.appendText(XMLUsers[i] +...
Hi all,
I'm trying to loop through a cURL array response to generate XML files. However, my generated files all seem to have exactly the same contents - I don't know if this is the right approach or if I should be using an array, but I can't seem to figure it out and could use some fresh eyes. Basically, I want each $playlist's contents...
I have something like
@XmlElementWrapper(name="Mylist")
List<Items> myItems = new ArrayList<Items>()
and that comes out like
<Mylist>
<myItems>item 1</myItems>
<myItems>item 2</myItems>
<myItems>item 3</myItems>
</Mylist>
Is it possible to make this come out more like
<Mylist>
<myItems>item 1, item 2, item 3</myItems...
I have this JS which gets a XML response from a service, its a True or a False, well the script should catch the submit and get the response from the service.
The problem is that I see that its not working because when I do the submit, I see the XML response on IE (6/7/8), when the script should have catched it and validated the XML resp...
Hey Guys,
Here is the scenario:
Have a shell script that calls ant with one argument. The ant in turn executes testng.xml (suite file) passing the same argument and testng in turn executes the test within passing the same argument.
In my case, I am passing the browser string eg.(firefox, iexplore) argument that will specify which brow...
In magento I know how to include js files in the page layout file. How though, do i include specific javascript files only on certain pages with my custom module.
For example i am writing a custom module that will work with the product view and list pages. I therfore want to have some sort of layout update that i can use with my module...
Input:
<content>
<dom id=1>a</dom>
<dom id=2>b</dom>
<dom id=3>c</dom>
<dom id=4>d</dom>
</content>
Output:
<content>
<dom id=4>d</dom>
<dom id=3>c</dom>
<dom id=2>b</dom>
<dom id=1>a</dom>
</content>
I'm looking for a function (if exists) like this:
$('content').inverse();
...
Is it possible to do a find and replace to the attributes of a xml element? I want to change the directory that is being pointed to by a href:
From:
<image href="./views/screenshots/page1.png">
to
<image href="screenshots/page1.png">
And from:
<image href="./screenshots/page2.png">
to
<image href="screenshots/page2.png">...
Hi All,
I am using xsl to convert data from xml into C++ code. I am running into problems when I have <= or >= in the xml file that needs to be converted to C++ code.
For example if I have (in .xml file)
<Check>max(x,y) <= 20 </Check>
and the .xsl file is
if(<xsl:value-of select="Check"/>") {
...
}
But this does not compil...
Hi,
I need to send XML response from my GAE servlet.
What I already have is:
- An instance of org.w3c.dom.Document populated with data
- HttpServletResponse (that gives me either a PrintWriter or a ServletOutputStream)
If XMLSerializer were whitelisted in GAE, I could finish the work. ..but it's not.
My question is: How to cook the fo...
I have a large 'book' that I need to compress, encrypt and also make searchable on the iphone. The app has some requirements that won't allow a simple PDF or EPUB.
I have the book in plain text on my computer, and I am parsing/converting it to XML. I want to compress the file to reduce app purchase download time, and encrypt the app j...
Let's say I have the following XML :
<links>
<item>
<title>Title 1</title>
<url>http://www.example.com/url-1</url>
</item>
<item>
<title>Title 2</title>
<url>http://www.example.com/url-2</url>
</item>
<item>
<title>Title 3</title>
<url>http://www.example.com/url-3</url>
</item>
</l...
I am having an issue with the following code.
It uses the Mini-XML library to extract elements from an xml file.
It compiles and runs fine, except that it is unable to get the last "radius element," returning NULL instead (it crashes if I don't check to see if subnode is not NULL).
//Start loading <ssys> elements
mxml_node_t *node; //...
I am new to Ajax programming and I have been told that there are alternatives to using a database in Ajax if optimal speed is required. If there are going to be like a hundred requests per second then using a database does not make much sense. So what are those alternatives?
I need only "native" AJAX solutions. No libraries, please.
La...