Hi,
I have a Telerik RadTree bound to an XMLDataSource.
I want to set a node's text to consist of 2 attributes (number and name)
See <telerik:RadTreeNodeBinding>
Example:
"1. How are you?"
and
"2. How old are you?"
XML:
<questions>
<question name="How are you?" number="1" imageurl="">
</question>
<que...
Not sure if the title makes any sense, but I need to read an XML document and retrieve the data created by an XSL XPath query.
The XML is located here and the XSL here. If that's not possible, I'm assuming that I'll have to write the XPath query manually. So my question is, since XSL already generates the total, any way to parse it out...
I've tried the Import/Export wizard, but there is no XML driver under the Data source drop down. Is there a way to import XML data into SQL Express without writing an app to do it explicitly?
...
I am developing a small windows application in .net. What DB should I use?
DB Structure
Table 1 : Not more than 3 fields : 50+ records (Add, Delete)
Table 2 : Not more than 10 fields : 10-20 records (Add, Delete)
I thought of using XMLDatabase but some say its not advisable to use it. What are the reasons for this?
If it is OK to use...
To get more control over serialization, I have converted a class from [DataContract] to [Serializable], implementing both GetObjectData and the special deserializing constructor. When I do this, the XML emitted now has type information applied to all elements. I don't want this superfluous information, and I'm wondering how to inform t...
I'm writing a user-defined function to extract values from an XML column in SQL Server which represents a simple dictionary of string key-value pairs. The only way I've made it work so far seems overly complex. Do you have any simplifying suggestions or tips for the DictValue function below?
IF EXISTS (SELECT * FROM sys.objects WHERE...
Given my existing XML (test.xml):
<root>
<element>
<child id="1" />
<child id="2" />
<child id="3" />
</element>
</root>
And my ruby code:
require 'rubygems'
require 'xml'
parser = XML::Parser.file("test.xml")
doc = parser.parse
target = doc.find('/*/element')
target << child = XML::Node.new('child')
child['id'] = '...
As a follow-up to this question - Is there a way to get the raw XML inside an element that you select using OPENXML? Should I be using an XML datatype instead? Is there a way to get the raw XML with the XML datatype?
...
from BeautifulSoup import BeautifulStoneSoup
xml_data = """
<doc>
<test>test</test>
<foo:bar>Hello world!</foo:bar>
</doc>
"""
soup = BeautifulStoneSoup(xml_data)
print soup.prettify()
make = soup.find('foo:bar')
print make
# prints <foo:bar>Hello world!</foo:bar>
make.contents = ['Top of the world Ma!']
print make
# prints <foo:b...
I'm loading a XML file into a XDocument, doing stuff to it, and calling Save(fileName) to rewrite the XML file. The original file has no XML declaration, is there anyway to avoid XDocument adding a XML declaration?
...
I have the XML given below. From this XML, in an ASPX page with an ASCX control that will contain the data, I want a drop-down on top with option "GMAT", "GRE", "LSAT", and "MCAT". And when I select GMAT below it will show only GMAT brochure and same with others.
Can you please provide some code for this?
<?xml version="1.0" encoding=...
I know it's been asked before (like here), but is there way to natively use XSLT on the iPhone? If not, and I need to use libxslt, is there any documentation/tutorial of how to use it on the iPhone?
EDIT:
I've decided to use libxslt. What files are necessary to include? I haven't found any tutorials of examples of use on the iPhone, and...
Hi,
I have XML file with values expressed in SI unit (m, N).
I use an XSLT document to transform it into HTML page where I would like to display values with other units (um, mN).
Is there a way to modify values I extract from my XML document using XSLT without modifying XML content before XSLT processing ?
Thanks in advance for your h...
What I tried to say in the title is:
Given a bit of XML in which I know a particular element appears only once, is it possible using a single XPath query to select a node-set that contains that element twice?
I understand there's a "union" operator (|) but that's basically a logical-OR, right? In SQL terms I'm looking then for the equ...
Whats the quickest way to convert a doc like:
<customermodel:Customer>
<creditCards>
<cardNumber>@0</cardNumber>
<provider>@HSBC</provider>
<xsi:type>@customermodel:CreditCard</xsi:type>
23242552
</creditCards>
.
.
So that the elements with @ become attributes for the parent element.
ie get...
I'm having problems getting PHP to play nicely with SoapServer + UTF-8. Anytime anyone sends a Soap Request with non english characters (i.e. funny quotes, accented characters, etc) the SoapServer throws an exception saying "Bad Request." I've tried decoding the request with utf8_decode and even HTML Special Characters encoded the text. ...
I need to test a program I wrote that receives XML as a text upload from a browser. I'm looking for a tool that will allow me to send the same content over and over instead of having to generate it new each time.
I am looking for an Application that can send a text file to a server
or
a way to do this with JavaScript and HTML
The sol...
I want to add an xml:base declaration to an xml file in java. I currently have the xml output in an OutputStream that was generated by some third party code.
The file starts out like this:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns="http://www.mycompany...
Heyas
I'm using lxml and python to generate xml documents (just using etree.tostring(root) ) but at the moment the resulting xml displays html entities as with named entities ( < ; ) rather than their numeric values ( < ; ). How exactly do I go about changing this so that the result uses the numeric values instead of the names?
T...
I'm working with some xml 'snippets' that form elements down the xml. I have the schema but I cannot validate these files because they are not complete xml documents. These snippets are wrapped with the necessary parent elements to form valid xml when they are used in other tools so I don't have much option in making them into valid xml ...