xml

how can i send a xml through a url

I have a php page say test.php Here i am creating an xml $xmlVariable = <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <signupInfo> <address> <address>1 Infinite Loop</address> <city>Cupertino</city> <state>CA</state> <zip>99999</zip> </address> </signupInfo> Now i need to send it to a destinati...

Signature Validation issues using OpenSAML & OpenSSO

Hi All, We are using OpenSAML on the Service Provider Site to provide SSO for our clients. Our client(ID Provider) is using OpenSSO on their end. The SAML Response being posted by OpenSSO is a little different when it comes to the signature element in that it is not qualified by the namespace. This doesn't seem to go down well with Op...

Anyone using OASIS CAM (Content Assembly Mechanism)?

I was researching on alternate schema representation mechanisms and came across OASIS CAM. I found it very relevant for my project. Wondering if anyone is using it in some real implementation. ...

Fastest SAX-style XML parsers for JRuby

I need to port some simple Ruby program to Windows, and I thought I'd use JRuby to avoid most of the hassle, but there's no libxml for JRuby. What should I use instead? I have gigabytes of XML to process, so I'd prefer if it was fast. ...

JRuby pretty XML generation

Is there any standard-ish library or gem I could use with JRuby for pretty-printing XML documents (newlines, indentation etc.) ? Whitespace is significant on some elements and irrelevant on most, but I need some way to control this; and I need to process gigabytes of XML this way, so it would be nice if it was fast. ...

How to keep Rails from Processing Large XML Post

In our rails application we have a many actions that do regular webapp actions. But, we have a single action that accepts a large XML file. I would like to keep rails from parsing the XML into params. Instead, I would like to be able to get the URL params ( /documents/{id}/action ) and then write out the xml file to a specific directory....

Best way to generate xml in python?

I'm creating an web api and need a good way to very quickly generate some well formatted xml. I cannot find any good way of doing this in python. Note: Some libraries look promising but either lack documentation or only output to files. ...

edit a xml file with php

PHP editing a XML file? So i have an XML file that looks like this <?xml version="1.0" encoding="iso-8859-1"?> <employees> <employee> <name>Mark</name> <age>27</age> <salary>$5000</salary> </employee> <employee> <name>Jack</name> <age>25</age> <salary>$4000</salary> </employee> </employees> I want to p...

XSLT - How to get IE consitional statements working in an XSTL

I've noticed IE conditional statements don't work in the transformed XML document. How do I get IE 6 and above to process them. Code as follows '<!--[if IE 6]><style type="text/css" media="all">@import "/css/ie6.css";</style>' Thanks. ...

How to match the brother of a certain XML element in ruby?

I played around with nokogiri in ruby and the XML searching feature, e.g.: a = Nokogiri.XML(open 'a.xml') x = a.search('//div[@class="foo"]').text which works quite nice. But how can I specify to match the next (brother) element on the same level (and only the next)? For example for this input: <div> <div>...</div> <div>...</di...

Do I need to submit the sitemap to search engines everytime it is updated?

If I have a sitemap_index.xml: http://www.domain.com/sitemap.xml 2010-09-28 And I change the content or update the page, and then change the lastmod, will I then have to submit it again to the search engines, for example in google webmaster tools (the section where you submit sitemaps)? Thanks ...

How does xml editing works in PHP?

Hi, If I open a XML file in PHP and edit part of it, does PHP load whole XML content then edit part of it then save whole content back to the file? ...

Problem Converting Object to XML in C#

Hello All , I have The Following Structure public class GraphData { private List<RecordPerDay> recordPerDay; public List<RecordPerDay> RecordPerDay { get { return recordPerDay; } set { recordPerDay = value; } } } public class RecordPerDay { private string da...

Problem With \ When Converting object to XML

I have a problem when I convert an object to XML. The result is like <Entry From=\"08:46:07\" To=\"20:47:06\" TypeId=\"1\" /> and I want to remove the \ in the XML. How can I do this? ...

Transform large XML document without programming

Hello, I have a file (a few GB), contains the data <doc> <a1>11111</a1> <b1>22222</b1> <c1>33333</c1> </doc> I want to transform into another XML <doc2> <f1>11111</f1> <f2>33333</f2> </doc2> Is it possible to do with custom written program? Thanks, ...

Equalizer animation is very slow and choppy in Flash AS3 when streaming?

So here's the scenario...sigh...My app makeup goes like this main FLA load mp3Player SWF mp3Player SWF loads mp3's via XML in which the XML is loading the mp3's through a full URL and not locally (url = "http://blahblah.com/song1/mp3, not "/song1.mp3") I have only one frame, no animations, and 2 movie clips for the equalizer. One for ...

Android inflating xml layout generates RuntimeException

I'm new to Android and i'm trying to inflate a layout in xml but i get a RuntimeException. I have cut out almost everything except for my activity class and the class extending SurfaceView. Can anyone tell me what i'm doing wrong? main.xml: <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/ap...

PowerShell, put XML into DataGrid

Hi. I would like to populate DataGrid with XML data stored in variable. Below I have working example of populating DataGrid. $grid = New-Object System.Windows.Forms.DataGrid $array = New-Object System.Collections.ArrayList foreach ($e in $(Get-Process | Select Name,Company)) { $array.Add($e) } $grid.DataSource = $array How can I do...

How can I do type-safe Xpath queries in Java?

I'm currently using JDOM for doing some simple XML parsing, and it seems like nothing's type safe - I had a similar issue with using the built-in Java DOM parser, just with lots more API to wade through. For example, XPath.selectNodes takes an Object as its argument and returns a raw list, which just feels a little Java 1.1 Are there g...

XML to CSV, only getting one line?!?

I'm having trouble with this XML to CSV Script.. when I remove the headers everything echos but with them I only get the last line of the CSV file. I turned off E_NOTICE warnings as not all of the delivery-requests have customer-ref1 and I'm not sure how to test for this isset() doesn't seem to work. I suspect that it may be part of the...