xml

Regex for a-z , hypen (-) and å ä ö in Zend Route Regex

Hi! I want to route url through Zend route regex with Swedish character and here is my regex in xml configuration: ..... ([a-z\-å|ä|ö]+) ..... Still, the route doesn't behave as I expect. It doesn't redirect when the link contains å, ä, or ö I have tried to change to [a-zåäö\-]+ but it also gives the same result.. anyone can help? ...

How can I access RDF-XML from Perl (or other scripting language)?

I'm backing up my Flickr pics locally using a Perl script and the Net::Flickr::Backup module. This pulls down the original picture, a thumbnail, and the associated metadata (title, tags etc) in a RDF-XML file. I'd like to extract a subset of this metadata so I can generate a "poor man's Flickr" HTML page. This should display the thumbna...

Missing characters in parsed XML output with PHP5

I'm trying to parse the following XML file: <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE content PUBLIC "-//BLACKWELL PUBLISHING GROUP//DTD 4.0//EN" "http://www.blackwellpublishing.com/xml/dtds/4-0/bpg4-0.dtd"&gt; <content dtdver="4.0" docfmt="xml"> .... <forenames>NIELS B&Oslash;IE</forenames><x> </x> At first it wouldn't lo...

Is there a way to avoid IE7 quirks mode while rendering XML + CSS?

I've got some DocBook documentation styled with a CSS xml-stylesheet declaration. It looks great in Firefox, but IE7 doesn't seem to understand the CSS child selectors (e.g. section > title { ... }). I think this is because IE is running in quirks mode to render this XML, and older versions of IE didn't support that CSS syntax at all. ...

XML selectNodes using Classic ASP

Hi all XML problem that's got me stumped, but is probably very simple... The XML is like: <header> <createdOn>16 Sep 2009</createdOn> <createdBy>Jez</createdBy> </header> <agents> <agent> <agentDetails> <agentName>text</agentName> <agentTelephone>text</agentTelephone>...

How to convert records in a table to xml format in PHP?

I fetched some records from a table named a2h_member in php. i want to convert it into XML format. How can i do this?. Give me some suggestions or code. Please Help me ...

Escaping from XML to ActionScript 3 code

Is it possible to escape from XML, to ActionScript 3 code? Take a look at the following: <keyFrame name="myKey" delay="100ms" function="{function():void{soundCommand.execute()}}"></keyFrame> where the function():void{soundCommand.execute()} part has to be interpreted as ActionScript 3. So ideally, if I query the function attribute...

Getting text values from XML in Python

from xml.dom.minidom import parseString dom = parseString(data) data = dom.getElementsByTagName('data') the 'data' variable returns as an element object but I cant for the life of me see in the documentation to grab the text value of the element. For example: <something><data>I WANT THIS</data></something> Anyone have any ideas? ...

iphone sdk - XML parseErrorOccurred: how to get rid of the illegal charaters when parsing in XML?

When pasrsing XML using NSXMLParser, I encountered this problem when the parser received some characters that it couldn't take such as: the auto-correct "..." or "--" in MSWord. My app reads XML which is exported out of my database from a PHP file. I wonder if I should handle this on the server side or on the iPhone SDK and How? any he...

Using a schema to sort an XML document

Say I have an XML document (represented as text, a W3C DOM, whatever), and also an XML Schema. The XML document has all the right elements as defined by the schema, but in the wrong order. How do I use the schema to "re-order" the elements in the document to conform to the ordering defined by the schema? I know that this should be poss...

XmlPullParser read InputSource

I know how to create InputSource out of Reader but how to go the other way? I'm capturing org.xml.sax.InputSource and now want to feed it into org.xmlpull.v1.XmlPullParser. That one has few setInput methods but these only accept Reader or InputStream as an argument. What would be the best way to convert InputSource into one of these? ...

Check XML node exists by Value using JQuery

Hi, I'm trying to check if a value in an xml node exists using Jquery. The xml string is: <SectionAnswers> <SectionAnswer> <detailID>2216</detailID> <SourceAnswerID>979</SourceAnswerID> </SectionAnswer> <SectionAnswer> <detailID>2218</detailID> <SourceAnswerID>981</SourceAnswerID> </SectionAnswer> <Sec...

Is it possible to retrieve the original XML from XPathNavigator?

I have an XML document, want to do syntax highlighting. The code uses XPathDocument, XPathNavigator and XPathNodeIterator . After I call Select(), how can I get the original text in the XML document? var xpathDoc = new XPathDocument(new StringReader(this.richTextBox1.Text)); var nav = xpathDoc.CreateNavigator(); XmlNamespaceManager...

parsing xml with jquery problem with output

Hey guys, i want to parse an xml file with jquery. This works so far, only the output confuses me:) probably you can help me. $(function(){ $.get("images.xml",{},function(xml){ var output = "<ul>"; $(xml).each(function() { smallImage = $(this).find("small").text(); //bigImage = $(this).find("big").text(); ...

how to SelectSingleNode in to XmlDataSource?

In my code XmlNode xNode2 = doc2.SelectSingleNode("PageQuery/QueryReport[@id='" + 1 + "']/MainReport/OpenReport"); how to select all childnode in XmlDataSource? ...

Exporting excel to xml spreadsheet with blank cells

Hello I am exporting an excel workbook into xml spreadsheet The excel has lets say 10 columns and 10 rows Some of the cells are empty(i.e with no value) When i save the file into xml spreadsheet and review the row that has blank cell in it it has only cells, the cell with the empty value is not there and the xml show that the cell befor...

Parsing XML CDATA with Xmllite

The issue: When readin CDATA elements, carriage return (0xD) are omitted from the output. Is there a proper way to tell Xmllite to keep CR, or should I always need a Replace(LF,CRLF) call? Thanks I.A ...

How to convert 2009-09-18 to 18th Sept in xslt

Hi All, want to know How to convert 2009-09-18 to 18th Sept in xslt? Thanks. ...

Nested Gridviews for more than one XML files (ie)without specifiying the Xml file name directlt onto the code.

Hi everyone, I'm new to XML. We are working on Asp.net, C# & Xml. We are developing a project mostly working on XML. We are generating an XML File from the inputs given from an Admin Page. According to the work done on Admin page, an Xml File will be Generated and it will be stored into the SQL Server DB. This is just an example of the...

Parsing UTF-8-encoded XML in MSXML/ASP

I'm at the receiving end of a HTTP POST (x-www-form-urlencoded), where one of the fields contains an XML document. I need to receive that document, look at a couple of elements, and store it in a database (for later use). The document is in UTF-8 format (and has the appropriate header), and can contain lots of strange characters. When I...