xml

Consume XML from Delphi 7

I need to get book information from isbndb.com trough XML service using this link http://isbndb.com/api/books.xml?access_key=12345678&index1=isbn&value1=9780321635345. Any Idea how to do that in delphi? ...

What are the pros and cons of XML and JSON?

We're an XML shop (we use both XMPP and RSS/Atom feeds a lot, so I guess we have a little or no choice). Yet, I keep hearing about people who "hate" XML and sometimes refuse to use APIs who can only return XML in favor of JSON. It looks like many many prefer JSON to it, but I'm still not so sure why. Of course, JSON is so much more ligh...

Timezone conversion in xslt

I have to convert this GMT format to EST in xslt 1.0. <Date>Mon, 11 Aug 2009 13:15:10 GMT</Date> is there any of doing that? ...

Android: Using a nine-patch background on a button, I cannot add any padding around the text

As the title says, I cannot get padding around the text. Here's my xml: <style name="StandardButton" parent="@android:style/Widget.Button"> <item name="android:background">@drawable/nine_patch_3</item> <item name="android:textColor">@color/white</item> <item name="android:textStyle">bold</item> <item name="android:paddi...

PHP: Returning XML in SOAP function call

I want to return the following XML in SOAP when a function is called rather than just a string. There are many different functions that will return an xml formatted this way, is there a way that I can define what a function returns? Like making my own data type? <meta> <supplier>Amazon.com</supplier> <datetime>2010/08/21 14:32:4...

Querying XML file?

I have a relatively small xml file <g> <page no="1" href="page1.xml" > <pic src="20100101001.jpg">1</pic> <pic src="20100101002.jpg">2</pic> <pic src="20100101003.jpg">3</pic> </page> <page no="2" href="page2.xml" > <pic src="20100101011.jpg">1</pic> <pic src="20100101012.jp...

How does one create a schema for composite types?

I have an XML spec that looks like this: <Root> <Directory Name="SomeName"> <TextFile Name="ExampleDocument.txt>This is the content of my sample text file.</TextFile> <Directory Name="SubDirectory"> <Speech Name="Example Canned Speech"> ... </Speech> </Directory> </D...

Can I use XSLT to transform a OpenOffice ODT content (content.xml) to HTML?

Is this possible? / Jonas ...

How do I get an XML attribute with XmlReader.Create?

I am using XmlReader.Create to retrieve data from an RSS xml file. Then I am putting this data into a DataSet and binding it to a ListView: XmlReader xmlReader = XmlReader.Create(this.RssUrl); XmlDataDocument xdoc = new XmlDataDocument(); xdoc.DataSet.ReadXml(xmlReader, XmlReadMode.InferSchema); The problem is that one of the fields I...

SDO XML DAS Avilibility in Shared PHP Hosting

What % of Shared Hosting Package Provide SDO XML DAS Extension installed. or has the capability to install it for the User. i.e. If my Application makes use of SDO XML DAS would I be able to work with it on any Shared Hoisted Server ? ...

How to create API

I'm finding a lot of tutorials on how to implement APIs but how does one actually create one? For example, I want to query movie quotes from my DB and also insert new ones via an API. I know PHP and MySQL but what am I missing to make an API? I read about the REST method and it seems easy but I can't find a step-by-step guide. Can someo...

How to access data from an XHTML file and use it in a Delphi Program

I am currently writing an application that needs to pull data from an XHTML file. the file is called toon.xhtml and below is its formatting: <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="/_layout/character/sheet.xsl"?><page globalSearch="1" lang="en_us" requestUrl="/character-sheet.xml"> ...

On libxml, how can I get this property value?

For an XML that has <?xml version="1.0" encoding="utf-8"?> <COLLADA version="1.4.0" xmlns="http://www.collada.org/2005/11/COLLADASchema"&gt; <library_geometries> <geometry id="Cube"> <mesh> <source id="Cube"> <float_array count="24" ">1 2 3</float_array> [..] I'm getting properly "1 2 3" string with a if (!xmlStrcmp(c...

Indexing files and quickiest way to find a file in folders?

Hi, I have 660000 xml files(with unique file names) in 22 folders. Each folder has 30000 files. I need to find them by their names efficiently in a C# application. I know there is a SearchIndexer service in Windows(?Vista+?) and I was just wondering if I can use that or I have to index the files myself? Alternatively, I guess I could c...

XQuery conversion for date to dateTime

Hello, I have a variable parameter that is formatted to the date type in XML. I need to convert that parameter into the dateTime format for another variable to accept my copy operation. This is being done in BPEL, but the expression builder for XQuery should be the same regardless of the processing language. Thanks very much for any h...

Get ancestors of some node with XQuery recursion

Hello, I have XML for example: <types> <type type="A"> <type type="A.A"/> <type type="A.B"> <type type="A.B.A"/> </type> <type type="A.C"/> </type> </types> Now, I have input string like: "A.B.A". I want get all ancestor and self node which has this string like value of "type" attribute. It means: <types> ...

Write a XDocument out with annotations

Hi, I have a XDocument where I have added some annotations (.AddAnnotation). Now I want to write the document out with these annotations. Both .ToString and .WriteTo will discard annotations so they will not work. Essentially, I need a custom XML writer but the abstract class XmlWriter don't have any notion about annotations on elements...

Obtaining XML through API call

Hello, I'm trying to issue a call through API so that I can delete user properties. When I go to ourwiki.com/@api/users/=john_smith%40ourwiki.com/properties it returns the XML which includes all of that users properties. I'm trying to store that XML in variable $xmlString then I should be able to loop through to get the properties and...

Ruby library for manipulating XML with minimal diffs?

I have an XML file (actually a Visual C# project file) that I want to manipulate using a Ruby script. I want to read the XML into memory, do some work on them that includes changing some attributes and some text (fixing up some path references), and then write the XML file back out. This isn't so hard. The hard part is, I want the file ...

Using PHP to post an XML buffer to an HTTPS page

Hi, I am using php 5.2.9 I have an XML buffer which I need to post to some HTTPS URL. What is the correct way of doing that? I see various examples on the web, and none of them seem to be working for me: Some define the cURL headers like so: $headers = array( "POST " . $page . " HTTP/1.0", "Content-type: text/xml;charse...