Displaying 20 results from an estimated 120 matches for "rexml".
Did you mean:
reml
2006 Jun 29
7
Mongrel says it works, but it doesn''t
Hello, I came to know of mongrel by pure chance, it interrested me cause
webrick never worked and instantrails for rails was very slow. the problem
with webrick is/was is that it says just this:
>ruby script/server
c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character class
has `-'' without escape
c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character class
has `-'' without escape
c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character class
has `-'' without escape
c:/ruby/lib/...
2008 Oct 15
5
REXML vs libxml
Hi all,
I''ve been looking at the performance of my fb app and one glaring issue
seems to be with the parsing speed of rexml in processing the results. Has
anyone looked into porting the facebooker parser from rexml to libxml? If
not, any reason I shouldn''t try?
Thanks!
Yu-Shan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/facebooker-talk/att...
2006 Feb 01
4
REXML::ParseException - but the feed IS valid
I am using Ruby feedparser and when I try to parse this feed:
http://feeds.feedburner.com/Mobilecrunch
I get an error:
REXML::ParseException: Declarations can only occur in the doctype
declaration.
This feed does validate at feedvalidator.org. Any idea why it would raise
an exception?
Thanks,
eduard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/r...
2007 Jun 07
1
Undefined method `register'' for REXML::Encoding:Module
...2007 5:48 AM
> To: jimmy.harris@notes1.nmh-au
> Subject: Puppet Report for melrhproxy1.nmh-au
>
> Fri Jun 08 05:47:47 +1000 2007
> //melrhproxy1/standard-config/File[/etc/aliases]/source
> (err): Could not describe /config/aliases: undefined method
> `register'' for REXML::Encoding:Module Fri Jun 08 05:47:47
> +1000 2007
> //melrhproxy1/puppet/File[/etc/puppet/puppetd.conf]/source
> (err): Could not describe /config/puppet/puppetd.conf:
> undefined method `register'' for REXML::Encoding:Module Fri
> Jun 08 05:47:47 +1000 2007
> //melr...
2009 Feb 02
12
[RSpec] rcov and/or rexml bug?
Hi,
Running: Ruby 1.8.7 p72, RSpec 1.1.12 and rcov 0.8.1.2.0, I get the
following error message with $ rake spec:rcov
--
/usr/local/ruby1.8.7//lib/ruby/1.8/rexml/formatters/pretty.rb:131:in
`[]'': no implicit conversion from nil to integer (TypeError)
from
/usr/local/ruby1.8.7//lib/ruby/1.8/rexml/formatters/pretty.rb:131:in
`wrap''
from
/usr/local/ruby1.8.7//lib/ruby/1.8/rexml/formatters/pretty.rb:131:in
`wrap''...
2008 Jan 02
3
REXML::Comment:Class
I have this field in my app where a logged in user can enter a comment,
but when I click on the link bringing me to that page I get the
following error message:
undefined method `table_name'' for REXML::Comment:Class
I am doing some encrypting that has an ''include REXML'' statement but
when I comment that out I still get this error. Does anyone know where
this is coming from? I do have a table named commnts which I''m thinking
is somehow related since it is in this page...
2007 Oct 27
3
rake spec:rcov failing
Running rails 1.2.3, rcov (0.8.0.2), rspec trunk (2865) -
When running rake spec:rcov, I''m getting the following:
Finished in 245.717813 seconds
856 examples, 0 failures, 48 pending
/usr/local/lib/ruby/1.8/rexml/text.rb:292:in `normalize'': private
method `gsub'' called for 0:Fixnum (NoMethodError)
from /usr/local/lib/ruby/1.8/rexml/element.rb:1084:in `[]=''
from /usr/local/lib/ruby/1.8/rexml/element.rb:586:in
`add_attribute''
from (eval):490:i...
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 Apr 08
1
How do I fix these annoying errors?
C:\rails\brablog>ruby script/generate scaffold
c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character
class has
`-'' without escape
c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character
class has
`-'' without escape
c:/ruby/lib/ruby/site_ruby/1.8/rexml/entity.rb:21: warning: character
class has
`-'' without escape
c:/rub...
2006 Jan 08
2
ICONV and REXML
Hi all. I''m having trouble getting REXML to play nicely with an RSS feed
that uses an encoding type called WINDOWS-1250.
My application works when I comment out the references to the lines that
utilize the REXML library.
After visiting my app and being told that Rails could not start properly, my
server.log file says:
FastCGI: comm wit...
2004 Aug 20
1
Any plans to switch wxruby-swig to using rexml?
since http://nqxml.sourceforge.net/
also recommends that we switch to use rexml which is shipped with ruby?
If there are plans for it but no developers, I might take it up as an
exercise to learn the internals of wxruby-swig.
Cheers,
Phuah Yee Keat
2007 Dec 10
3
Road to 0.7.0
Hey everyone,
I''ve been refactoring Mechanize for an 0.7.0 release. Basically I''m
trying to clean the code up and there are a few features that I think
are unnecessary, but I would like to ask people first.
1) REXML as a parser.
I want to remove support for REXML. I don''t use it. Hpricot seems to
do everything I need.
2) 1.8.2 thru 1.8.4 support
I''ve got a bunch of monkey patches for 1.8.2 thru 1.8.4. I''d like to
remove these because I think most people are on 1.8.5 or...
2006 Jan 25
0
screenscraping using htmltools and rexml
Hi,
I need to do some screen scraping and I''ve spent a couple hour getting
htmltools and rexml do the right thing. Here''s the code:
parser = HTMLTree::Parser.new(false, false)
parser.feed(res.body)
tree = parser.tree.html_node.as_rexml_document
I works for one page, but for another I get "undefined method `add'' for
#<HTMLTree::Element:0x37f9cc8>" in as_rex...
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>"
X...
2009 Aug 14
9
Rescuing from REXML::ParseException
Hello,
When I call an action with some invalid XML or JSON data a parse
exception gets raised from within Rails/Ruby (REXML or
ActiveSupport::JSON). The problem that I''ve got is how to handle these
exceptions. In my application_controller.rb I have the following for
debugging purposes:
def rescue_action_in_public(exception)
respond_to do |request|
request.all { render :text => "Uh oh" }
en...
2006 Jun 26
0
DBI question. How do I load a database with data parsed from REXML?
I wrote a rexml script that parses rather big xml files (DOM parsing) and
builds an object out of them. This is what it looks like after i parse the
xml file and display the object:
[#<Article:0xb79e7428 @brand="This is a story from ", @id=5337,
@fblurb="burb", @ntype="news type here&q...
2007 Jul 14
1
Very basic question about REXML
Hello Everybody,
I have pretty basic question abut REXML. I want to put the String "John doe" in titles array, if attribute name is equal to "93". Please see the code below. I could not find how to do it.. any help would be very appriciated.
Here is the XML i am trying to parse
<entrydata columnnumber="2" name="...
2006 Feb 01
3
XML on a external website
In my rails application i want to fetch an external xml file
So my website www.test.com needs an xml file from
www.example.com/xml.asp?query=hallo. In my rails application i want to
fetch and handle this file as an xml object.
Can anyone help me?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2007 Feb 07
2
Quick XPath question (REXML)
All,
If I have the following (assume that xml contains a valid REXML Document
and that the root of the xml is way above any <tr> elements in the
document):
just_rows = xml.elements["//tr[starts_with(@id,
''xdgDataRow_grid_container_'')]"]
shouldn''t just_rows contain _all_ of the <tr> elements whose id
attributes start...
2007 Jun 07
0
Why does REXML run significantly slower in Rails
We have some code that uses REXML, that when executed outside of Rails as a
standalone rb file, runs fine. Once we run the code inside of Rails, it is
dog slow. I know REXML is slow, buggy, sucks, etc., but my question is what
cause the performance to degrade like that. Thanks.
--~--~---------~--~----~------------~-------~--~----~...