Hello!
I'm encoutered a problem that is could not get a HTML element by element's text.My HTML looks like:
...
<table>
...
<tr>
...
<td class="oMain">test value</td>
...
<tr>
...
</table>
...
For some special reasons,I have to get the '<td class="oMain">' element using it's text 'test value'. I tried '//tr[td='tes...
I've done this before...not sure what i'm doing wrong now I know it's the simplest thing in the world but i just want to make the text of my settings page black and the background white. Any ideas of what i'm doing wrong? my code does nothing.
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schem...
Hi Everyone!
I have a question regarding the tag. Actually I am new to the Android Programming and I want to use the Concept of Reusability in my Application at several places. I get to know that it is possible by the tag but I don't know how to use that. I have refered some of it's examples from the net but didn't found them quite sa...
i want to write a stored procedure in java for SQL to parse and store the xml automatically in the corresponding tables is it a good idea or any one guide me how to do it.
thanx in advance
...
Hi!i want to parse google weather API using NSXML so please give me some Guidance for this.My url is:
http://www.google.com/ig/api?weather=Ahemdabad
and i have taken such kind of steps:
NSURL *url = [NSURL URLWithString:@"http://www.google.com/ig/api?weather=Ahemdabad"];
NSMutableURLRequest *theRequest = [NSMutableURLRequest requestW...
Sorry if my question is a little repetitive, but I did not find an answer for my question so I post it here.
So, here is this URL which I use to generate a security-token:
api.sandbox.inrix.com/Traffic/Inrix.ashx?Action=GetSecurityToken&vendorId=1043016094&consumerId=94ce0781-b32f-4da5-b80b-8ca00cfb2194
The response of typing the abov...
When designing an XML structure I sometimes find myself wanting to use similar patterns across multiple element types that appear in the same instance document.
For example, the Head-Body pattern can often be useful if you want to keep data and meta data (data about the data) separate, and sometimes it makes sense for multiple types of ...
I receive an XML file with encoding "ISO-8859-1" (Latin-1)
Within the file (among other tags) I have <OtherText>Example "content" And ─</OtherText>
Now for some reason when I load this into XMLTextReader and do a "XmlReader.Value" to return the value, it returns: "content" And ─
This then, when confronted with a datab...
I am about to create a menu for a project of mine, and I need to make a dynamic navigation.
In my Admin back end, I will create a form for URI entry, so that the admins can create links and define the parent of the link and their ordering in relation to other links in the parent. I will be doing this with a MySQL database. The question ...
Short Version
I have a list of ints that I need to figure out how to persist through Application Shutdown. Not forever but, you get the idea, I can't have the list disappear before it is dealt with. The method for dealing with it will remove entry's in the list.
What are my options? XML?
Background
We have a WinForm app that uses ...
need xsd for the following xml
<Author Title="Mr." BirthYear="1882">
Lalchand
</Author>
i wrote like this
<xs:element name="Author">
<xs:complexType>
<xs:attribute name="Title" type="xs:string"/>
<xs:attribute name="BirthYear" type="xs:string"/>
</xs:complexType>
</xs:element>
need help in writing the value of Author that...
I want to make a loop that in my main.xml creates a button for each item in the list. But I cant see a way to loop in the xml file and create more buttons that way.
...
I have this XSL file:
< ?xml version="1.0" encoding="utf-8"?>
< xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl script" xmlns:script="script">
< msxsl:script implements-prefix="script" language="C#">
< ![CDATA[
public string...
how to convert NEWLINE into <BR/> with XSLT?
I have
<text>
some text with
new lines
</text>
I want to have
<p> some text with <br /> new lines </p>
...
Hi,
I have an XML structure like the following:
<Root>
<Base>
<Greeting>Base Hello!</Greeting>
<SpecialMessage>Base Special Message</SpecialMessage>
<Products>
<Product id="001">
<Greeting>Base 001 Hello!</Greeting>
</Product>
</Products>
</Base>
<Buy...
Hello, I have xml like below
<ns:response xmlns:ns="http://example.com" xmlns:ax="http://example.com/xsd" >
<ns:return type="mytype">
<ax:roleID>1</ax:roleID>
<ax:roleName>ADM</ax:roleName>
</ns:return>
<ns:return type="mytype">
<ax:roleID>2</ax:roleID>
<ax:roleName>USR</ax:roleName>
</ns:...
Hi everyone,
Just a quick question. I have one XML and I was hoping to tranform only a section of it without changing anything else. Here is a quick example of what I am looking to do:
Input:
<?xml version="1.0" encoding="UTF-8"?>
<dita xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" xmlns:xsi="http://www.w3.org/2001/XM...
How can I remove the whitespaces and line breaks in an XML string in Python 2.6? I tried the following packages:
etree: This snippet keeps the original whitespaces:
xmlStr = '''<root>
<head></head>
<content></content>
</root>'''
xmlElement = xml.etree.ElementTree.XML(xmlStr)
xmlStr = xml.etree.ElementTree.tostring(xmlElement, ...
Are there any good tools to generate a simple C# class from xml. I have tried XML spy but that takes the data into account and creates a far too complex class structure.
All I want is basically a class for each element and properties for each sub element.
...
I know how to use XPath, but often wondered what is the optimal way to store then during runtime. In the past i've split them up into individual bits, stored them as character strings, and one or two other ways.
Now I have a configuration file with bundles of them, like twisted knots, and am now looking for the optimal way to store them...