similar to: XML on a external website

Displaying 20 results from an estimated 10000 matches similar to: "XML on a external website"

2006 Aug 30
1
xml - get values
Hi I have the following xml string that I have loaded into an REXML object as shown below. #xml stuff for saveRoute require ''rexml/document'' include REXML Xml = "<test> <name>sam</name> <description>this is a test</description> <description>this is a test2</description> </test>" XmlObject = Document.new(Xml)
2006 Apr 17
5
XML-RPC Webservice API
Hi, After following the excellent tutorials in the Agile Web Development with Rails book, I was able to get my webservice working pretty much perfectly :) I can access it via SOAP and XML-RPC and look at service.wsdl to find the API. What I can''t do however is get the API for the XML-RPC call. It fails with : Internal protocol error: NilClass is not a valid input stream. It must
2006 Mar 24
4
Parsing Filemaker 6 XML into something I can use
Hi One of our customers has a Filemaker database which needs to be accessed for some data. Using the Web Companion, I can query the database for an XML version of the data. I need to be able to push this data into an array of hashes, so I can access it in a more convenient way. Filemaker is able to provide me with 2 XML formats (DSO-XML and FMP-XML): *********** DSO-XML ***********
2006 Apr 06
6
all elements of an array
Hi there, i have a model house and a model owner A house can have many owners. Now i want to find all owners of a specific street and i want to list them So i do: houses = House.find(:all, :conditions => ''street LIKE "%foo%"'') So now i got an array of all houses in that street @owners = houses[0].owner i''ve got all the owners of the first house. but
2006 Mar 10
2
Generating RSS 1.0
Hi All, I bought the ''beta book'' of Rails Recipes from pragprog and there''s a tutorial in there for producing RSS 2.0, i''d like to generate RSS (RDF) 1.0 though. Can anyone point in the right direction. I''ve had little luck finding detailed information on the ruby XML class. Thanks -- Posted via http://www.ruby-forum.com/.
2006 Jan 30
3
Which library for reading RSS ?
Hi all, I''m looking for a library for reading RSS feeds. Do you know a good one ? Thanks for your help. -- Posted via http://www.ruby-forum.com/.
2006 Jul 14
2
RESTful thinking - Need some guidance.
This is my first time working with REST and XML. My goal is to access Google''s geocoding service using HTTP. Here''s the code I have so far: require ''open-uri'' require ''rexml/document'' include REXML url=''http://maps.google.com/maps/geo?'' address = ''q=1600 Amphitheatre Parkway Mountin View,CA'' address1 =
2006 May 30
11
Display XML file, with some formatting.
Hi. Im quite new to this Rails thing, but it seems like a good product so why not try it out whit a little prototype i need to build. What i want is to load any given XML file, and display it with some formatting. I have some XSD shemes to validate the XML files against, but its not vital rigth now. But how should i approach this task? At first it would proberly be a good idea to load the
2004 Aug 20
8
wxruby-swig: where does wxclasses-2.4.2.xml comes from?
Was trying to understand more about the internals of wxruby-swig, where does the big chunk of XML comes from? I saw something similiar in Python, is that massaged out of there? The codes produced by extractxml.rb and wxclasses-2.4.2.xml is quite different from the original header files. Just for example the WxDialog class. OnXXX are non-virtual in WxWidgets, but virtual in wxruby-swig
2005 Aug 22
5
XML "Un-Builder?"
I''ve been unserializing XML in PHP with the XML_Serializer class, and I''m wondering if anyone knows of such a class for Ruby. Nothing fancy, just perhaps a simple way of converting arbitrary XML to a Ruby object. Maybe this has been implemented somewhere already? Thanks, Raymond
2007 Sep 29
2
REXML - XML query only returning one (last) result
I''m really new to Ruby on Rails, and I''m trying to read an XML file with REXML. No matter what I try, I am only getting the last result returned from my query. I should be getting 365 results. Here is the code: include REXML require ''rexml/document'' require ''rexml/xpath'' class MakeFootprintController < ApplicationController def index
2006 Mar 14
8
"Database" as a collection of XML docs
Hello everyone, A new project I''m starting on has a "database" consisting of many 10s of thousands of XML documents. They all conform to a common schema. The project consists pretty much exclusively of searching and presenting existing data - there''s no need (for the forseeable future) to be able to input or update XML documents in the database. Unlike (say) blog
2010 Aug 05
7
Search large XML file -- REXML slower than a slug, regex instantaneous
Got a question hopefully someone can answer - I am working on functionality to match on certain nodes of a largish (65mb) xml file. I implemented this with REXML and was 2 minutes and counting before I killed the process. After this, I just opened the console and loaded the file into a string and did a regex search for my data -- the result was almost instantaneous. The question is, if I can get
2006 Jun 24
1
Parsing XML with REXML problem
Why can it not find my object? What am i missing here? Here is my code: require ''rexml/document'' include REXML # classes to represent the objects and relationships in the xml file class Article attr_accessor :id, :post, :archive, :ntype, :head, :blurb, :body, :fblurb, :fimage, :att, :source, :copy, :brand end # the base parser class BaseXMLParser def initialize(filename)
2006 Apr 28
8
Rails magic for MySQL -> XML file -> MySQL and back again ??
Greetings! My little app collects data from the user, persists it in about a dozen tables during the session, writes out / saves an XML file that''s downloaded to the user''s PC when they''re done, then clears the db of all data entered, and deletes the XML file from the server. Now I need to allow the user to upload the same XML file they created earlier and put it back
2006 Jun 02
1
escaping quotes for generating xml
Hi, I need to have my controller return xml from db content. Is there a method I can call to clean up the text for xml rendering? I tried CGI:escapeHTML, but forgot it would ignore quotes. some of the db content is going in xml attributes so the quotes need escaping. thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2013 Oct 10
2
pom for 0.5.1
H, I am using libvirt from maven using a nexus proxy pointing to http://www.libvirt.org/maven2/ It downloads the jar fine but is expecting libvirt-0.5.1.pom (and ...sha1). In the proxy only the jar appears. When I download and rename the pom to my local .m2 cache my build works fine. Is this a bug in the distribution of libvirt in its maven repo or is my dependency wrong somehow? Kind regards,
2008 May 05
7
extract and assign xml values to variable
hi, how can we assign an xml element value to some variable in controller? e.g. if we have <order> <id>1</id> <name>abc</name> <location>xyz</location> </order> and if we want value of name i.e. ''abc'' to be assigned in a variable declared in a controller, say order_controller, like this- temp = "value of xml element
2020 Aug 22
2
Metric label values truncated when using OpenMetrics endpoint
Hi, Recently we upgraded to Dovecot 2.3.11.3 and configured an example metric like this: metric imap_command { event_name = imap_command_finished group_by = cmd_name tagged_reply_state user remote_ip } And enabled the OpenMetrics listener like this: service stats { inet_listener http { port = 5000 } } While the result is great, I noticed that some metrics are being truncated
2006 Mar 18
4
new user.presentation
Hi, I''m creating an RoR application right now and i''ve got the following question: An user has one presentation. So i''ve got an user table and in that table is an field fkPresentationID. Now i want to create an new user and at the same moment an new presentation for that user. I thought it would work with something like this, but it didn''t work. @user =