xml

How to solve "call to undefined function domxml_new_doc()...."

Hello guys. I am trying to output xml by using domxml_new_doc. However, I just got the call to undefined function domxml_new_doc() error. I tried google it but still not luck. Do I have to install any extension or library? Thanks for the help. $doc=domxml_new_doc("1.0"); //error on this line.... $node=$doc->create_element("marker...

Retrieving events from Google Calendar

I am trying to retrieve the XML data for Google Calendar. Authentication and retrieval all works. However, when I retrieve the events, gd: data isn't included as the protocol reference documents it would be (http://code.google.com/apis/calendar/data/2.0/developers_guide_protocol.html#RetrievingWithoutQuery) Some error messages I'm runni...

XSLT To HTML with Simple Grouping of XML Data using templates instead of for-each

I have been messing with xslt off and on since I became a sharepoint administrator, it uses xslt alot for displaying list data. I have recently started using it to transform database results that I have converted to xml using an extension method. I am trying to produce clean html. My first attempt, worked fine. However I used for-eac...

Send SOAP XML via curl, PHP

Hi. This has been bugging me for days, i'm trying to send a SOAP post via curl but i just keep getting a 'couldn't connect to host' error but i really cant see how. I have an asp version which works fine with the same url and data, i think it's just a php/curl thing...? I currently have the following code (the CURLOPT_POSTFIELDS data is ...

Duplicate elements when adding XElement to XDocument

I'm writing a program in C# that will go through a bunch of config.xml files and update certain elements, or add them if they don't exist. I have the portion down that updates an element if it exists with this code: XDocument xdoc = XDocument.Parse(ReadFile(_file)); XElement element = xdoc.Elements("project").Elements("logRotator") ...

send/post xml file using curl command line

How can I send/post an xml file to a local server http://localhost:8080 using curl from the command line? what command should I give? ...

Xml comparison in Python

Building on another SO question, how can one check whether two well-formed XML snippets are semantically equal. All I need is "equal" or not, since I'm using this for unit tests. In the system I want, these would be equal (note the order of 'start' and 'end'): <?xml version='1.0' encoding='utf-8' standalone='yes'?> <Stats start="12759...

Xpath expression to retrieve oldest/earliest node

I have an XML snippet, so: <STATES> <STATE> <NAME>Alabama</NAME> <ABBREVIATION>AL</ABBREVIATION> <CAPITAL>Montgomery</CAPITAL> <POPULATION>4661900</POPULATION> <AREA>52419</AREA> <DATEOFSTATEHOOD>14 December 1819</DATEOFSTATEHOOD> </STATE> <STATE> <NAME>Alaska</NAME> <ABBREVIATION>AK</ABBREVIATION> ...

How change Castor mapping to remove "xmlns:xsi" and "xsi:type" attributes from element in XML output?

How do I change the Castor mapping <?xml version="1.0"?> <!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN" "http://castor.org/mapping.dtd"&gt; <mapping> <class name="java.util.ArrayList" auto-complete="true"> <map-to xml="ArrayList" /> </class> <class name="com.db.spgit...

How to XML escaping with Apache Velocity?

I am generating XML using Apache Velocity. What is the best (most straight-forward) way to XML-escape the output? (I saw there is an escape tool, but could not figure out it's dev state. I also think that XML escaping is something that is very likely supported by Velocity directly.) ...

Strategies for serializing an object for auditing/logging purpose in .NET?

Let's say I have an application that processes messages. Messages are just objects in this case that implements IMessage interface which is just a marker. In this app, if a message fails to process, then I want to log it, first of all for auditing and troubleshooting purposes. Secondly I might want to use it for re-processing. Ideall...

Iphone: RSS with Images in tableView

Hello! Im trying to make an rss-app, with the feed in a table, each row with a title and an (thumbnail) image. I have everything working fine with just text, but i can’t seem to get the images to show up... Can somebody please help me with this? It would mean a lot to me!!! My xml data looks like this: Henin slumps to defeat by Stosu...

How to copy a node set into a resultant attribute using XSLT without white space and tags encoded?

Given this XML... <?xml version="1.0" encoding="UTF-8"?> <root> <item> <this> <that>one</that> </this> </item> <item> <this> <that>two</that> </this> </item> <item> <this> <that>three</that> </this> </item> </root> I want to make copies of the items into a new for...

Replacing characters in a non well-formed XML body

In a (Java) code that I'm working on, I sometimes deal with a non well-formed XML (represented as a Java String), such as: <root> <foo> bar & baz < quux </foo> </root> Since this XML will eventually need to be unmarshalled (using JAXB), obviously this XML as is will throw exception upon unmarshalling. What's the best way to r...

Problem Accessing XML in a Flex 3 Project when Using IE

Hi, I've got a Flex 3 project that uses xml. It works great in Safari or Firefox. But it blows up in IE. I access the xml using the lines below: _clickURL = [email protected](); _mediaSource = [email protected](); If I hard code it like this: _clickURL = "http://www.mywebsite.com/openx/www/delivery/ck.php?oaparams=2__...

How to organize xml data using equivalent to #region / #endregion (outlining) from C# .NET

I'd like to organize my XML data to be collapsable and expandable using a preprocessor command like the #region/#endregion command in C#/.NET. I'm editing this file Visual Studio 2008. Does any such ability exist? I've googled to no avail. The closest I can come to so far is to expand and collapse the tags themselves, so I can collaps...

Can XPath concatenate two nodeset values? (for use in XForms)

Hi! I am wanting to concatenate two nodeset values using XPath in XForms. I know that XPath has a concat(string, string) function, but how would I go about concatenating two nodeset values? BEGIN EDIT: I tried concat function.. I tried this.. and variations of it to make it work, but it doesn't <xf:value ref="concat(instance('para...

Actionscript 3 E4X working with namespace values in XML

I am building an application using Action script 3 I am retrieving some XML from the web however the node names are mms:Image mms:Results etc my action script compiler is throwing an error becuase it is not expecting to see the semi colon in the node name. How to I access the nodes? thanks ...

Whats the best way to implement a streaming quotes page?

I have a webservice that gives me the live stock quotes. I need to hit the webservice and update the page every 10 seconds or so. what is the best way to implement this using .NET and AJAX? I am looking for tips in the following lines: How to implement the end ASPX page to refresh the content on a timeout event? Should i just implem...

XML in Authorware 7.01

Let me explain the setup that is being used. Right now I have an authorware program which loads an ocx control. This control receives data in the form on an XML string. This part is working properly. However I need parse this XML string in authorware and have not been successful. I have been trying to use the XMLParser Xtra. The documen...