11155
(-- --)
1
Hi,
I am not able to find out a simple example to find out the how the
method works:
Nokogiri::XML::EntityReference::new
(http://nokogiri.org/Nokogiri/XML/EntityReference.html#method-c-new)
Nokogiri::XML::Document#canonicalize
(http://nokogiri.org/Nokogiri/XML/Document.html#method-i-canonicalize)
Thanks
11155
(-- --)
2
Hi, the examples will be atached to the answer, I hope you can get a
better idea of this methods.
Regards,
Eduardo Figarola.
Attachments:
http://www.ruby-forum.com/attachment/8472/test3.rb
11155
(-- --)
3
Eduardo Figarola wrote in post #1111343:
Hi, the examples will be atached to the answer, I hope you can get a
better idea of this methods.
Regards,
Eduardo Figarola.
can anyone tell me what the wrong I did here?
node = Nokogiri::XML::Node.new( <p>This text contains
<sup>superscript</sup> text.</p>, doc) # !> possibly useless use of a
variable in void context
node.description # =>
# ~> -:77: syntax error, unexpected '<', expecting ')'
# ~> ...de = Nokogiri::XML::Node.new( <p>This text contains <sup>sup...
# ~> ... ^
# ~> -:77: syntax error, unexpected tIDENTIFIER, expecting keyword_do or
'{' or '('
# ~> ...ri::XML::Node.new( <p>This text contains <sup>superscript</s...
# ~> ... ^
# ~> -:77: unknown regexp option - p
# ~> -:77: syntax error, unexpected ','
# ~> ...up>superscript</sup> text.</p>, doc)
# ~> ... ^
Eduardo Figarola wrote in post #1111343:
Hi, the examples will be atached to the answer, I hope you can get a
better idea of this methods.
Regards,
Eduardo Figarola.
can anyone tell me what the wrong I did here?
node = Nokogiri::XML::Node.new( <p>This text contains
I expect you meant the first parameter passed to new to be a string,
so it needs quotes round it
.new("<p>......"
Colin