xml

Delphi ADO Query - Concatenate result sets

I am writing an application that allows a user to submit a query to multiple systems. I then save each report from each system using SaveToFile, which saves it as an XML document. The user can then inspect each report by selecting it from a menu, and the report is displayed by loading the report back into an ADO Query component (using ...

How do i call Rest Webserivce with a post method and send xml data in C#

Hi everyone, What i am trying to do here is make post request to Rest webserivce with xml data. this is what i have right now but i am not sure how to pass my xml data XElement xml = new XElement("MatchedOptions", from m in _matchedOptionsList select new XElement("Listing", ...

XML to IEnumerable<T>

Hi All Is there a way to Take a given XML file and convert (preferably using C# Generics) it into a Concrete Ienumerable list of T where T is my concrete class So for example I may have an XML file like <fruits> <fruit> <id>1</id> <name>apple</name> </fruit> <fruit> <id>2</id> <name>orange</name> <...

Getting the Option Value Attribute based on radio button selection.

I have many radio button in my Flex form, when i click on generate XML... the button which is clicked should have value 1 and rest as zero. <options> - <option value="0"> <text>Text0</text> <feed>Feed0</feed> </option> - <option value="0"> <text>Text1</text> <feed>Feed1</feed> </option> </options> Below comes Flex co...

How iterate xml-nodes with Groovy ?

Started work with SoapUI and can't catch idea how to treat Soap responses with Groovy. Currently my project opened in NetBeans and after debuging will be copy-pasted to the SoapUI (eviware) My question is: def Input = """ <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"&gt; <S:Body> <ns2:getSalesAuditsResponse xmln...

How would you arrange an XML file for an Event/Item which occurs on a range of multiple Dates?

For instance, I have a movie/item. It opens on Jan 1 2010 and finishes on Jan 10 2010. Do I create an entry for each date that the movie/item occurs, repeating all the data for each date? or do I create two nodes within the movie/item specifying a start date and end date and create an argument to provide all the data as needed? I want t...

best way of xml processing in php

i have a list of xml documents that i want to extract data from and add to my database- which way is the best in php? example documents are http://xml.gamebookers.com/sports/football.xml http://www.bet-at-home.com/oddxml.aspx?lang=en I want to extract the odds of a the soccer teams, the odds of them winning and match them with the fix...

Possible to add a XSLT Stylesheet to a serialized XML document?

I have code that serializes a complex object to XML and saves it as a file, is there a quick way to include a style sheet in the xml during the serialization? Using C# and .net framework v2. ...

Is it possible to have an optional stylesheet in an xsl-stylesheet processing instruction?

I've applied a stylesheet to an xml document using <?xsl-stylesheet ...>, this works great when the XML is being viewed in my application. But if the xml is exported, I want the XML to still render as plain XML, is it possible to have the stylesheet as optional rather than it producing this error when style is not found: Error loadin...

XSLT How to add Logic

I have the following collection in an XML document: <events> <event> <type>Downloaded</type> <result>Sucess</result> </event> <event> <type>Processed</type> <result>Sucess</result> </event> </events> Now in my XSLT I have a table with a TD - I want the value of this TD to represent the status of the...

XSD use="optional"

I have the following: <xs:attribute name="CarTitleID" type="xs:long" use="optional" /> In my source XML I want to allow people to say <car CarTitleID=""> And have the XSD not fail. Is this possible? ...

jQuery XML Ajax Call failing in... FIREFOX!

This is strange. I am used to IE crapping out on problems with XML format, but this is the first time I have had a problem in Firefox. The XML is created at this page: http://www.harrahs.com/content/events/EventCalendarFeedXml.jsp?propCode=UHA&amp;uniqueEvents=y&amp;showTimes=y The code I am using to pull in the XML is //Read X...

typed XML column with DateTime element - DateTime gets converted

I have a typed XML column in which I store the serialization from a C# object with a DateTime property. That DateTime is of Local type when I store it in the DB - although the serialized XML shows the time with an offset to GT time, as in '2009-09-22T13:52:32.2346252-07:00' (I live in Oregon). When I read the table (from within the SQL ...

HTML output via an XSL transform involving special characters

I am having trouble transforming particular characters from an XML feed into XHTML. I am using the following example to demonstrate the problem. Here is my XML file: <?xml version="1.0" encoding="UTF-8"?> <paragraph>some text including the –, ã and ’ characters</paragraph> Here is the XSLT I am applying: <?xml version="1.0" encodin...

parsing a CSV as XML via PHP

I found this script which parses a CSV file to XML. Problem is it seems to only be getting the first line of data after the column headers. function csv2xml($file, $container = 'data', $rows = 'row') { $r = "<{$container}>\n"; $row = 0; $cols = 0; $titles = array(); $handle = @fopen($file, 'r'); ...

What does elementFormDefault do for XML/When is it used?

So I found some definitions for elementFormQualifed values: qualified - elements and attributes are in the targetNamespace of the schema unqualified - elements and attributes do not have a namespace So from that definition I would think that if a schema is set to qualified then why must you prefix the type with the name...

Can I get the more than the last x articles from an RSS feed?

Going to http://feedproxy.google.com/ILoveTypography in my browser or curl, gets the last 15 articles, the number is set by the blog engine I'm guessing. Adding the feed to Google Reader however, I can scroll down to the bottom and it'l AJAX load the next 15 or 20 items in the list, and you can keep scrolling down and it'l forever load u...

Submit a SOAP Web service request with RAW SOAP XML

I've got a simple WCF Web service that uses basicHttpBinding to make it SOAP 1.1 compliant. When called with a WSDL-derived proxy (by setting a service or Web reference), the service works great. A business partner wants to call the service directly with the SOAP XML. I know how to provide that XML, but I'm not sure how to process the ...

XPath strangeness

I'm writing a script which reads and manipulates a KML (xml) document. Below is a snippet of the document I'm reading: <?xml version="1.0" encoding="UTF-8"?> <!-- Generated by Feature Manipulation Engine 2009 (Build 5658) --> <kml xmlns="http://earth.google.com/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom"&gt; <Document> ...

What are the advantages & disadvantages of using XML based database ?

Hi all, I came across a CMS known as GetSimple. It uses XML for storing all its internal data. In a way it is using XML as a database. Now could anyone explain me the advantages & disadvantages of using XML as a database. Thanks in Advance. Tanmoy ...