Displaying 5 results from an estimated 5 matches for "canali83".
2009 Jun 08
4
how can i get attribute values from xml using libxml
Hi ,
i have xml document like this
<?xml version="1.0" encoding="ISO-8859-9"?>
<Root><Stk Category="601" Group="60101"
Brand="001">....................
then i have to use Category attribute but reader class couldnt
recognize attributes
when i use these codes below for testing;
while reader.read
puts reader.node_type
end
2009 Jun 02
9
XML::LibXML::Reader
is there anybody who knows how we can get child values using libxml
(Reader class)
def xml_import_to_brands
require''xml''
reader = XML::Reader.file(''c:/brands.xml'')
.
.
.
2009 Aug 06
1
Separate App an DB servers , Scabality and rails
Hi , what will be if my site traffic became huge , can i separate db
server and add 3 or more app server using rails framework. i think
designing my site using rails and put it in EC2 servers. what do you
think about this system? Will be work or not?
2009 Jun 10
2
add variable in xpath
hi ,
i cant succeed add variable in xpath (libxml)
brand = "037"
xpath = "//Root/Stk[@Category=''601'' and @Brand=#{brand}]"
stack = node.find(xpath)
i used #{brand} but doesnt work
2009 Jun 22
5
has_many through , or habtm , using form
i think there ara two ways of relate products and categories ,
basically i want to fix one product(e.g hp dv7....) to some categories
(notebook,17"notebooks...)
i made a table named categorization(incuding category_id,product_id
fields) then in models i write these codes below
class Product < ActiveRecord::Base
has_many :categories, :through => :categorizations