similar to: embedded DTD using Builder

Displaying 20 results from an estimated 40000 matches similar to: "embedded DTD using Builder"

2007 Nov 21
4
Builder::XmlMarkup adds <inspect/> on printing and <clone/> on saving
Hello, I am new in this group. Please give me a short hint, in case this is the wrong place for my posting. I want to create an XML file and store it in "filetransfer". The XML part of the file (the body) sould go to "filetransfer.data". Despite the last line, everything is fine with the code below. With "filetransfer.save" two entries "<clone/>"
2018 Mar 12
0
IceCast Listenter Count Stat - BASH or php?
Hello, On 08-03-18 05:54, ScanCaster wrote: > Is there some simple way to get just the listener count on mounts out of > IceCast, specifically 2.4.1 > > Via BASH preferred, or CLI php if I must, I guess python 2.x would be an > option too. (3.x is not an option though!) > > All the stuff I've seen is scrapping things from the status.xsl, which is > bad form. Well,
2006 Jan 30
5
a RJS problem/patch
Hi, add_rjs_to_action_view.rb of javascript_generator_templates doesn''t work with setting Content-Type in a controller. (e.g.) http://wiki.rubyonrails.org/rails/pages/HowtoSetDefaultEncoding class ApplicationController < ActionController::Base before_filter :set_charset def set_charset @headers["Content-Type"] = "text/html; charset=utf-8" end end I
2009 Jan 09
2
Confused about to_xml() in ActiveRecord::Base subclass
Since all my efforts to control how to_xml() is formatting dates has failed, I''m now considering writing my own to_xml(). However, from the limited examples I''ve found, I just don''t understand how to actually reference the columns for the records in my record set. Here''s a simplified view of my ActiveRecord object: class Errors < ActiveRecord::Base
2014 Nov 14
0
Pyhton Class/library for Icecast 2.32 Stats and other info access?
On Fri, 14 Nov 2014, Dean Sauer wrote: > In a search for access to various ways to interact with Icecast via > Python, I ran across this: > > http://xiph.org/~brendan/pyshout2/pyshout2-0.0.1.tar.gz > > Which is now dead (404). I don't think this library would have helped. I expect it would be useful for source clients to send media to a server. > I have a need to be
2018 Mar 14
0
IceCast Listenter Count Stat - BASH or php?
just parse status-json.xsl with php's curl/json_parse... ScanCaster: > On Mon, 12 Mar 2018 22:07:34 +0100, Jeroen van Oosten wrote: > > > Well, you can create your own XSL with less data. I use this (as > > web/simple.xsl): > > Well since I don't know XSL, BASH etc. was my go to choice... > > BUT... > > Doing this gets > 404's from a
2006 Jul 14
2
how to get builder 2.0 to escape attributes in rxml
I am using rxml to produce opml files and need to escape ampersands in the attributes. builder 2.0 docs found at http://builder.rubyforge.org/ show the following xml = Builder::XmlMarkup.new xml.sample(:escaped=>"This&That", :unescaped=>:"Here&amp;There") xml.target! => <sample escaped="This&amp;That"
2015 Nov 22
0
可能您的账户已经被盗用。被不法分子利用发送不良信息!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=utf-8" http-equiv=Content-Type> <META name=GENERATOR content="MSHTML 8.00.7601.18667"></HEAD> <BODY> <TABLE style="WIDOWS: 1; TEXT-TRANSFORM: none; BACKGROUND-COLOR: rgb(255,255,255); TEXT-INDENT: 0px;
2009 Feb 19
0
Can't seem to instantiate Builder::XmlMarkup.new?
I am unable to instantiate the Builder::XmlMarkup.new on one development machine ( Windows ) and upon my CentOS server. When I run the same code on my Ubuntu 8.10 VMWare machine, everything runs great? In the Builder documentation ( http://builder.rubyforge.org/ ) it shows to put this at the top of the controller; require ''rubygems'' require_gem ''builder'' but
2010 May 17
0
ActiveResource 3 on MRI 191: NameError (uninitialized constant Builder::XmlBase::Symbol)
We''ve run into this before and, in this particular project, I''m positive we had a hack somewhere to get AR to work but it seems to have gone missing and I''m not finding any hints in git history or Google. Any call to an AR.create will trigger it. Seems like a strategically placed require or include did the trick but I''m probably misremembering. The offending
2005 May 01
5
Example using Builder::XmlMarkup and .rxml files?
Greetings, I''m a newby to both "R"s in RoR. I would like to use Builder::XmlMarkup to generate my pages. If there is a working downloadable example somewhere, that would probably be enough. Otherwise, here''s what I want to do: With the following controller: class AccountsController < ApplicationController layout ''accounts'' model :account
2015 Dec 06
1
Listener statistics on a fallback stream
Hello, On 06-12-15 13:58, Yahav Shasha wrote: > > >To me it sounds like a bug; surely the fallback never needs > statistics, > only the real steam because this is where listeners connect to. > > > Well, the fallback mount is still a mount-point nonetheless. you could > still use it as a "regular" mount-point even if its configured as a >
2009 Jan 21
1
AR to_xml problem with associations, Builder::XmlMarkup#to_a
When I do a to_xml(with a block) on an association of a model I got a Builder::XmlMarkup#to_ary should return Array Example that does not work. @intervenant = Intervenant.find(params[:id]) output = @intervenant.to_xml( :skip_types => false, :dasherize => false) do |xml| @intervenant.individu.to_xml( :builder => xml, :skip_instruct => true, :skip_types => false,
2007 Jun 11
2
Builder::XmlMarkup and dashes
Has anyone hacked Builder::XmlMarkup to dasherize underscore tags by default? I know I can use tag!, but I''d like to find a way for it to translate underscores to dashes automatically. In other words: xml.department_manager do "fred end #=> <department-manager>fred</department-manager> I tried hacking Builder::XmlBase.method_missing but got myself all twisted up!
2009 Oct 28
1
Asterisk 302 Moved Temporarily
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> Hello,<br> <br> I have an * installation that sometimes receives&nbsp; a 302 "Moved Temporarily" response to an INVITE. * sends the ACK but takes about 30 seconds to start the new INVITE
2018 Jan 23
1
LAYOUT=fs
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <title></title> <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
2018 Jan 23
2
LAYOUT=fs
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <title></title> <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
2005 Dec 27
8
XML Not Working in Explorer 6
I''m playing with XML using Builder but seem to be having some trouble in Explorer 6. My sample code: xml = Builder::XmlMarkup.new xml.instruct! xml.instruct! ''xml-stylesheet'', :href=>''/stylesheets/style-xml.css'', :type=>''text/css'' xml.declare! ''DOCTYPE'', :html, :PUBLIC, "-//W3C//DTD XHTML 1.0
2006 Jul 03
2
XML Builder - xml header...
for some reason, i am getting an extra: <?xml version = "1.0"?> in my xml file.. i am using a file called: lastLogins.rxml and the code looks like: xml = Builder::XmlMarkup.new xml.instruct! :xml, :version=>"1.0", :encoding => ''ISO-8859-1'' xml.loginData do @lastLogins.each do |login| xml.entry do xml.user(login.user)
2007 Jul 09
1
Changes to vendor/builder?
I''m referring to the vendor folder under activesupport/lib/ active_support folder. Are we supposed to be making changes to the files in this folder? I just submitted my first patch (a doc patch) to a file in this folder, and I just realized it could be an external project. Then I noticed the XML Builder project in RubyForge. I also just noticed that most of the files under the builder