xml

Using PHP to output XML

<? $MySQLPassword = "indian"; $HostName = "localhost"; $UserName = "monty"; mysql_connect($HostName,$UserName,$MySQLPassword) or die("ERROR: Could not connect to database!"); mysql_select_db("sachin") or die("cannot select db"); $keyword = $_POST['keyword']; echo $keyword; /* Execute the query that...

Flex Result event... question

On ResultEvent through HTTPService, i need to print the result in a textBox. private function google(evt:ResultEvent):void { Alert.show(evt.result.loginsuccess.person); subtitle.text = evt.result.loginsuccess.person.keyword; } This is my XML coming down from PHP file... [index.php] <loginsuccess><person><keyword>java</ke...

Import non-english WIkipedia XML dump in MySQL?

Hi, I'm looking for a script that can convert the XML wikipedia DUMP in MySQL compliant SQL. I've found a ready SQL dump for the english version but no easy way to import the other languages. Thanks, Piero ...

How to write or generate an XML file

How to write or generate an XML file using C# to get the result below? <?xml version="1.0" encoding="UTF-8"?> <pages> <page name="Page Name 1" url="/page-1/" /> <page name="Page Name 2" url="/page-2/" /> <page name="Page Name 3" url="/page-3/" /> <page name="Page Name 4" url="/page-4/" /> </pages> ...

getting an absolute path from xpath selectors

Is it possible for an xpath selection to return the absolute path for each node found? for quick example //chapter to return //book[1]/chapter //book[2]/chapter ... Thanks ...

How to use genxmlquery function of informix using JDBC?

I have the need to extract result of the database query in XML format. I have planned to use JDBC as my programming language. I came across the XML publishing function of IDS 11.0 and planned to use that. Have configured the database settings to perform XML publishing and am able to execute a query in command prompt (dbaccess databasenam...

What's the best way to parse an XML dateTime in Java?

What's the best way to parse an XML dateTime in Java? Legal dateTime values include 2002-10-10T12:00:00-05:00 AND 2002-10-10T17:00:00Z Is there a good open source library I can use, or should I roll my own using SimpleDateFormat or similar? ...

How can I mine an XML document with awk, Perl, or Python?

I have a XML file with the following data format: <net NetName="abc" attr1="123" attr2="234" attr3="345".../> <net NetName="cde" attr1="456" attr2="567" attr3="678".../> .... Can anyone tell me how could I data mine the XML file using an awk one-liner? For example, I would like to know attr3 of abc. It will return 345 to me. ...

Aol Contact API

aol contact api Hello can any body please tell me how to fetch complete contacts address book(including buddy name,phone number,emails etc.) i m getting this sort of information while using following query using curl: Query:- $aimStartUrl = "http://api.oscar.aol.com/presence/get?f=xml&amp;bl=1&amp;k=".$devId."&amp;a=". urlencode($authT...

While importing XML to MS Access 2003, boolean variable is being imported as string

I am trying to import an XML file into MS Access 2003, through File>Get External Data>Import. And I want to import a field as boolean. I have pre-built the tables and importing the data only. I am confused that what should be value of boolean in XML so that it can easily get imported as aceess boolean variable. ...

currency xml feeds with lots of currencys

Hello I am seeking for xml feed with lots of currency's it should be free and with daily updates if somebody know one, pleas share info I have googled all day for this ...

Data Integration Approach

Im trying push some data into a CRM system via an XML import. I have XML Schemas for the CRM system (XSD's) which are pretty complex (big files with lots of namesapces), I'm struggling to figure out what the XML should look like and the namesapces are not helping at all. I need an easy way to prototype the XML documents, once I have a...

Parsing Huge XML Files in PHP

I'm trying to parse the dmoz content/structures xml files into mysql, but all existing scripts to do this are very old and don't work well. How can I go about opening a large (+1GB) xml file in php for parsing? ...

XDocument can't load xml with version 1.1 in C# LINQ?

XDocument.Load throws exception, when using XML file name of xml with version 1.1 instead of 1.0 Any clean solutions to resolve the error (No regex) and load the document? ...

PHP generated Doctype problem with XSLT

I am transforming XHTML to XHTML using XSLT and Doctype part is giving me problem <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="LimeSurvey.xslt"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.or...

Banding with xsl

I am beginning to think that the problem isn't with the banding code. Somehow count is not coming out correct. Could it be in either the xml, I have approx. 150 of the case-study nodes? Or can it be in the order in which I am doing the for-each and the if? <!-- XML --> <case-studies> <case-study> <name>Company A</name> <...

How do I validate XML via RELAX NG in Ruby?

The REXML module appears to have support for RELAX NG validation, but the docs don't have any real information on using the validation portion of the framework. How would you validate an XML document with a RELAX NG schema? A code snippet would be most helpful. TIA! ...

When should I use xml schemas(.xsd) when reading xml?

Hi, I have a XML file which holds configuration data for data sources, and the related queries held in 'dataseries' elements. As I don't really need domain objects made up from the XML, rather just settings read and used to configure connections etc. I was wondering if there is any advantage in using the XML schema I have defined? I a...

Decoding html encoded strings in python

I have the following string... "Scam, hoax, or the real deal, he&#8217;s gonna work his way to the bottom of the sordid tale, and hopefully end up with an arcade game in the process." I need to turn it into this string... Scam, hoax, or the real deal, he’s gonna work his way to the bottom of the sordid tale, and hopefully en...

saving the FOR XML AUTO results to variable in SQL

select @[email protected]('*') for xml raw,type Above statement will generate following alert: Msg 6819, Level 16, State 3, Line 2 The FOR XML clause is not allowed in a ASSIGNMENT statement. ...