xml

Parsing GeoRSS Feed with jQuery

I'm attempting to use the jQuery jFeed plugin for parsing an Atom, GeoRSS feed and I'm running into issues extracting the information I need. For example, I need to extract the summary element and I would like to render the contents in a div on my HTML page. Additionally, I'd like to extract the contents from the georss:point elements an...

Is there a good way to style an unordered list (loaded from XML) in Flash?

I'm loading the XML into a text field as htmlText. The StyleSheet class in Flash only supports a subset of CSS1–which debuted in 1996!–and doesn't support list-style-type or list-style-image. I'd specifically like to substitute an image instead of the default disc for an unordered list. If you've had success implementing a work-around,...

xforms "instance namespace" issue

I am creating an Xform that reads an XML document and creates an input form for updating the document. However, apparently due to a namespace issue none of my Xpath expressions resolve.My form works fine on a simple instance when the instance file has no namespace. However, I need the namespace support. My instance file has a namespace ...

converting html entity to utf-8 character

Hello, I am having this problems in grails where I am writing a string from the database into an xml file using StreamingMarkUpBuilder. The xml file displays the string as htmlentities &#x30b3 &#x30d4 &#x30fc, how can I convert them to be printed as コピー? Thanks! ...

How to select distinct xml nodes

How to take distinct nodes list in XML in c# for example <root> <node1 ss="d1" ff="f1" gg="h1"/> <node1 ss="d1" ff="f2" gg="h1"/> <node1 ss="d1" ff="f1" gg="h1"/> <node1 ss="d2" ff="f1" gg="h1"/> <node1 ss="d1" ff="f1" gg="h1"/> <node1 ss="d1" ff="f1" gg="h1"/> <node1 ss="d2" ff="f1" gg="h1"/> <node1 ss="d1" ff="f2" gg="h1"/> </roo...

UITableView not displaying parsed data

I have a UITableView which is setup in Interface Builder and connected properly to its class in Xcode. I also have a "Importer" Class which downloads and parses an RSS feed and stores the information in an NSMutableArray. However I have verified the parsing is working properly (using breakpoints and NSlog) but no data is showing in the ...

Import xml to database with high end performance and Audit log- A best Practice

Hi, I have to import big xml files to Ms SQL 2005 Database by using C# with high end Performance. Even if any record fails in middle, i have to take next record for process and failed record need to log for audit. I don't want to put insert query with in for loop. Could you please suggest a best way to do this. If I can use bulkcopy ...

PHP: How to store XML data in an array?

Below is the XML I am working with - there are more items - this is the first set. How can I get these elements in to an array? I have been trying with PHP's SimpleXML etc. but I just cant do it. <response xmlns:lf="http://api.lemonfree.com/ns/1.0"&gt; <lf:request_type>listing</lf:request_type> <lf:response_code>0</lf:response_cod...

xmlns naming convention

Do you use a naming convention for your XML namespaces? And if so, what reasoning lies behind it. I was actually amazed that hardly anyone wrote about a naming convention for XML namespaces. Most namespaces I've seen have the format of http://example.org/&lt;some identifier> or http://example.org/scheme/&lt;some identifier>. But that ...

XSD: minInclusive and attribute together

It seems I can't easily have an XSD declaration for this simple XML <root> <weekday name="Sunday">1</weekday> </root> where weekday is a restricted int from 1 to 7 and has a name attribute of type string Any advice? Thanks for your support! ...

XmlDocument caching memory usage

We are seeing very high memory usage in .NET web applications which use XmlDocument. A small (~5MB) XML document is loaded into an XmlDocument object and stored in HttpContext.Cache for easy querying and XSLT transformation on each page load. The XML is modified on disk periodically so a cache has a dependency on the file. Such an appli...

Send XML file to web server in Android

Hi, I am planning on converting some longitude and latitude values to XML and then sending the file to a web server to display on a Google Map Interface. Is it possible to send an XML file to a web server through my own application in Android? Thanks ...

valid children of XmlNode according to DTD?

consider this: I'm inside a (selfbuilt) XML Editor and am about to add a Child to an XmlNode. How do I know which types of children are valid according to a DTD. it's a behaviour like Intellisense. I couldn't find any .NET classes for "parsing" the DTD. How would i go about this? ...

Rails Paperclip XML POST File

I am able to 'POST' to a Rails application (with Paperclip) using XML instead of the standard web form (trying to do it from another Ruby script). However, I would like to include a binary file. Is there any way to include the binary data within an XML tag? Or can I do something like B64 encode the data on the client and then decode...

Php wrapper class for XML

I'm working on a new class to wrap XML handling. I want my class to use simplexml if it's installed, and the built in XML functions if it's not. Can anyone give me some suggestions on a skeleton class to do this? It seems "wrong" to litter each method with a bunch of if statements, and that also seems like it would make it nearly imposs...

HTTPService is very slow by sending 10'000 lines of XML to the server...

Hi everybody, I have a flex app which allows user to create some content. this content will then be sent via xml back to the server: private function saveBackXMLToServer():void { var params:Object = {}; params["xml_file"] = XML_content(); http_Service.send(params); } My problem is, that the...

Rails form multiple params XML

I have a form (snippet) <% form_for(@transfer, :html => {:multipart => true}) do |f| %> <p> <%= f.label :source %><br /> <%= f.text_field :source %> </p> <p> <%= f.label :destination %><br /> <%= f.text_field :destination %> </p> <% fields_for :upload do |u| %> <p> <%= u.label :upload %><br /> ...

XSL and Namespaces

This may be a really simple question, but its one I can't seem to get and am tearing my hair out over. I have the following XML: <?xml-stylesheet type="text/xsl" href="email.xsl"?> <Example xmlns=""> <Name xmlns="urn:rnb.fulfilment.bus.contracts.public.exampleBookName.v1">Mark</Name> </Example> And am trying to use the following XSL...

Exporting a SQLite database to an XML file in Android

I know this is possible but I'm not really sure where to start. Has anyone been able to achieve this? Thanks. ...

Store web content in XML using wiki markup

Does anyone have an XML style sheet that'll convert wiki-like markup to HTML? Or is that a bad idea? I only found one style sheet that'll convert HTML to wiki-like markup, view-source:http://mozile.mozdev.org/0.8/demos/html2wiki.xsl . Or is this a bad idea? Basically, instead of following strict rules with my XML tags to format my conten...