xml

Update Div with XML using Jquery

All, I know this is stupid simple but... I'm using jQuery. I'm getting an XML document like this $.ajax({ type: verb, url: url, dataType: datatype, success: callback }) } In my call back I want to update a div named ID="UpdateMe" with the result so that it looks like nicely formated XML. This is my psudeo code for di...

Extract node from XML like data without extra PHP libs

Hello all, I am returned the following: <links> <image_link>http://img357.imageshack.us/img357/9606/48444016.jpg&lt;/image_link&gt; <thumb_link>http://img357.imageshack.us/img357/9606/48444016.th.jpg&lt;/thumb_link&gt; <ad_link>http://img357.imageshack.us/my.php?image=48444016.jpg&lt;/ad_link&gt; <thumb_exists>yes</thum...

Stuck on an interactive map.

SO, I am getting down to the wire on a deadline for an HTML/Flash hybrid interactive map, and it is not anywhere near finished. I keep getting close to solving each problem, only to discover more bugs. Most of them are quite obvious when you look at the work. I would like to at least squash the big bugs, so I am VERY appreciative of any ...

Can Keys and Keyrefs be spread across multiple XSD files?

I'm trying to mimic a relational database structure using XML. (Just in case anyone is wondering why, my reasons for using XML are: (1) The total amount of data is expected to be small, (2) I need non-programmers to be able to edit some of the input tables, and (3) I want the installation process to be as simple as possible (i.e., no da...

Tutorial: XML in Netbeans IDE

Does anyone have a good tutorial for using XML for storing data in a Java application utilizing the Netbeans IDE? I would like to be able to instantiate classes in the Netbeans IDE to support calling to and from XML files. I understand Netbeans IDE and possibly Java in general supports XML classes, but I do not yet know how to access the...

SQL: Using an INSERT within a SELECT statement

I have a SQL SELECT statement that will create its results in XML Format. I would like to INSERT into another table (Log via insert) every time a row is selected from the original SELECT Statement. Is there anyway to include an INSERT Statement inside of a SELECT Statement? SELECT cs_ads_StoreLocations.LocationGUID, *Bunch of S...

I18n for XSLT (or what is the gettext() and xgettext of C++ for XSLT)?

Complete C++ i18n gettext() “hello world” example shows a standard way to handle messages in a C++ program using gettext(). The message catalogs are stored in Portable Object files based upon a Portable Object Template file created directly from the C++ source code using xgettext, msginit and msgfmt. What is the corresponding method for ...

Survey: how are you using ID/IDREF? (or key/keyref)

I'm interested in how people use this feature: what domain, what relationships (apologies if survey questions aren't appropriate). XML represents trees naturally using containment; but it can also represent graphs, using IDREFs that refer to IDs: many elements can refer to the same element (multi-ref); and a nested element can refer to ...

How to write a nested xml using DataSet

I used DataSet to load a schema from following xml file; <node id="0"> <node id="1"/> </node> Then I cleared this dataset and filled data in. When I tried to invoke WriteXml method of my dataset, it threw a exception said: Cannot proceed with serializing DataTable "node". It contains a DataRow which has multiple parent rows on th...

XSLT - Replace apostrophe with escaped text in output

I'm writing an XSLT template that need to output a valid xml file for an xml Sitemap. <url> <loc> <xsl:value-of select="umbraco.library:NiceUrl($node/@id)"/> </loc> <lastmod> <xsl:value-of select="concat($node/@updateDate,'+00:00')"/> </lastmod> </url> Unfortunately, Url that is output contains an apostrophe - /what's-new.aspx I...

Entity Framework Query Xml

How would you build up this query with Entity Framework : SELECT * FROM TreeNodes WHERE data.value('(/edumatic/assessmentItem/@type)[1]', 'nvarchar(max)') like 'multiplechoice1' data column is XML. Apparently this is converted to a string by the Entity Framework... This is my start but from here I wouldn't know how to add the w...

Recursively build XML from PSQL Result Set (using PHP)

Hey everyone, I am building an XML document successfully with the following code: public function build($result) { $root = $this->append(new xmlElement('data')); $root->append(new xmlElement('collection')); while($row = pg_fetch_assoc($result)){ foreach($row as $fieldname => $fieldvalue){ $second = $roo...

Using XmlEncoder to create delta/difference xml

Hi! The idea is the following: The XmlEncoder records the operations needed to reproduce the serialized bean starting from nothing. But what if we do not start from nothing? Can XmlEncoder be used to record the operations needed to transform an object to an other? And can XmlDecoder be used to make this transformation? Or is there an...

Narrow band extensible message format

I'm putting together a technical response to tender, one of the requirements is to pass messages using an extensible format over a narrow bandwidth network (10 bytes/sec or so). To make life easy on the server, which will be receiving info from 1000's of devices I'd like to use Xml. To help with the bandwidth issue I could use compressed...

Pattern based merge help

Is there a generic approach to data merge an xml file content (a template) with embedded XPath expression to an XmlDocument? As an example, (please note this is just a simple example, i am looking for a generic approach) File: <root xmlns:dt="urn:schemas-microsoft-com:datatypes"> <session email='' alias=''> <state> <action> <att...

Magento: Including a module template into the checkout process

Hi, I'm trying to include a custom template into the checkout process on the shipping page. I want that template to adopt the functionality of its parent template so I can use any of the shipping variables within the template. However I can't get magento to load the template. Here is my XML (the header scripts are adding successfully...

XML Web Services

I just start learning to write web services yesterday, kinda fascinating. I created an XML web service, i most program on my Linux box, I want to use the java language or some other language to access this web service. Can you direct me to any tutorial that show how to access the .net web services from another programming language. ...

C# XmlDocument Nodes

I'm trying to access UPS tracking info and, as per their example, I need to build a request like so: <?xml version="1.0" ?> <AccessRequest xml:lang='en-US'> <AccessLicenseNumber>YOURACCESSLICENSENUMBER</AccessLicenseNumber> <UserId>YOURUSERID</UserId> <Password>YOURPASSWORD</Password> </AccessRequest> <?xml version="1.0" ?> <Tr...

read an xml stream

Hi. I am trying to read the following xml stream but am really struggling. <channelSnapshot xmlns="urn:betfair:games:api:v1"> <channel gameType="BLACKJACK" id="1444077" name="Exchange BlackJack"> <status>RUNNING</status> <game id="190675"> <round>1</round> <bettingWindowTime>30</bettingWindowTime> <bettingWindowPercentageComplete>100</b...

Parsing the National Threat Level XML File with jQuery

I'm trying to use jQuery to parse the DHS Threat Level that they have in their XML file, but I can't seem to get it to work. I'm very new with Javascript and non-presentational jQuery, so I'm probably missing something obvious. This is the XML file: <?xml version="1.0" encoding="UTF-8" ?> <THREAT_ADVISORY CONDITION="ELEVATED" /> Thi...